mirror of
https://github.com/patriceckhart/zot.git
synced 2026-06-26 21:36:31 +02:00
previously typing any slash command during a turn was rejected with "cancel the current turn (esc) before running a slash command". annoying and unnecessary for read-only commands, and the destructive ones can cancel the turn for you. read-only commands run immediately, parallel to the streaming turn: /help, /jump, /sessions, /lock, /unlock, /exit. destructive commands trigger cancelAndWaitForIdle first (cancels the turn ctx, polls i.busy at 10ms intervals, gives up after 2s as a safety cap so a wedged http stream cannot freeze the ui forever): /clear, /compact, /login, /logout, /model. once the turn goroutine has wound down they run on the now-quiet agent. slashCancelsTurn(head) in slash_suggest.go is the single source of truth for which commands need the wait. readme updated to match the new behaviour. |
||
|---|---|---|
| .. | ||
| agent | ||
| assets | ||
| auth | ||
| core | ||
| provider | ||
| tui | ||