Skip to content

fix(site-editor): v7 Advanced → Local behaves as on main - #7874

Closed
tlgimenes wants to merge 10 commits into
split/47-content-backend-by-markerfrom
split/48-v7-local-as-main
Closed

tlgimenes wants to merge 10 commits into
split/47-content-backend-by-markerfrom
split/48-v7-local-as-main

Conversation

@tlgimenes

@tlgimenes tlgimenes commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Part of the v8 Studio stack (base: #7796). v8 Fast Preview + Localhost track, on top of #7873. PO decisions of 2026-10-11.

R1: v7's draft picker → Advanced → Local behaves as on main. The stack had turned Local into a deco serve probe for every site: an async save, a "checking" state, and a different hint. v7 sites get main's code back.

What

  • The picker now knows the site version: isV8 = isBlocksV8Project(vmcp.metadata) (the server marker from feat(projects): server-managed blocksMajor marker for Blocks v8 sites #7871), passed ChatModeRow → BranchPill → BranchPicker → AdvancedPicker.
  • v7: LocalUrlForm (moved to local-url-form.tsx so it can be tested) is main's component verbatim.
  • v8: the Advanced Local tab keeps the deco serve form (ServeLocalUrlForm) for now. The next PR replaces it with a Localhost item in the drafts list.

Tests

  • local-url-form.test.tsx:
    • On v7, saving localhost:3000 calls onSave(productionUrlFromDomain("localhost:3000")) in the same tick, and fetch is never called (spy).
    • An empty field can't be saved.
    • The hint is main's, and Turn off clears.
  • tsc --noEmit for apps/web, oxlint, and biome format are clean. The 20 test files under thread/repository and chat/pills pass, one process per file.

Stack

v8 Fast Preview track: previous: #7873 · next: #7875

🤖 Generated with Claude Code

https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig

The draft picker learns the site version (`isV8`, from the server's Blocks
v8 marker) through ChatModeRow → BranchPill → BranchPicker. v7 sites get
main's Local tab back verbatim (`LocalUrlForm`): a synchronous save of the
tunnel URL, no `deco serve` probe, no checking state, main's hint, and no
writes to the deco serve connection. The v8 tab keeps the deco serve form
until the Localhost item replaces it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
tlgimenes and others added 9 commits October 11, 2026 14:26
@tlgimenes

Copy link
Copy Markdown
Contributor Author

Folded into #7887 (API) / #7888 (web, stacked on #7887). The tree of #7888 equals this stack's top (split/51-v8-per-site). The branch is kept.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig

@tlgimenes tlgimenes closed this Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

claude PR authored by a coding agent

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant