Public: anyone can read this; the crew can change it.

The terminal asks whoever can, and answers: "What stands in the way" #12976

opened this

Merged 17d 13h ago, live in production

This replaces #12970, which was based on #12953's branch. #12953 has landed, and the API cannot change a pull's base, so this is the same branch rebased onto main with the review's changes in it.

Notes

opened this

This replaces #12970, which was based on #12953's branch. #12953 has landed, and the API cannot change a pull's base, so this is the same branch rebased onto main with the review's changes in it.

Direction: what it serves, and why before the pipeline

It serves the review of #12953, which asked for the terminal door of the action that pull added: "No terminal door for this action (nothing in src/tui/). Add the screen, with its entry where AGENTS.md says, so the terminal can ask and answer too." That is the repository's three doors rule; there is no separate issue for it. It goes ahead of the pipeline items because #12953 is already on main: until this lands, an action people can take on the page and over the API has no terminal door. It is one screen, its palette entry, its test and a paragraph of how-to. It could not ride in #12953: a pull that adds a screen stays at twenty files (rule "small and single-purpose"), and that one was about seventy.

What a person now sees

In the terminal, ctrl-k, "What stands in the way", for anyone signed in:

  • What waits on you to answer: "bob asks for a model grant for bob (2 minutes ago)". o opens the exact control, n is Not now.
  • What stands in your own way now (no model key, no model budget), in the sentence the page says. o opens the control for one who can change it; a sends the ask for one who cannot.
  • What you asked, and how each stands.

Every write is the page's own action (src/actions/ask_admin.ts).

What the review of #12970 asked, and what changed

  1. The wrong toast. o on a row you already asked said "That is not yours to change: a asks whoever can." It now says "Already asked: the row says how it stands."; a there says the same, and a on a row that waits on you says "This one waits on you: o opens where it is changed."
  2. The missing tests. o on a row that waits on the admin opens /settings/accounts/cal#f-grant; o on the admin's own row opens /settings/crew#crew-key; a on an asked row and n on a row that is not an answer each say their sentence and write nothing.
  3. Direction: the section above.

Also, as the review's next step: nobody signed in is offered no palette entry, tested.

To know before landing

Main is red on test/refusals-lead-somewhere.test.ts (a sentence in src/core/roles.ts), and #12974 clears it. This pull does not touch that file.

Run locally on this commit: bun x tsc --noEmit and bun scripts/gate.ts exit 0; the always-run set with the terminal and palette tests is green but for the two Mac-only reds and that one red of main's.

🤖 Generated with Claude Code

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs