An app whose forge.json declares a tty can be reached over ssh — sshCommandFor builds the exact command and the dev App page prints it (src/web/pages/apps.ts:522,581) — and the studio app page, the front door, never mentions it. The one door into the thing you just built is only findable by switching to dev.
Done looks like
Files I expect to change
src/web/pages/studio.ts, src/web/pages/apps.ts (the shared function, and the copy deleted), docs/STUDIO.md, test/studio.test.ts.
Risks
Inventing the command. It must be whatever sshCommandFor returns for that app and environment — host, port and login as configured — and when the forge has no ssh host configured, the honest line is that the terminal is off.
Showing a door to someone who cannot open it — gate on write access, and prove it with a test rather than a comment.
Two copies drifting is exactly what this issue exists to prevent; if the dev page keeps its own version, the change has not landed.
Who
Mason — fold the duplicate into one function and delete the copy.
An app whose
forge.jsondeclares attycan be reached over ssh —sshCommandForbuilds the exact command and the dev App page prints it (src/web/pages/apps.ts:522,581) — and the studio app page, the front door, never mentions it. The one door into the thing you just built is only findable by switching to dev.Done looks like
Files I expect to change
src/web/pages/studio.ts,src/web/pages/apps.ts(the shared function, and the copy deleted),docs/STUDIO.md,test/studio.test.ts.Risks
sshCommandForreturns for that app and environment — host, port and login as configured — and when the forge has no ssh host configured, the honest line is that the terminal is off.Who
Mason — fold the duplicate into one function and delete the copy.