mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #6403] Capability packages cannot resolve the Claude Agent SDK native binary #3580
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#3580
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Gunterlie on GitHub (Sep 20, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6403
Originally assigned to: @Gunterlie on GitHub.
What happens
Capability packages cannot use the Claude subscription provider. Every call fails with:
Reported on Engine 2.4.6 staging, SDK 0.3.273, Windows 10 x64, pnpm, from the Slurp2 agent
package. The Engine's own provider works on the same install.
This is not Windows-specific. The same sibling is missing on a Linux production install, so the
package-side Claude subscription path is broken there too — it just has not been exercised yet.
Why
The SDK locates its native binary with
createRequire(import.meta.url), so the lookup startswherever the SDK module sits. All eight platform binaries are declared as
optionalDependenciesof@anthropic-ai/claude-agent-sdk.There are two trees on the Engine, and only one of them has the platform sibling:
Capability packages resolve against the second tree. It was provisioned without optional
dependencies, so the platform package is absent and the lookup fails.
Verified on a production Engine container:
Suggested fix
Provision the capability-package tree so the resolved SDK has its platform sibling. Either
install it with optional dependencies included, or link
data/capability-packages/node_modules/@anthropic-ai/claude-agent-sdkinto the pnpm storeinstead of laying down a flat copy. The reporter confirms a junction fixes it on Windows.
Fixing provisioning fixes every capability package at once.
Why not fixed in Marinara-Agents
Two package-side approaches were checked and rejected:
@anthropic-ai/claude-agent-sdkfrom the package bundle (the existing--external:undiciprecedent) only moves the lookup intodata/capability-packages/node_modules/@anthropic-ai/claude-agent-sdk/, which is the tree thatis also missing the sibling. Same failure.
options.pathToClaudeCodeExecutableis not reachable: packages do not vendorclaude-subscription.provider.ts; the Agents builder pulls it from the Engine worktree atbundle time.
@SpicyMarinara commented on GitHub (Sep 20, 2026):
Codex is taking this in #6420 for @SpicyMarinara as part of the requested issue sweep. I am tracing the existing flow and will add focused regression evidence before merging to staging.
@SpicyMarinara commented on GitHub (Sep 20, 2026):
Resolved by #6420, merged into staging at
49faeabfe4. Required checks and CodeRabbit passed before merge.