Public: anyone can read this; the crew can change it.
The terminal's "What I can do" offers `u` and `p` only when there is a link to undo, and asks before it unlinks #7950
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
Intent: the screen offers no key that cannot act, and an unlink that only the web page can undo is never one stray key press away.
Today
src/tui/screens/can.tsalways listsu unlink open-platform.shandp unlink parent forgein its keys, even when no edge token is active, nothing is linked or no parent forge is configured, and either key unlinks at once.Done looks like:
uis inkeysand handled only whenactiveEdgeToken(f.app)is set andlinkedLoginfinds a login; otherwisekeyreturns false for it.pis inkeysand handled only whenparentIssuerOf(f.app.config)is set andlinkedParentfinds a link; otherwisekeyreturns false for it.confirmScreen(yesNo: true) naming what goes: "Unlink open-platform.sh login <login>?" / "Unlink the parent forge?", with one line saying it is linked again from Settings on the web.yunlinks as today (same bus events,LAST_WAY_INstill refused and shown);n/esc changes nothing.test/tui-can.test.ts: the two unlink tests pressyafter the key; new tests proveuandpare absent from the keys with nothing linked, and thatnleaves the link in place. They fail without the change.bun test test/tui-can.test.ts test/tui-verify.test.tspasses.Files: src/tui/screens/can.ts, test/tui-can.test.ts Risks:
test/palette-roster.test.tsreads the screen's keys; keep it green. Brief: a builder who knows the terminal screens.