Commit bbb166b
feat(acp): complete cancellation implementation
- Fix unused Cancel variant warnings with allow(dead_code) annotations
- Implement proper handle_cancel logic for sessions outside prompt processing
- Cancellation now succeeds as no-op when no prompt is active
- Comprehensive cancellation support: during prompts (stops and returns Cancelled)
and outside prompts (logs and succeeds)
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 8c18539 commit bbb166b
File tree
2 files changed
+8
-2
lines changed- crates/chat-cli/src/cli/acp
2 files changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| 128 | + | |
128 | 129 | | |
129 | 130 | | |
130 | 131 | | |
| |||
228 | 229 | | |
229 | 230 | | |
230 | 231 | | |
| 232 | + | |
231 | 233 | | |
232 | 234 | | |
233 | 235 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
281 | | - | |
282 | | - | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
283 | 287 | | |
284 | 288 | | |
285 | 289 | | |
| |||
0 commit comments