Repository navigation
fix(tui): answer with Alt-A/Alt-D only a call whose session is on screen, never an ask_user hold - #555
Merged
Conversation
…een, never an ask_user hold
Collaborator
Author
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Can't wait for the next one! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
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.
Change
Alt-A/Alt-Dapproved or denied the oldest waiting call in another session without checking that you could see it:ask_userhold,Alt-AsentApproveOnce. The tool then refused with "ask_user was not put to the user", so the agent's question was lost.docs/plans/0.1.11.mdlists both as hard requirements ("Answers go to the call shown"). The code is unchanged since v0.1.10, but the redesign made the sessions column optional and removed the inspector, so the target is often off screen.Now
Alt-A/Alt-Danswer only when the session's row was drawn in the last frame: a sessions-column row, or an agent lane in the visible part of the transcript. Otherwise, and always for anask_userhold, they focus that session, wherey/nor the question panel take over.The pre-release code review found this. It blocks v0.1.11; the bump (#554) is paused until this lands.
Verification
alt_a_and_alt_d_focus_a_session_whose_name_is_not_on_screen_instead_of_answering(80 × 24, no sessions column): fails onmain, passes here.alt_a_never_answers_an_ask_user_hold_even_when_its_row_is_on_screen: fails onmain, passes here.alt_a_approves_another_sessions_call_only_while_its_row_is_on_screen(120 × 40): passes on both, so the visible case still answers in place.a_background_approval_is_answered_in_place_without_moving_focusnow draws a frame first. It used to pressAlt-Abefore anything was on screen, which is the case this PR refuses.cargo xtask check: passed.docs/guide/tui.md,docs/guide/permissions.mdand the website sessions section say whenAlt-Aanswers and when it focuses instead.Known impact
At Compact width,
Alt-Anow takes two keys (focus, theny) instead of one. That is the intended trade.