Skip to content

feat(session): persist review comments across session teardown - #982

Closed
chrismatix wants to merge 1 commit into
modem-dev:mainfrom
chrismatix:feat/persist-review-comments
Closed

feat(session): persist review comments across session teardown#982
chrismatix wants to merge 1 commit into
modem-dev:mainfrom
chrismatix:feat/persist-review-comments

Conversation

@chrismatix

Copy link
Copy Markdown

Problem

As noted in #113 when closing hunk (eg because you run it in a herdr popup) all your comment state is completely lost which can be very frustrating when working on them with agents.

Implementation

Stores and bootstraps comments from .git/hunk/review-comments.json.

This way comment lifecycle is automatically tied to the git worktree which works nicely with agentic development.

Why not an extension?

Mechanically this could be an extension, but:

  • Issues make it pretty clear that users by default expect that comments are not just lost.
  • Extensions risk re-implementing different ways to write the comment state in different ways making interop harder.

Opt-in --persist-comments / persist_comments mirrors the session's review
notes to <git-dir>/hunk/review-comments.json on every note change, so an
agent can still read them after the TUI dies — including SIGKILL from a
closed terminal pane. The file reuses the exact reviewNotes projection
that `hunk session review --include-notes --json` publishes and is
export-only; sessions never read it back.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018HuW46iwJXWtwXfuUyQDuu
@greptile-apps

greptile-apps Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

PR author is not in the allowed authors list.

@vercel

vercel Bot commented Sep 4, 2026

Copy link
Copy Markdown

@chrismatix is attempting to deploy a commit to the Modem Team on Vercel.

A member of the Team first needs to authorize it.

@chrismatix chrismatix closed this Sep 4, 2026
@chrismatix
chrismatix deleted the feat/persist-review-comments branch September 4, 2026 14:31
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