You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: multi-tab simultaneous diffs for multi-file edits
Replace the single-diff-with-queue architecture with multi-tab simultaneous
diffs. Each file edit now opens its own tab, solving OpenCode's multi-file
workflow where all before-hooks fire before any after-hooks.
Key changes:
- diff.lua: active_diffs table keyed by file path replaces single diff_tab
- diff.lua: per-buffer inline state (buf_inline_data) replaces module-level vars
- diff.lua: close_for_file(path) closes specific file's diff tab
- diff.lua: neo-tree refresh deferred to after tab close (fixes stale tabpage crash)
- diff.lua: delayed second refresh so new files appear in neo-tree after write
- core-post-tool.sh: uses close_for_file(path) instead of is_open() + close_diff()
- core-pre-tool.sh: per-PID temp files prevent collision between concurrent hooks
- core-pre-tool.sh: neo-tree indicator/reveal moved to Lua side (mark_change_and_reveal)
- apply-edit.lua: fix empty old_string handling for new file creation
- Remove dead auto_close config option (no longer applicable with multi-tab)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments