@devries-cameron20 / composio-1 / commits / 2afd25d2b
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

fix(cli): preserve atomic recovery details

jkomyno committed Aug 1, 2026 at 19:58 UTC 2afd25d2bed9bad652981fea826d73703adbf79c
2 files changed +4 -2
ts/packages/cli/src/services/upgrade-binary.ts
+1 -1
@@ -432,7 +432,7 @@ const getCurrentExecutablePath = Effect.fn(function* () {
432 const mapAtomicReplaceError = (message: string) => (error: AtomicReplaceError) =>
433 new UpgradeBinaryError({
434 cause: error.cause,
435 - message,
435 + message: `${message}: ${error.message}`,
436 });
437
438 const replaceBinary = (
ts/packages/cli/test/src/services/upgrade-binary.test.ts
+3 -1
@@ -550,7 +550,9 @@ describe('UpgradeBinary', () => {
550 if (!(error instanceof UpgradeBinaryError)) {
551 throw error;
552 }
553 - expect(error.message).toBe('Failed to replace binary');
553 + expect(error.message).toBe(
554 + `Failed to replace binary: Failed to replace file at ${fakeExecPath}`
555 + );
556 expect(error.cause).toBeInstanceOf(PlatformError.SystemError);
557 expect(yield* fs.readFileString(fakeExecPath)).toBe('old-binary');
558 expect(yield* fs.readFileString(observedCompanionPath)).toBe('new-support-file');