-
[codex] fix CLI binary release workflow (#3041)
发布于
2026-03-27 09:56:30 +00:00 What changed
- make
build:binary:crossemit therun-subagent-*.mjscompanion
modules alongside the compiled CLI binary - update the
Build CLI Binariesworkflow to include those companion
modules in the published release archives - make
install.shcopy companion modules when they are present, while
remaining backward compatible with older archives that only contain
composio - fix the CLI installation workflow assertions to match the actual
installer behavior and paths
Why
composio runlaunches a separate Bun runtime that imports the
run-subagent-*helpers from disk. The main binary alone is not
sufficient. The previous release workflow zipped only thecomposio
binary, so prerelease assets installed successfully but failed at
runtime with missing-module errors.The installation test workflow also had stale expectations for
~/.composio/bin/composioandCOMPOSIO_INSTALL, which caused false
negatives even when installation itself succeeded.Impact
- newly built CLI release assets will contain the files required for
composio run install.shwill install sidecars for new releases and ignore them
for older releases- the installation workflow will validate the real install layout
instead of the stalebin/path
Validation
pnpm --filter @composio/cli run build:binary:cross --target bun-darwin-arm64from the existing checkout emitted:dist/binaries/composio-darwin-aarch64dist/binaries/companions/run-subagent-shared.mjsdist/binaries/companions/run-subagent-acp.mjsdist/binaries/companions/run-subagent-legacy.mjs
- simulated the GitHub Actions archive step and verified the zip
containscomposioplus all three companion modules - earlier local binary/package validation on the main fix branch
confirmed the extracted binary runscomposio run 'console.log("hello")'successfully once those files are packaged
下载附件
- make