Commit 88785d6
fix(tui): handle JSON parse error on double-escape abort
When aborting a session with double-escape, the abort races with the
in-flight prompt request. If the response is incomplete or empty, the
SDK's JSON parser throws "Unexpected end of JSON input". Adding .catch()
silences this expected error during abort, matching the pattern used
elsewhere for session.abort() calls.
Fixes anomalyco#7946
Co-Authored-By: Claude <[email protected]>1 parent 03fb824 commit 88785d6
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | | - | |
| 220 | + | |
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
| |||
0 commit comments