mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
Wrap parsePatch calls in try-catch blocks to gracefully handle malformed diffs that can occur when undoing after tool_use/tool_result errors or cancelled prompts. Prevents TUI from crashing with 'Added line count did not match for hunk' error. Fixes #3700 |
||
|---|---|---|
| .. | ||
| console | ||
| desktop | ||
| function | ||
| identity | ||
| opencode | ||
| plugin | ||
| script | ||
| sdk | ||
| slack | ||
| ui | ||
| web | ||