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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user