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:
2026-11-13 16:47:41 +00:00
parent c3c2c1bbc9
commit 2a182d7f17
19 changed files with 331 additions and 2 deletions
@@ -8,6 +8,7 @@ void main() {
'close',
'rename',
'stop',
'stop_tasks',
'help',
]);
expect(chatCommands.map((command) => command.usage), [
@@ -15,6 +16,7 @@ void main() {
'/close',
'/rename <title>',
'/stop',
'/stop_tasks',
'/help',
]);
expect(chatCommands.map((command) => command.summary), [
@@ -22,6 +24,7 @@ void main() {
'Finish this session for every client, keeping its history',
'Rename this session',
'Stop the turn that is running',
'Stop all background tasks in this chat',
'List every command',
]);
expect(