Skip to content

Declare the console's live preview, as small as it can be (saas-parallel-baselining PB4) - #36

Merged
ruehowl merged 1 commit into
mainfrom
claude/festive-ritchie-o3kib6
Nov 4, 2026
Merged

ruehowl merged 1 commit into
mainfrom
claude/festive-ritchie-o3kib6

Conversation

@ruehowl

@ruehowl ruehowl commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

orun.work's Preview tab shows a coding session's dev server, live from its box. orun preview (orun v2.96.0) runs whatever a repository declares, and the session keeps it running while it works.

The box is small (1 vCPU, 3 GiB) and the agent shares it, so the preview here is only for looking at the UI. That means the console alone.

  • apps/web-console-next/component.yaml adds spec.preview:
    • It installs only the console's own packages, using --filter "@saas/web-console-next...".
    • It then runs next dev on 127.0.0.1:3001. It calls the binary directly rather than through pnpm exec, which saves two idle pnpm processes, about 200 MB.
    • Its API is the product's deployed stage (CONSOLE_DEPLOY_ENV=stage).
    • The Node heap is capped at 1 GiB (NODE_OPTIONS=--max-old-space-size=1024), and Next.js telemetry is off.
    • There are no needs, so none of the thirteen workers, Postgres or wrangler run.
  • intent.yaml gets preview: {component: web-console-next}.
  • The console's README explains how to run the preview by hand and what shows in it.

What shows. Pages that don't need a token (/, /login, and /demo's mock gallery) render in full. Pages behind sign-in show the sign-in prompt instead, because stage's sign-in won't redirect back to a preview host. I kept it that way on purpose: letting sign-in return to any preview host would let one preview capture another person's token.

Measured with orun v2.96.0, in this repository:

  • orun validate passes.
  • orun preview start reported ready in about 17 s.
  • /, /login and /demo each answered 200, with the title "cirrus-baseline Console". The first compile took 8–11 s per page.
  • The dev server used about 830 MB of memory with those three pages compiled.
  • orun preview stop ended it, and git status showed only these three files.

orun versions older than v2.96.0 ignore the preview: key in the intent and warn about the one in the component. baseline-v28 and the registry row follow once this merges.


Generated by Claude Code

…lel-baselining PB4)

orun.work's Preview tab shows a coding session's dev server, live from its
box: `orun preview` (orun v2.96.0) runs what a repository declares, and the
session keeps it running while it works. The box is small and shared with
the agent, and the preview is for looking at the UI, so it is the console
alone:

- apps/web-console-next: spec.preview — install only the console's own
  packages (--filter "@saas/web-console-next..."), then `next dev` on
  127.0.0.1:3001, run directly (not through `pnpm exec`); its API is the
  product's deployed stage (CONSOLE_DEPLOY_ENV=stage); a 1 GiB heap cap;
  telemetry off. No `needs`: none of the workers, Postgres or wrangler run.
- intent.yaml: preview: {component: web-console-next}.
- The console's README: how to run it by hand, and what shows.

Run with orun v2.96.0: up in ~17 s; /, /login and /demo answered 200;
~830 MB resident with those three pages compiled.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019PcpNWBtvn3y8id6vTP3Yz
@ruehowl
ruehowl marked this pull request as ready for review November 4, 2026 06:41
@ruehowl
ruehowl merged commit 36228e4 into main Nov 4, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants