Repository navigation
Conversation
…er waits `selectContentBackend` takes the project's Blocks v8 marker: - v8: the editor waits for its backend and never shows the v7 editor first. Localhost (a connected deco serve) wins; a cms session uses the GitHub backend (the hosted draft); a sandbox session waits for the daemon's content protocol once the working tree is there (R4). - v7 (no marker): legacy right away, as on main. Never pending, a stored deco serve connection is ignored (useDecoServeConnection reads as none), and the background probe tries once with no 5 s re-poll on errors. Only a v8 answer (an upgrade branch) switches it. Versions and Site tokens show only for v8 sites (`hostedCmsAvailable`). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
This was referenced Oct 11, 2026
…backend-by-marker
…re is unavailable - v7 (no marker): legacy with no exceptions, as on main. The GitHub and daemon probes run only for v8 projects, so a v7 site sends no probe and never switches backends mid-session (backgroundProbeRetry is gone). - v8: a failed probe (GitHub 5xx, the daemon restarting) is `unavailable` and keeps retrying, instead of falling back to the v7 editor. Only a confirmed v7 answer or the flag off is legacy. - v8 ignores a tunnel saved by the v7 Advanced -> Local. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
…backend-by-marker Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
…y-marker Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
The field component tests stub `@/sdk/hooks/use-virtual-mcp`; the `@/sdk` barrel import bypassed the stub, so every image/file field crashed with "useProjectContext must be used within a ProjectContextProvider" (39 CT failures on the stack top). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
The editor picks a project's backend from its Blocks v8 marker, which the first read of main's schema writes. Both project specs now make that read before the page opens, and the deco serve one uses a v8 project (a v7 project keeps main's Local tunnel). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
…y-marker Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
…y-marker Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
…y-marker: assets go to Studio's file storage Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
Contributor
Author
|
Folded into #7887 (API) / #7888 (web, stacked on #7887). The tree of #7888 equals this stack's top ( 🤖 Generated with Claude Code |
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.
R1: v7 sites behave as on main. R4: a v8 sandbox session uses the daemon's content protocol. The site editor now picks its content backend from the project's Blocks v8 marker (#7871) instead of waiting on probes for every site.
What
selectContentBackend(components/sections-editor/content-backend.ts) getsisV8Project:pending)?deco serveconnectionuseDecoServeConnectionreads as nonecmssession/_sandbox/rpc, then uses the protocol (R4). An older daemon (404), a v7 tree or an error falls back to legacy/site-editor(account-less) counts as v8: only a v8deco serveanswers it.selectContentBackend(a v8 sandbox showed the v7 editor until the probe answered).hostedCmsAvailable(flag, isV8)). A v7 site never shows them and never waits on the flag for them.R1 notes
On a v7 project,
backend.kindis neverpending, so the v7 editor shows right away with no wait on org settings or the GitHub probe. The probe runs only in flagged orgs, tries once in the background, and never re-polls.Tests
content-backend.test.ts: a decision table.hostedCmsAvailablegates Versions and Site tokens.use-content-backend.test.ts: GitHub and daemon detection decide the same marked or not once settled.backgroundProbeRetryshows v7 has no refetch loop after a 503 and v8 re-polls.tsc --noEmitforapps/web, oxlint, and biome format are clean. 152 test files undersections-editor,thread,main-panel-tabs,hooks,views/virtual-mcpandroutes, each run in its own process, all pass.Stack
v8 Fast Preview track: previous: #7872 · next: #7874
Review fixes (86bdfbe)
contentProbesEnabled) and never switches backend mid-session.backgroundProbeRetryis removed. A v7 site that upgrades to v8 gets the marker once the upgrade reaches main.unavailableand keeps retrying instead of showing the v7 editor. Only a confirmed v7 answer, or the flag being off, falls back to legacy.The table above still describes v7 "switching on a v8 answer". That no longer happens.
🤖 Generated with Claude Code
https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig