Repository navigation
feat(rex): full-size review tab, now the default placement - #176
Merged
Merged
Conversation
`--placement tab` (also `[rex] placement = "tab"` and the Lua module's `placement` option) opens the review as a new Rex window in the agent's session, which the Mac app shows as a tab. It holds only the review and is named `Annotate · ` and the file, agent or folder it reviews. Send still goes to the launching agent and `P` still lists every agent. When the review ends, Rex closes its tab and would show a neighbouring tab; the pane now focuses the block it was opened from instead, so you are back in the agent's tab and pane. It does so only while the review's tab is the one showing, so a review that ends while you are in another tab moves nobody. Gated opens work the same way. `tab` is the new default, as Herdr's overlay is. `split` and `popup` stay available, and a config that sets them keeps working.
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Behavior change
Rex Annotate now opens reviews full size, in a tab of their own, by default, the way Herdr's overlay does. Before this change the default was a split beside the agent's pane. To keep the split, set
[rex] placement = "split", pass--placement split, or setplacement = "split"in the Lua module. A config that already setssplitorpopupkeeps working.What it does
--placement tab,[rex] placement = "tab", and the Lua module'splacement = "tab"open the review as a new Rex window in the agent's session. The Mac app shows each of these windows as a tab.Annotate ·followed by the file, agent or folder under review, for exampleAnnotate · claudeorAnnotate · plan.md.Pstill lists every agent. Gated opens (rex open --gate [--result-file]) work the same way.PLANNOTATOR_TUI_REX_RETURN=<launching block>. When the review ends, it callssession.focus_blockon that block, so you land back in the agent's tab and pane.Tests
session.new_windowarguments; the tab label; the return variable in the pane argv, including with--gate.session.viewshape.rex review 7): with no setting it callssession.new_windowand passes the return variable. With--placement splitit callssession.new_splitand does not pass it.--placement splitexplicitly.{"decision":"approved"}, sends the approval to the agent, and returns focus to it. A review closed from another tab leaves focus where it is.cargo fmt --check,cargo clippy --locked --workspace --all-targets -- -D warningsandcargo test --locked --workspacepass locally. A check-only clippy run for x86_64-pc-windows-msvc also passes.