Skip to content

feat(dev): SSR by default for ui-local dev — the flip (plan 078 phase 3, #472) - #1226

Merged
efizzybot merged 1 commit into
mainfrom
feat/ssr-dev-default
Dec 2, 2026
Merged

efizzybot merged 1 commit into
mainfrom
feat/ssr-dev-default

Conversation

@efizzybot

Copy link
Copy Markdown
Collaborator

Closes #472 — phase 3 of plan 078. Phases 1–2 landed in #1211/#1221.

Survey verdict (in the PR because it's the headline)

The serving-side flip was already complete — phase 2's always-emit default flipped it as a consequence: sessionSsrIntent (ui-local → true) stamps the intent wire on the host and ui children, and the gate answers SSR for local-ui+intent or any pin. Phase 3 therefore landed the remaining surface: the notice, a stale message, docs/skills, and tests.

What this PR adds

  • Remote-ui CSR startup notice (one line, dev sessions only, through the log pipeline with the sanctioned level: "warn" override): remote ui renders client-side (CSR) — production does the same for unpinned remotes; --no-ssr opts a local session out of SSR
  • Stale message fix: requireSsrEntryUrl's error no longer advises "run the dev stack with --ssr" (a compat no-op since feat(dev): supervisor-owned SSR intent — always-emit for ui-local dev (plan 078 phase 2) #1221); it names the production pin for remotes and the ui-local default
  • Docs/skills: cli-reference (--no-ssr + SSR-default paragraph), dev-workflow (SSR-by-default hot-reload caveat in phase-0's measured form: +0.59s median per keystroke, bar <1s), AGENTS.md Typical Session gains the accurate SSR-default block (the referenced "bare client shell" line no longer exists on main)
  • Tests: notice helper (remote → one line; local → null) + display-sink integration (fires on remote-ui, silent on ui-local)

Evidence — the churn arbiter, both legs

  • dev:ssr: TestUiChurnSwap PASS (dev-shape rebuild 5.08s, marker rendered in SSR HTML), TestTrainBuildUnderSsrTraffic PASS, stack ready 55.5s
  • dev:csr: TestPluginChurnAdopt PASS (generation swap without restart); SSR-pipeline tests self-skip by mode gate
  • Host suite 407/408 — the 1 failure (ssr-federation-error) is pre-existing on clean main (stash-verified; network-dependent loadRouterModule path, untouched here)
  • everything-dev clean-machine 2752 pass; contended-run flakes isolated 7/7 files, 150/150 green; bos typecheck 15/15; lint, docs:check, intent validate (14 skills, typed) all green
  • Playwright SSR variants soak in CI

#472's closure: the flip + --no-ssr opt-out + the superseded decision matrix (ratified pin design) + the measured tolerance line (+0.59s median, <1s bar).

Merge Danger

Door: two-way

Blast Radius: everything-dev + host + docs

@efizzybot
efizzybot merged commit 9601bbb into main Dec 2, 2026
23 checks passed
@efizzybot
efizzybot deleted the feat/ssr-dev-default branch December 2, 2026 03:32
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.

(Deferred) Default dev to SSR with --no-ssr opt-out

2 participants