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 unmanaged skills on uninstall
Kshitij Jhunjhunwala committed
Jul 14, 2026 at 16:13 UTC
cb75ddd02b89e24016cfca28d5ab7b1a761e3c61
2 files changed
+27
-2
ts/packages/cli/src/services/setup.ts
+2
-2
@@ -445,10 +445,10 @@ const uninstallAdapter = (adapter: SetupTargetAdapter, initial: InspectedSetupTa
445
}
446
447
const final = yield* inspectAdapter(adapter);
448
- if (final.plugin_installed || (adapter.skillSource === 'standalone' && final.cli_skill_ready)) {
448
+ if (final.plugin_installed) {
449
return yield* Effect.fail(
450
new Error(
451
- `Uninstall commands completed, but ${adapter.target} still reports Composio as installed. Rerun \`composio setup --uninstall --target ${adapter.target}\` or inspect the native ${adapter.target} plugin configuration.`
451
+ `Uninstall commands completed, but ${adapter.target} still reports the Composio plugin as installed. Rerun \`composio setup --uninstall --target ${adapter.target}\` or inspect the native ${adapter.target} plugin configuration.`
452
)
453
);
454
}
ts/packages/cli/test/src/commands/setup.cmd.test.ts
+25
@@ -561,6 +561,31 @@ describe('CLI: composio setup', () => {
561
);
562
});
563
564
+ const uninstallWithUnmanagedClaudeSkill = makeFakeHosts({
565
+ claude: { available: true, marketplace: 'canonical', plugin: 'enabled' },
566
+ });
567
+ layer(
568
+ TestLive({
569
+ commandRunner: uninstallWithUnmanagedClaudeSkill.runner,
570
+ setupSkillInstaller: new SetupSkillInstaller({
571
+ isClaudeSkillReady: Effect.succeed(true),
572
+ hasManagedClaudeSkill: Effect.succeed(false),
573
+ ensureClaudeSkill: Effect.succeed(false),
574
+ removeClaudeSkill: Effect.succeed(false),
575
+ }),
576
+ })
577
+ )('uninstall with an unmanaged Claude skill', it => {
578
+ it.scoped('preserves the skill without treating plugin removal as a failure', () =>
579
+ Effect.gen(function* () {
580
+ yield* cli(['setup', '--uninstall', '--target', 'claude', '--yes']);
581
+
582
+ expect(uninstallWithUnmanagedClaudeSkill.state.claude.plugin).toBe('missing');
583
+ const output = (yield* MockConsole.getLines()).join('\n');
584
+ expect(output).toContain('Successfully uninstalled the Composio plugin for Claude Code.');
585
+ })
586
+ );
587
+ });
588
+
589
const nonInteractiveUninstall = makeFakeHosts({
590
claude: { available: true, marketplace: 'canonical', plugin: 'enabled' },
591
});