Show what a running app is saying, on the page the owner already watches, for as long as it runs — not only during its first thirty seconds.
The forge already captures it. startApp (src/apps/process.ts:263-275) pipes the app's stdout and stderr and pumps them for the life of the process — the comment says so — into the same log the deploy was given (src/apps/runtime.ts:852), so a live app's own lines keep landing in its deploy run's log long after that run is marked finished. The studio throws the view away: deployTail (src/web/studio/previews.ts:165-171) returns undefined unless production.state === "deploying", so the moment the app answers, the tail vanishes and the head card offers Open the app and nothing else. An owner whose app is up but throwing on every request has no way, from the front door, to see a single line of what it is saying; they have to leave the studio, find the deploy run and hope its log still follows.
That is the direction's own promise running out one second after the app comes alive.
Acceptance
Files
src/web/studio/previews.ts (the tail's condition and the head card), src/web/studio/app.ts (who gets the one stream), possibly src/runs/log.ts / the follow endpoint if a finished run's log stops following, test/studio.test.ts.
Risks
The deploy run's log is also the build log; production's tail must read as the app's voice, not as a deploy that is still going — the word above it decides that, and envPhrase already says live.
Log volume: a chatty app writes continuously. The cap is LOG_TAIL_CAP and the stream is one; do not widen either.
Do not touch the release workflow or the chart.
Suggested: Scout (the studio's surfaces and their words).
Show what a running app is saying, on the page the owner already watches, for as long as it runs — not only during its first thirty seconds.
The forge already captures it.
startApp(src/apps/process.ts:263-275) pipes the app's stdout and stderr and pumps them for the life of the process — the comment says so — into the samelogthe deploy was given (src/apps/runtime.ts:852), so a live app's own lines keep landing in its deploy run's log long after that run is marked finished. The studio throws the view away:deployTail(src/web/studio/previews.ts:165-171) returnsundefinedunlessproduction.state === "deploying", so the moment the app answers, the tail vanishes and the head card offers Open the app and nothing else. An owner whose app is up but throwing on every request has no way, from the front door, to see a single line of what it is saying; they have to leave the studio, find the deploy run and hope its log still follows.That is the direction's own promise running out one second after the app comes alive.
Acceptance
Files
src/web/studio/previews.ts(the tail's condition and the head card),src/web/studio/app.ts(who gets the one stream), possiblysrc/runs/log.ts/ the follow endpoint if a finished run's log stops following,test/studio.test.ts.Risks
envPhrasealready says live.LOG_TAIL_CAPand the stream is one; do not widen either.Suggested: Scout (the studio's surfaces and their words).