refactor(storage): rename mesh-storage URIs to studio-storage with back-compat#4627
Merged
Conversation
…ck-compat Writers now emit the studio-storage:// scheme; the parser and regex keep accepting the legacy mesh-storage:// scheme indefinitely because these URIs are persisted in DB thread message parts and annotation text. - packages/harness/src/decopilot/mesh-storage-uri.ts -> studio-storage-uri.ts (toStudioStorageUri / parseStudioStorageKey / studioStorageRegex) - mesh app re-export + all call sites updated - unit tests prove legacy mesh-storage:// URIs still parse identically Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
decocms Bot
pushed a commit
that referenced
this pull request
Jul 21, 2026
PR: #4627 refactor(storage): rename mesh-storage URIs to studio-storage with back-compat Bump type: patch - decocms (apps/mesh/package.json): 4.83.0 -> 4.83.1 - @decocms/e2e (packages/e2e/package.json): 1.16.0 -> 1.16.1 - @decocms/harness (packages/harness/package.json): 2.6.1 -> 2.6.2 Deploy-Scope: both
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.
Summary
De-mesh task 05: renames the
mesh-storage://URI scheme and its helpers tostudio-storage://equivalents.packages/harness/src/decopilot/mesh-storage-uri.ts→studio-storage-uri.ts:toMeshStorageUri→toStudioStorageUri,parseMeshStorageKey→parseStudioStorageKey,meshStorageRegex→studioStorageRegex.apps/mesh/src/api/routes/decopilot/studio-storage-uri.ts); all call sites updated (file-materializer, portable built-in tools, cluster-research-job, web chat components, prompts/comments).Persistence analysis
These URIs are persisted:
uploadFileParts(file-materializer) stores them in DB thread message parts and in annotation text, and tool results carryingresultUriland in message parts too. Therefore:Back-compat guarantees
mesh-storage://scheme indefinitely (parseStudioStorageKey), andstudioStorageRegexmatches both schemes — old threads keep resolving to presigned URLs.studio-storage://from now on.decopilot-thread-queue.spec.tswas updated accordingly).Testing
packages/harness/src/decopilot/studio-storage-uri.test.tsprove legacymesh-storage://URIs still parse to the identical key and the regex captures keys from both schemes.bun run fmt,bun run lint(0 errors),bun run check(all workspaces pass), targetedbun test(11 pass) — full suite has known pre-existing DB-backed failures locally.🤖 Generated with Claude Code
Summary by cubic
Renamed the storage URI scheme from
mesh-storage://tostudio-storage://. Writers now emitstudio-storage://, while the parser and regex accept both schemes to keep old threads working.Refactors
mesh-storage-uri.tswithstudio-storage-uri.tsinpackages/harness/src/decopilot(toStudioStorageUri,parseStudioStorageKey,studioStorageRegex).@decocms/harness/decopilot/studio-storage-uriand updated all call sites (file materializer, built-in tools, cluster research, web UI, e2e).mesh-storage://parsing and regex coverage; updated e2e to expectstudio-storage:.Migration
mesh-storage://URIs continue to resolve; new writes usestudio-storage://.Written for commit 6e0eca5. Summary will update on new commits.