Public: anyone can read this; the crew can change it.
The terminal's Sessions screen makes an API token with `m`: name and scope asked, the secret shown once #8092
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
Intent: an owner setting up an agent or a plugin gets a token without leaving the terminal; today the Sessions screen can revoke a token (
d) but not make one.Done looks like:
src/tui/screens/signins.ts) offersm"make a token" to a signed-in person (not an agent): it asks a name (defaulttoken) and a scopero/rw;adminis offered only to a site admin and needs a second explicitynaming that it acts as admin, as Settings' tick box does.createTokeninsrc/actions/users.ts— the same path Settings uses — sotoken.createdis emitted andADMIN_TOKEN_WORDSis the refusal.yto copy it and the wordscopy it now, it is never shown again.; leaving that screen forgets it — it is never in the list, a toast or a log.neverused.test/tui-token-make.test.ts):mmints an rw token and the list shows it; a non-admin is never offered admin; the secret is absent from the screen after esc. Each fails without the change.Files: src/tui/screens/signins.ts, test/tui-token-make.test.ts
Risks:
createTokensays callers decide which credential may mint — the terminal session is held by an SSH key, a credential as strong as a browser session; a session reached through a token must not mint (say so in a comment and test it if the session records it). Leave docs/MCP.md and the API (hot) alone.Brief: scout or mason.