Stop background tasks separately from chat turns
Keep Esc and /stop scoped to the foreground turn while exposing an explicit stop-tasks operation for supported chat backends. Add the protocol, server routing, app command, and coverage for task stopping and unsupported harnesses.
This commit is contained in:
@@ -550,6 +550,10 @@ func (c *Chat) Interrupt(ctx context.Context, id string) error {
|
||||
return err
|
||||
}
|
||||
|
||||
func (c *Chat) StopTasks(context.Context, string) (int, error) {
|
||||
return 0, errors.New("Codex does not expose a separate background-task stop operation")
|
||||
}
|
||||
|
||||
// ReleaseSession stops an active Codex turn while preserving the thread and
|
||||
// its transcript. Codex has no separate per-thread process to reap.
|
||||
func (c *Chat) ReleaseSession(ctx context.Context, id string) error {
|
||||
|
||||
Reference in New Issue
Block a user