Repository navigation
feat(tui): guide the first session and explain read-only denials (OB8) - #146
Merged
Merged
Conversation
The first session in a workspace shows a "Try one of these" cell naming /models, /approval, /skills, and @path mentions; it is a pure render-time predicate (one session, no prompt recorded) so it vanishes on the first Enter and never appears in later sessions. The composer rule advertises `? help` while the composer is empty, since `?` already opens help, and returns to `F1 help` once typing starts. `qq run` in text mode ends with "held calls were denied under --approval read-only; rerun with --approval auto to allow workspace edits" on stderr when at least one call was denied, before the resume hint and without changing the exit status. Goldens re-recorded for the `F1 help` -> `? help` rule change only. Closes ENG-882.
This was referenced Sep 23, 2026
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.
Plan slice OB8 of
docs/plans/onboarding-ux.md. Linear: ENG-882.User-visible behavior
First session shows what to try. When a workspace has exactly one session and no prompt has been sent yet, the empty transcript reads:
The slash rows are read from
COMMANDS, so the text cannot drift from the real command table. If the configured provider has no credential, that remedy paints directly above the list (it previously appeared only when no session was focused). Later empty sessions keepAsk QQ to begin this session.? helpon an empty composer. The composer rule advertises? helpwhile the composer is empty (pressing?already opened help), and reverts toF1 helponce typing starts or in approval mode.qq runexplains read-only denials. In text mode, when--approval read-only(the default) denied at least one call, stderr ends withafter the answer and before the resume hint. Exit status is unchanged. JSONL output is untouched (each denied call already carries
state: denied).Design notes
sessions.len() == 1 && prompt_history.is_empty()), no new state.record_promptruns synchronously on Enter, so the cell is gone in the same frame the pending prompt appears.RunEnd.denied_calls, incremented in the existingToolCallFinishedarm; the hint is gated on the approval mode soauto-mode denials (forbidden shapes, blocked hosts) don't get a misleading remedy.F1 help→? helpswap on the rule (verified by normalizing both spellings and comparing).Docs
docs/guide/tui.md(layout diagram fixed from the never-existent^? help; new "Your first session" paragraph),docs/guide/headless.md(denial hint under the approval table and exit codes). Ledger: OB8 → In review; OB0 → Shipped (#128); OB6 → Shipped (#139).Verification
cargo fmt --all -- --check,cargo clippy --workspace --all-targets --all-features -- -D warningscargo test --workspace— 1781 passedthe_first_session_offers_try_these_until_the_first_prompt,a_second_empty_session_says_ask_qq_instead_of_try_these,the_try_these_cell_keeps_the_credential_remedy_above_it,text_read_only_denials_end_with_the_approval_auto_hint_before_the_resume_hint,the_denial_hint_is_silent_under_auto,the_denial_hint_is_silent_in_jsonl_where_records_carry_the_denials,the_denial_hint_is_silent_when_read_only_denied_nothingPerformance / compatibility
No hot-path change: one
usizeincrement per finished tool call in headless; the transcript branch only runs when the body is empty. No wire or persisted format changes.Follow-ups