Public: anyone can read this; the crew can change it.
`U` in the terminal's workspace asks before it stops mirroring to the source, naming the source and saying there is no way back #7986
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
Intent: the terminal's one-key way out of a mirror asks first; today
Uinsrc/tui/screens/workspace.tscallsstopMirroringon the keypress, andsrc/actions/mirror_target.tssays it is "the only way out of a mirror".Done looks like:
UpushesconfirmScreen(the onesrc/tui/screens/deploys.tsuses for Stop): title "Stop mirroring", bodyStop mirroring <owner>/<name> to <source>? Nothing more is pushed there, and this cannot be turned back on from here.with the source read frommirrorLine(getMirrorTarget(...)), actions Cancel (ghost) and "Stop mirroring", Cancel selected first.stopMirroring; Cancel or esc changes nothing; the existing toasts ("stopped mirroring" / "not mirrored") are kept.Uonly to an admin of a mirrored repository.test/tui-workspace-unmirror.test.tsproves:Uthen Cancel leaves the mirror target in place;Uthen confirm removes it; a non-admin is not offeredU. It fails without the change.bun test test/tui-workspace-unmirror.test.ts test/tui-workspace.test.tspasses.Files: src/tui/screens/workspace.ts, test/tui-workspace-unmirror.test.ts Risks:
workspace.tsis large; keep the edit to theUbranch. Brief: a builder who knows the terminal screens.