File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
terminalContrib/chatAgentTools/browser Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -305,6 +305,8 @@ export class LanguageModelToolsService extends Disposable implements ILanguageMo
305
305
throw new CancellationError ( ) ;
306
306
}
307
307
}
308
+
309
+ dto . toolSpecificData = prepared ?. toolSpecificData ;
308
310
}
309
311
310
312
if ( token . isCancellationRequested ) {
Original file line number Diff line number Diff line change @@ -264,11 +264,7 @@ export class RunInTerminalTool extends Disposable implements IToolImpl {
264
264
}
265
265
let toolResultMessage : string | IMarkdownString | undefined ;
266
266
267
- const chatSessionId = invocation . context ?. sessionId ;
268
- if ( ! invocation . context || chatSessionId === undefined ) {
269
- throw new Error ( 'A chat session ID is required for this tool' ) ;
270
- }
271
-
267
+ const chatSessionId = invocation . context ?. sessionId ?? 'no-chat-session' ;
272
268
const command = toolSpecificData . commandLine . userEdited ?? toolSpecificData . commandLine . toolEdited ?? toolSpecificData . commandLine . original ;
273
269
const didUserEditCommand = (
274
270
toolSpecificData . commandLine . userEdited !== undefined &&
You can’t perform that action at this time.
0 commit comments