Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
TypeScript agentic-aiagentsaiai-agentsaiagentsdeveloper-toolsfunction-callinggpt-4javascriptjsllmllmopsmcppythonremote-mcp-serverssetypescript
fix(cli): preserve atomic recovery details
jkomyno2afd25d2bed9
diff --git a/ts/packages/cli/src/services/upgrade-binary.ts b/ts/packages/cli/src/services/upgrade-binary.tsindex 8645628da..76fb9fa32 100644--- a/ts/packages/cli/src/services/upgrade-binary.ts+++ b/ts/packages/cli/src/services/upgrade-binary.ts@@ -432,7 +432,7 @@ const getCurrentExecutablePath = Effect.fn(function* () {const mapAtomicReplaceError = (message: string) => (error: AtomicReplaceError) =>new UpgradeBinaryError({cause: error.cause,- message,+ message: `${message}: ${error.message}`,});const replaceBinary = (diff --git a/ts/packages/cli/test/src/services/upgrade-binary.test.ts b/ts/packages/cli/test/src/services/upgrade-binary.test.tsindex ce31cea73..4fc417257 100644--- a/ts/packages/cli/test/src/services/upgrade-binary.test.ts+++ b/ts/packages/cli/test/src/services/upgrade-binary.test.ts@@ -550,7 +550,9 @@ describe('UpgradeBinary', () => {if (!(error instanceof UpgradeBinaryError)) {throw error;}- expect(error.message).toBe('Failed to replace binary');+ expect(error.message).toBe(+ `Failed to replace binary: Failed to replace file at ${fakeExecPath}`+ );expect(error.cause).toBeInstanceOf(PlatformError.SystemError);expect(yield* fs.readFileString(fakeExecPath)).toBe('old-binary');expect(yield* fs.readFileString(observedCompanionPath)).toBe('new-support-file');