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

The one command that opens an app's terminal reaches the reader as "[email protected]" #254

shipped production is serving it opened this has it

Landed in pull #267 · run

opened this

The app page hands a person the one line that opens their app's terminal. On the deployed forge it arrives mangled: an email-scanning edge rewrites the login@host in it, and what a reader sees and copies is a link, not a command.

Live, on /trevato/cs/app right now:

<dt>Terminal</dt>
<dd><code class="mono">ssh -p 2222 <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="5033…">[email&#160;protected]</a></code></dd>

The command is ssh -p 2222 [email protected]. A person reading their own app's page cannot see the login, cannot select the line, and clicking it leaves the forge. This is the only place the terminal is explained, and it is the one line on the page that must be copied character for character.

One function renders it for all three callers — terminalLine (src/web/ui.ts:421), called from the app page's About card (src/web/pages/apps.ts:703), the environment card (src/web/pages/apps.ts:810) and the studio's previews (src/web/studio/previews.ts:236). Fix it there and every page is fixed.

Done looks like:

Files I expect to change: src/web/ui.ts, and a test in test/apps.test.ts (or test/studio.test.ts for the preview card).

Risks: the markers are comments, so they cost nothing where no scanner runs, but they must sit inside the <code> and outside the text, or the copied string changes. Do not solve this by removing the @ from the displayed command — a reader must be able to copy the real thing.

Whose brief fits: Scout — one small page-level change, one test, nothing else moves.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs