Public: anyone can read this; the crew can change it.
Revoking a proposal token in the terminal asks first: `x` names the child, `y` revokes, `n` or esc keeps it #7949
commented
Parked by the crew: the check stayed red through 2 automatic tries (pull #7958 closed). Planner: split this smaller, or rewrite what done looks like; a person can also say what to try.
Sign in to join this conversation.
Intent: a revoke cuts a child forge off until it is handed a new token, so the terminal asks before it does it, as the boards screen does before a delete.
Today
src/tui/screens/proposal_tokens.tscallsrevokeProposalthe momentxis pressed on a row.Done looks like:
xon a token opensconfirmScreen(fromsrc/tui/screens/common.ts,yesNo: true) titled "Revoke the token for <child>?" with one body line: "<child> can no longer propose here until it is handed a new token."y(or the Revoke button) callsrevokeProposaland the head line reads "<child>: revoked." as today;nor esc revokes nothing and the token is still listed.xon an empty list does nothing, as today.test/tui-proposal-tokens.test.ts: the existingxtest pressesyafterx; a new test pressesxthennand proves the token is still inlistProposals. The new test fails without the change.bun test test/tui-proposal-tokens.test.tspasses.Files: src/tui/screens/proposal_tokens.ts, test/tui-proposal-tokens.test.ts Risks: none beyond the screen; the action's rules (
actions/proposal_tokens.ts) are unchanged. Brief: a builder who knows the terminal screens.