Repository navigation
Conversation
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, so the preview is the console alone, as on cirrus:
- apps/web-console-next/component.yaml: spec.preview. It installs the
console's own packages only (--filter "@saas/web-console-next..."), then
runs `next dev` directly on 127.0.0.1:3001, with a 1 GiB heap cap; its API
is the product's deployed stage (CONSOLE_DEPLOY_ENV=stage). No `needs`, so
no Worker, Supabase or wrangler starts.
- intent.yaml: preview: {component: web-console-next}.
- apps/web-console-next/next.config.mjs: a dev-only Server Actions
allow-list for the preview's hosts. Behind the gateway the browser's
Origin is the preview's host while `next dev` sees a local Host, and Next
refuses the action. `next build` runs with NODE_ENV=production, so
production keeps its same-origin check.
- baseline.yml: orun v2.88.0 -> v2.96.0, the first release that reads
spec.preview, so the placement's `orun validate` checks it. ci.yml (the
product's own lane pin, v2.89.0) is unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019PcpNV6SjymJBPv3nNkC4z
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The baseline declares its live preview, so orun.work's Preview tab can show a coding session's dev server (saas-parallel-baselining PB4).
apps/web-console-next/component.yaml:spec.preview:intent.yaml:preview: {component: web-console-next}.apps/web-console-next/next.config.mjs: a dev-only Server Actions allow-list (experimental.serverActions.allowedOrigins, only whenNODE_ENV === "development") for the preview's hosts. Behind the gateway the browser'sOriginis the preview's host whilenext devseesHost: 127.0.0.1:3001, and Next refuses the action ("Invalid Server Actions request", 500).next buildruns withNODE_ENV=production, so production keeps its same-origin check (experimentalevaluates to{}there). Next 15.0.3 has noallowedDevOriginsand needs none: its hot-reload socket connects from the preview origin..github/workflows/baseline.yml: orunv2.88.0→v2.96.0, the first release that readsspec.preview, so the placement test'sorun validatechecks the declaration.ci.yml(the product's own lane pin,v2.89.0) is unchanged.Nothing about how the baseline builds or deploys changes.
Checked
From a clean clone, with orun v2.96.0, and through a local stand-in of the preview gateway (the dev server sees a local
Hostand the browser's ownOrigin; the page is framed from a foreign origin):orun validateorun preview start --jsonreadyin 4.2 s (warm pnpm store)GET /Host+Originstraight to the dev serverorun preview stopConsole errors in the frame: Access to fetch at 'https://lumen-api-edge-stage.rahulvarghesepullely.workers.dev/v1/auth/oauth/providers' from origin 'http://abc123def456.orun-preview.app:13001' has been blocked by CORS policy: Response to preflight request doesn't pass ; Failed to load resource: net::ERR_FAILED
Notes
testing/placement.test.shfails at01-scaffold: the blueprint placesintent.yaml(with itspreview:block) in 01-scaffold, butweb-console-nextonly in 06-console, soorun validaterefusespreview.component "web-console-next" names no component("the scaffolded intent does not plan"). Bootstraps run the latest orun, so a product built from this as it stands would stop at phase 01. cirrus does not hit this (its single01-productphase places the intent and the console together). The fix is either in orun (validate treating a not-yet-placed preview component as "(yet)", asorun previewalready does) or here (strip the block in 01, add it back in 06-console) — a bootstrap change this PR does not make on its own.ws_4975BJ7P): it redeploys the stage and prod console (identical build) and runs its smoke, which also checkslumen-api-edge-<env>/health. That answers 404 (Cloudflare error 1042) on stage and prod today, and the last console deploy on main (run 40205327869, 25 Oct) failed that smoke the same way.Next-Actionrequest withHost: 127.0.0.1:3001: before the allow-list, every Origin gets 500 "Invalid Server Actions request"; with it,https://<token>.orun-preview.appandhttps://preview-gateway-stage.oruncloud.workers.devpass the origin check (the probe's made-up action id then reads "Failed to find Server Action"), and a foreign Origin is still refused./(Loading…) forwards to/login, which renders in full, "locked to stage". Pages behind sign-in show the sign-in prompt. The stage API refuses the preview origin by CORS (the sign-in page's OAuth-providers fetch), and stage's API edge is not answering today. The two aborted/login?_rscrequests are router prefetches cancelled by the client-side redirect, not failed assets. First run 12.5 s, then 4.2 s; install peak 1.35 GB on the first run.Generated by Claude Code