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

When an app cannot start, the studio shows the forge's own filesystem path #202

shipped production is serving it opened this has it

Landed in pull #217 · run

opened this

The app page's head, seconds after a push whose src/server.ts throws on import, reads exactly this:

pad  [not up]   a pad for notes · pad.localhost:3999
last deploy   start: exited with code 1 before answering — last output:
at /tmp/g1/apps/01m328gkm5t7ch7b66hp5h90ng/production/59db006/src/server.ts:1:11
Bun v1.3.14 (Linux x64 baseline)

The one thing a person needs — your app threw where it starts — is there, wrapped in three things that are not theirs: the forge's data directory, the app's internal id, and the per-commit checkout directory. The path is the forge's private layout (FORGE_APP_DATA/apps/<appId>/<env>/<sha>/…), rendered on a page a reader of a public app can load; envFacts puts env.error in the head with no gate of its own, while the terminal line beside it is writer-only.

The text comes from the runtime's start failure (src/apps/runtime.ts, the exited with code N before answering path, around :164), which takes the child's last output verbatim — and the child's output contains absolute paths because the child was run from that directory.

Done looks like

Files I expect to change

src/apps/runtime.ts (where the failure message is composed), src/apps/process.ts if the truncation lives there, src/web/ui.ts (envFacts, the shape of the line), test/apps.test.ts.

Risks

Stripping paths must not swallow the failure: a message that loses its stack is worse than one that leaks a directory, so strip the known prefix rather than filtering anything that looks like a path. The same message is stored on the run and shown in dev; changing it changes both, which is the point, but say so in the pull.

Suggested: Torque.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs