fix(vtex): bump @decocms/runtime to ^1.6.2 to restore state propagation#430
Merged
viktormarinho merged 1 commit intomainfrom May 6, 2026
Merged
fix(vtex): bump @decocms/runtime to ^1.6.2 to restore state propagation#430viktormarinho merged 1 commit intomainfrom
viktormarinho merged 1 commit intomainfrom
Conversation
The kubernetes-bun rollback in #429 dropped @decocms/runtime from ^1.6.2 back to 1.3.1. With 1.3.1, requests reach the pod with a populated MESH_REQUEST_CONTEXT envelope (token/connectionId/meshUrl all set) but state arrives as an empty object — so state.accountName is null and every tool call fails with "VTEX accountName is missing". Confirmed in the deployed pod logs: hasMeshContext: true, hasToken: true, hasConnectionId: true, hasMeshUrl: true, stateKeys: [], stateAccountNamePresent: false The Workers latency that prompted the revert was startup-CPU-budget specific to Cloudflare Workers, not a Bun problem, so this only bumps the runtime/bindings/sdk versions and keeps the kubernetes-bun deploy and serve()-style entrypoint intact. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
5 tasks
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
@decocms/runtime1.3.1→^1.6.2,@decocms/bindings^1.3.1→^1.4.0, and@modelcontextprotocol/sdk1.20.2→^1.27.1(now independencies, where 1.6.x expects it).serve()entrypoint, and the rest of the dev tooling untouched — this is purely a runtime version bump.Why
Every VTEX tool call has been failing since the rollback in #429 with:
The diagnostic logging added in #423 lets us see exactly what the deployed pod sees:
The MESH_REQUEST_CONTEXT envelope is reaching the pod fully populated, but
statearrives as{}. The connection's savedconfigSchemavalues aren't being hydrated intostatefor the tool to read.Vtex was on
^1.6.2immediately before #429, where state propagation worked. The rollback dropped it three minor versions back to 1.3.1, which evidently doesn't speak the current mesh's state shape. The latency that motivated the rollback (~5s/call tools/list) was Cloudflare Workers' startup-CPU budget being blown by the 708-tool surface — that's not a problem on Bun, so we should be able to safely take the runtime upgrade without re-introducing it.Test plan
bun run check— cleanbun test— 77 pass, 0 fail (mock state propagates correctly through the tool adapter)bun run build— bundles successfully (4.57 MB, 1268 modules)stateKeys: ["accountName","appKey","appToken"]and a successfulVTEX_GET_COLLECTION_PRODUCTScall.tools/listlatency — should stay sub-second on Bun even with the 1.6.2 cache wrapper.If state arrives correctly after this deploy, follow-up PR can strip the diagnostic logs added in #423.
🤖 Generated with Claude Code
Summary by cubic
Restores VTEX tool state propagation by upgrading
@decocms/runtimeto ^1.6.2, fixing the missingaccountNameerror caused by 1.3.1. No changes to the deploy setup or entrypoint.Bug Fixes
stateis hydrated fromMESH_REQUEST_CONTEXTagain, so VTEX tools can readaccountNameand execute.Dependencies
@decocms/runtime: 1.3.1 → ^1.6.2@decocms/bindings: ^1.3.1 → ^1.4.0@modelcontextprotocol/sdk: 1.20.2 (devDependency) → ^1.27.1 (dependency)Written for commit 4b3497f. Summary will update on new commits.