Skip to content

fix: refresh the file list when resuming a session - #29

Open
KEY60228 wants to merge 1 commit into
mainfrom
fix/resume-file-refresh
Open

fix: refresh the file list when resuming a session#29
KEY60228 wants to merge 1 commit into
mainfrom
fix/resume-file-refresh

Conversation

@KEY60228

Copy link
Copy Markdown
Owner

Summary

Resume re-parsed hunks against the current git state but kept the file list frozen at creation time: files changed after the session was saved never appeared, and files whose diff had disappeared lingered as empty entries.

Now the diff is re-run on resume to rebuild the list:

  • newly changed files appear
  • files without differences drop out
  • files that carry comments are kept even when their diff is gone, so comments are never silently dropped from the session or the submitted Markdown
  • resuming a session with no remaining differences reports an error instead of opening an empty review

Test plan

Headless-nvim test: create a session over two modified files, comment on one, pause; then revert both files and modify a third. On resume: the newly modified file appears (with parsed hunks), the uncommented reverted file drops out, the commented file is kept, and the comment is preserved — all pass.

🤖 Generated with Claude Code

Resume re-parsed hunks against the current git state but kept the file
list frozen at creation time: files changed after the session was saved
never appeared, and files whose diff had disappeared lingered as empty
entries.

Re-run the diff on resume to rebuild the list. Files that carry
comments are kept even when their diff is gone, so comments are never
silently dropped from the session or the submitted Markdown. Resuming
a session with no remaining differences now reports an error instead
of opening an empty review.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant