Say why a terminal is off, so the one sentence about it is useful instead of a dead end.
terminalLine (src/web/ui.ts:434) prints The terminal is off. whenever it has no command to show, and that is the one line every app page, preview row and change page draws for the app's own terminal. A hosted forge — a forge running as an app of another forge, which is how this one runs — defaults FORGE_SSH_PORT to 0 (src/main.ts:47, "no SSH listener (the host owns the port)"), so serveForgeSsh never starts and every app on it shows that sentence, with no hint that the app declares a tty in its forge.json and that one variable would light it up. The scaffold every new app starts as declares "tty": "bun run src/tty.ts", so the forge is quietly refusing a door the app opened.
Acceptance
Files I expect to change
src/web/ui.ts (terminalLine takes why, not just the command), its callers in src/web/studio/app.ts, change.ts, previews.ts and src/web/pages/apps.ts, whatever hands the command down from src/apps/tty.ts; test/web-apps.test.ts or test/apps-ssh.test.ts.
Risks
Three tests pin the SSH port (#77's ground) — render the "off" case from the composed state, not by shutting a listener down in a test. Keep the sentence out of the way on a phone (#66).
Say why a terminal is off, so the one sentence about it is useful instead of a dead end.
terminalLine(src/web/ui.ts:434) printsThe terminal is off.whenever it has no command to show, and that is the one line every app page, preview row and change page draws for the app's own terminal. A hosted forge — a forge running as an app of another forge, which is how this one runs — defaultsFORGE_SSH_PORTto0(src/main.ts:47, "no SSH listener (the host owns the port)"), soserveForgeSshnever starts and every app on it shows that sentence, with no hint that the app declares attyin itsforge.jsonand that one variable would light it up. The scaffold every new app starts as declares"tty": "bun run src/tty.ts", so the forge is quietly refusing a door the app opened.Acceptance
Files I expect to change
src/web/ui.ts(terminalLinetakes why, not just the command), its callers insrc/web/studio/app.ts,change.ts,previews.tsandsrc/web/pages/apps.ts, whatever hands the command down fromsrc/apps/tty.ts;test/web-apps.test.tsortest/apps-ssh.test.ts.Risks
Three tests pin the SSH port (#77's ground) — render the "off" case from the composed state, not by shutting a listener down in a test. Keep the sentence out of the way on a phone (#66).
Suggested: Scout.