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