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

The studio says how to get into the running app: the terminal, verbatim #99

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

Pushed successfully.

shipped production is serving it deploy b2c98db

opened this

Pushed successfully.

The studio's app page now shows the way into an app's terminal, the same as dev mode always did — a writer sees the exact ssh … command with the forge's host key fingerprint beside it, or one line saying the terminal is off (no SSH listener, or the app's forge.json declares no tty). A pull's own preview card shows its own command too, since a preview answers to a different login than production's. A reader sees none of it.

What changed:

  • terminalFor (src/actions/apps.ts) is the one function that knows this fact for any environment; EnvStatus now carries tty once an environment has been live, so nothing does an extra read to get it.
  • terminalLine (src/web/ui.ts) is the one render for it — command + fingerprint, or "off" — used by the studio app page, the dev App page, and the preview card.
  • The dev App page's dead, unused AppView.ssh copy is gone, and its "Terminal" line is now gated on write access (it wasn't before).
  • docs/STUDIO.md documents the terminal on the app page; docs/APPS.md is unchanged, still the reference for the terminal itself.

Left out: the studio's compact previews list (previewRow, a different surface from the preview card) doesn't inline a terminal command — it stays a short status row, and its pull's own page (which already shares previewCard) is where the command shows.

To try it: sign in as a repo writer, open an app's page in the studio (or dev mode), and look for "Terminal" under the app's facts.

Closes #57

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs