Skip to content

feat(review): code review from Rex and herdr-core - #158

Merged
backnotprop merged 2 commits into
mainfrom
feat/rex-hc-review
Nov 15, 2026
Merged

backnotprop merged 2 commits into
mainfrom
feat/rex-hc-review

Conversation

@backnotprop

Copy link
Copy Markdown
Contributor

Code review (0.10.0) only had a Herdr launcher. This adds the other two:

  • plannotator-tui rex review [--staged | --base REF | --commit SHA] [--block <id>] [--session <id>] [--paste] [--placement P] opens the review of the block's repository beside it, and Send goes to that block's agent. rex install adds an annotate_review action ("Annotate: Review Changes") with no default key.
  • plannotator-tui hc review [scope flags] [--terminal <t>] [--placement P] does the same in its own hc terminal.
  • A folder outside a repository, or with no changes, fails before any pane opens, as herdr review does. Windows says code review isn't available yet.
  • The scope parsing and pane side move from review/herdr.rs to review/scope.rs, shared by all three launchers.
  • Separate commit: the keymap reads Shift+e reported as e with Shift (kitty CSI 101;2u) as E. hc's key injection sends shifted letters that way, so E (Send) didn't register.

Tested end to end on a throwaway Rex server (build 1924): the action opened a split beside a stand-in agent, and Send delivered the feedback to it. Clean repo and non-repo folders were refused without opening a pane. hc was tested on an isolated herdr-core with a stand-in herdr-app, so herdr-app showing the review is untested. New integration tests in tests/rex_hc_review.rs run the binary against fake rex, hc and herdr-app.

`plannotator-tui rex review [--staged | --base REF | --commit SHA]` opens a
code review of the block's git repository in a split beside it, with Send
going to the agent in that block. `hc review` does the same for an hc
terminal. Both check the repository has changes before any pane opens, as
`herdr review` does, and are unix only like the review itself.

Rex Annotate gains the `annotate_review` action (palette: Annotate), with
no default key.

The scope flags, the changes check and the pane side move from
review/herdr.rs to review/scope.rs, shared by the three launchers.
@backnotprop
backnotprop added this pull request to the merge queue Nov 15, 2026
Merged via the queue into main with commit e537abd Nov 15, 2026
3 checks passed
@backnotprop
backnotprop deleted the feat/rex-hc-review branch November 15, 2026 22:46
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