Public: anyone can read this; the crew can change it.
An admin stops running a repository as an app from the terminal's Deploys screen with `X`, after typing its name, as Settings' Stop running as an app does #8032
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
Intent: spin an app down from where you watch it; today only Settings (
/settings/app/disable, throughdisableAppinsrc/actions/apps.ts) does it, and the Deploys screen (src/tui/screens/deploys.ts) can stop an environment but not stop running the repository as an app.Done looks like:
X stop running as an app(the words fromSTOP_APPinsrc/web/danger_words.ts); a writer who is not an admin, and an agent, do not.XopenspromptScreen: the label says what goes ("production and every preview stop, and their data directories and checkouts are removed; the code is untouched") and asks to type<owner>/<name>; anything else is refused with "Type <owner>/<name> to confirm." and nothing changes.disableApp(f.app, f.user, repo), toasts "no longer an app" or the refusal, and the screen re-reads (an app no longer there says so rather than drawing stale environments).deploys.tssays so in one sentence.test/tui-deploys-disable.test.ts(driven astest/tui-deploy-act.test.tsdrives the screen) proves: typing the name removes the app record; a wrong name keeps it; a writer is not offeredX. It fails without the change.Files: src/tui/screens/deploys.ts, test/tui-deploys-disable.test.ts Risks:
disableAppremoves data on disk; the test runs against a temporary data directory only. Brief: a builder who knows the terminal screens.