-
Notifications
You must be signed in to change notification settings - Fork 2k
CLI contexts can still trap on the missing CodexBarCore resource bundle (JS-plugin providers) #2756
Copy link
Copy link
Closed
Labels
P1Urgent regression or broken agent/channel workflow affecting real users now.Urgent regression or broken agent/channel workflow affecting real users now.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:crash-loopThis issue is about crashes, hangs, restart loops, or process-level availability.This issue is about crashes, hangs, restart loops, or process-level availability.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Description
Activity
Metadata
Metadata
Assignees
Labels
P1Urgent regression or broken agent/channel workflow affecting real users now.Urgent regression or broken agent/channel workflow affecting real users now.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:crash-loopThis issue is about crashes, hangs, restart loops, or process-level availability.This issue is about crashes, hangs, restart loops, or process-level availability.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Summary
Follow-up to #2738: the packaged app is fixed (
9c5658372), but CLI contexts still have the same latent trap. Neither the app'sContents/Helpers/CodexBarCLIdirectory nor the standaloneCodexBarCLI-v0.48.1-macos-*.tar.gzartifacts shipCodexBar_CodexBarCore.bundle— verified against the released 0.48.1 assets.CodexBarCoreResources.resolvefalls through to rawBundle.moduleoutside an.appcontext, whose accessor probes only executable-adjacent and the compile-time build path, then traps.Since 0.48.0 defaults six providers (Crof, Venice, OpenRouter, ClawRouter, Deepgram, sub2api) to bundled JS plugins on macOS, any CLI invocation that constructs a plugin runtime for those providers on a user machine should hit the fatal — masked on dev machines by the baked-in build path, exactly like #2738 was.
Fix sketch (agreed direction)
CodexBarCoreResourcesgrows a non-trapping resolution for executable contexts: probe app Resources, then executable-adjacentCodexBar_CodexBarCore.bundle, then SwiftPM build-dir candidates via explicit FileManager existence checks; only touchBundle.modulewhen one of its candidate paths exists; otherwise return nil and let plugin call sites throwProviderPluginError.load(a clean provider error, not a process trap).package_app.shplaces it next toContents/Helpers/CodexBarCLI; the CLI tarball packaging adds it alongside the binary.Refs #2738, #2755.