Repository navigation
Conversation
Projects learn they are Blocks v8 before any thread exists: the server writes `metadata.blocksMajor: 8` when the org has the content protocol and main's `.deco/schema.gen.json` is v8, and clears it when main stops being v8. A v7 site never gets it. - `isBlocksV8Project(meta)` in @decocms/shared/thread/session-runtime. - `blocksMajor` is server-managed: stripped from client writes and kept when a client clears the metadata. - Written on project create/import, by the admin site-claims backfill (real runs), and write-through wherever `mainIsV8` already runs (decofile GET/publish, site tokens, the hosted git routes). Single-key `patchMetadata`, best-effort, never fails the request. No visible behaviour change yet. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
This was referenced Oct 11, 2026
… request path - markBlocksV8OnCreate requires the same preconditions as the hosted routes (the project owns its site id and a delivery bucket is configured), so a marked project never polls a 404/503 hosted route. - COLLECTION_VIRTUAL_MCP_CREATE no longer waits on the org-settings read or GitHub for the best-effort marker; write-through and the backfill cover a miss. - Use projectPackagePath at the existing inline call sites. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
…oject-marker Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig # Conflicts: # apps/api/src/tools/virtual/update.ts
…oject-marker Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
…oject-marker Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
…oject-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.
Projects now learn they are Blocks v8 before any thread exists. Today v8 is known only from an async probe that runs only for
cmsthreads, and a thread iscmsonly whenmetadata.fastPreviewis on: a circle. The server now writes a project marker,metadata.blocksMajor: 8, which the next PRs use to make v8 always Fast Preview (R2/R3) without touching v7 (R1).What
isBlocksV8Project(meta)(packages/shared/src/thread/session-runtime.ts):meta?.blocksMajor === 8.blocksMajorjoinssandboxMapinstripServerManagedMetadata, so the settings form or a tool call can neither set nor clobber it;metadataKeptOnClearkeeps it (withsandboxMapandsiteSlug) when a client sendsmetadata: null.site_editor_content_protocoland only when main's.deco/schema.gen.jsonis v8; cleared when main is no longer v8. A v7 site never has it.hosted/blocks-major.ts(syncBlocksMajorMarker,markBlocksV8OnCreate):tools/virtual/create.ts), so a new v8 project's first thread already opens in Fast Preview;mainIsV8already runs: decofile GET and publish, site-token issue, and the hosted/git/*routes (loadHostedDraft).patchMetadata(no read-merge-write oversandboxMap), best-effort: a failed write is logged, never fails the request. The request-cached project storage now drops its cache onpatchMetadatatoo.No visible behaviour change in this PR.
R1 (v7 = main)
v7 projects never get the marker, so nothing keyed on it changes for them. Create in a flagged org does one extra read of main's schema (best-effort, errors swallowed).
Tests
apps/api/src/hosted/blocks-major.test.ts: sets, clears, no-op when it already matches, write errors swallowed; on create: v8 repo marked, site folder honoured, v7 never marked, flag off means no read and no write, no repository means nothing happens, repo errors swallowed.apps/api/src/tools/strip-server-managed-metadata.test.ts:blocksMajorstripped; kept on clear.tsc --noEmitforapps/apiandpackages/shared, oxlint, andbiome formatare clean.bun test src/hosted src/api/routes/decofile.test.ts src/api/routes/sandbox-proxy*.test.ts src/tools/virtual→ 152 pass. The 1 failure isstudio-pack.integration, which needs a database and fails on the base too.Stack
v8 Fast Preview track: previous: #7843 · next: #7872
Review fixes (f735723)
COLLECTION_VIRTUAL_MCP_CREATEno longer waits for the marker (void markBlocksV8OnCreate(...), which never throws), so creating or importing a site never waits on GitHub. If it misses, the write-through and the backfill set it.projectPackagePathreplaces the inline copies in admin.ts, hosted.ts, decofile.ts and draft-publish-status.ts.🤖 Generated with Claude Code
https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig