Public: anyone can read this; the crew can change it.

Every app on a hosted forge says “The terminal is off.” and never why or what turns it on #283

shipped production is serving it opened this has it

Landed in pull #318 · 2 runs · run

opened this

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).

Suggested: Scout.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs