Repository navigation
fix(desktop): re-export every claude sdk function in the bundle - #691
Merged
Merged
Conversation
The desktop sidecar bundle replaces the Claude Agent SDK with a shim that loads the packaged module at runtime, but listed its exports by hand. Rewind started importing getSessionInfo, so every desktop package failed with "No matching export" and nightly releases stopped publishing. The shim now re-exports every name the real module exports. Fixes: #655
This was referenced Nov 16, 2026
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.
Problem
Every scheduled Release since 2026-11-13 23:42 failed in the three
desktoppackaging jobs:The desktop sidecar bundle resolves
@anthropic-ai/claude-agent-sdkto a shim that loads the packaged module fromnode_modulesat runtime. The shim listed its exports by hand (query, forkSession, getSessionMessages, createSdkMcpServer), and rewind (apps/worker/src/providers/claude/rewind.ts) started importinggetSessionInfo. PR CI doesn't package desktop, so the break only surfaced in Release, and nightly stopped publishing.Fix
The build reads the real module's export names and the shim re-exports all of them, so a newly used SDK function can't break the bundle again.
Verification
I bundled
src/sidecars/worker.tswith the shim:Format, lint and desktop typecheck are clean. The Release run on dev after merge is the end-to-end check.
Fixes: #655