Commit deb2d4a
authored
chat: mark streaming tool calls as skipped when request completes (#297130)
* chat: mark streaming tool calls as skipped when request completes
When a steering message causes the extension to yield after handleToolStream
has been received but before invokeTool is called, the streaming tool call
should be marked as skipped instead of being silently deleted.
- Call cancelToolCallsForRequest in CancellableRequest.dispose() to ensure
streaming tool calls are marked as skipped when requests complete naturally
- Update cancelToolCallsForRequest to call invocation.cancelFromStreaming()
before deleting pending tool calls from the map
Fixes #294224
(Commit message generated by Copilot)
* tests1 parent 1365070 commit deb2d4a
File tree
3 files changed
+7
-0
lines changed- src/vs/workbench/contrib/chat
- browser/tools
- common/chatService
- test/common/chatService
3 files changed
+7
-0
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1150 | 1150 | | |
1151 | 1151 | | |
1152 | 1152 | | |
| 1153 | + | |
1153 | 1154 | | |
1154 | 1155 | | |
1155 | 1156 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
73 | 76 | | |
74 | 77 | | |
75 | 78 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
53 | 55 | | |
54 | 56 | | |
55 | 57 | | |
| |||
163 | 165 | | |
164 | 166 | | |
165 | 167 | | |
| 168 | + | |
166 | 169 | | |
167 | 170 | | |
168 | 171 | | |
| |||
0 commit comments