Public: anyone can read this; the crew can change it.
The terminal lists an app's variables, sets one and unsets one, never showing a value, as MCP `app_env` does #7232
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
For: an app's admin sets a variable (an API key, a flag) from the terminal. Today the page and MCP
app_envcan; the terminal cannot.listAppEnv,setAppEnvVaranddeleteAppEnvVar(src/actions/apps.ts:139-188) are reached from the app's settings page and MCPapp_env. No terminal screen calls them.Done:
src/tui/screens/appenv.ts, opened from an app repository's:palette as "Variables". It lists names and scopes (all, production, preview), never values.aadds or replaces one: a name, a value in a masked field, and a scope.dunsets one after a confirm.test/tui-app-env.test.tscovers: add, list shows the name but not the value, unset after a confirm, and a writer who is not an admin without the entry. It also asserts that no frame ever contains the value.Files:
src/tui/screens/appenv.ts, the palette's entry list, one test. Risk: low. A value must never reach a frame or a log.