Skip to content

Session API omits review notes on other files while the TUI is in single-file view #1151

Description

@danielmartinezsarta

Version: hunk 0.23.0 (Homebrew, macOS)

Steps

  1. hunk diff HEAD~2 HEAD --agent-notes --watch on a range with two files.
  2. In the TUI, add a note on the first file.
  3. Switch to single-file view and select the second file.
  4. From another shell: hunk session review <id> --include-notes --json

Actual: files lists only the selected file, reviewNoteCount is 0 and reviewNotes is empty. hunk session comment list <id> --type all --json also returns [].

Expected: the session API reports every file in the review and every saved note, whatever the TUI's current view.

Leaving single-file view (no reload needed) makes both files and the note appear again.

Why it matters: agents read the human's notes through the session API, so in single-file view they conclude there are no notes. Related: #1150, #1138.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions