9p: add remove handler for tr/ transcripts
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
b4974cc6c2
commit
90428a7017
|
|
@ -971,6 +971,8 @@ func (s *Server) remove(cs *connState, fc *plan9.Fcall) *plan9.Fcall {
|
||||||
err = s.skillStore.Delete(pathBase(path))
|
err = s.skillStore.Delete(pathBase(path))
|
||||||
case strings.HasPrefix(path, "/t/"):
|
case strings.HasPrefix(path, "/t/"):
|
||||||
err = s.toolStore.Delete(pathBase(path))
|
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":
|
case strings.HasPrefix(path, "/b/") && path != "/b/new":
|
||||||
// Synthetic batch files are no-ops so "rm -r b/{id}" can proceed to
|
// Synthetic batch files are no-ops so "rm -r b/{id}" can proceed to
|
||||||
// remove the directory itself, which triggers job cancellation.
|
// remove the directory itself, which triggers job cancellation.
|
||||||
|
|
|
||||||
Reference in New Issue