9p: add remove handler for tr/ transcripts

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Levi Neely 2026-04-16 22:38:36 +02:00
parent b4974cc6c2
commit 90428a7017
1 changed files with 2 additions and 0 deletions

View File

@ -971,6 +971,8 @@ func (s *Server) remove(cs *connState, fc *plan9.Fcall) *plan9.Fcall {
err = s.skillStore.Delete(pathBase(path))
case strings.HasPrefix(path, "/t/"):
err = s.toolStore.Delete(pathBase(path))
case strings.HasPrefix(path, "/tr/"):
err = s.transcriptStore.Delete(pathBase(path))
case strings.HasPrefix(path, "/b/") && path != "/b/new":
// Synthetic batch files are no-ops so "rm -r b/{id}" can proceed to
// remove the directory itself, which triggers job cancellation.