mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 12:03:23 +00:00
fix(coding-agent): make ctx.shutdown() work from extension tools
The tool execution context was created with a no-op shutdown handler. Now it delegates to ExtensionRunner.shutdown() which uses the handler set by the mode via initialize().
This commit is contained in:
parent
baf6fe4b39
commit
cf0466d96c
2 changed files with 11 additions and 1 deletions
|
|
@ -527,7 +527,9 @@ export async function createAgentSession(options: CreateAgentSessionOptions = {}
|
|||
abort: () => {
|
||||
session.abort();
|
||||
},
|
||||
shutdown: () => {},
|
||||
shutdown: () => {
|
||||
extensionRunner?.shutdown();
|
||||
},
|
||||
}));
|
||||
|
||||
// Create tool registry mapping name -> tool (for extension getTools/setTools)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue