-
Notifications
You must be signed in to change notification settings - Fork 647
fix: acp agent remove #1431
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
fix: acp agent remove #1431
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| # ACP Agent Uninstall Plan | ||
|
|
||
| ## Main Process | ||
|
|
||
| - Add `configPresenter.uninstallAcpRegistryAgent(agentId)` as the orchestration entrypoint. | ||
| - Keep sqlite persistence in `AgentRepository`. | ||
| - Add uninstall cleanup to `AcpLaunchSpecService` for registry install artifacts with path-boundary checks. | ||
| - After uninstall, mark the agent disabled and set install state back to `not_installed`. | ||
| - Reuse `handleAcpAgentsMutated([agentId])` so ACP processes are released and renderer state refreshes. | ||
|
|
||
| ## Renderer | ||
|
|
||
| - Add uninstall actions in `AcpSettings.vue` for both installed cards and registry overlay rows. | ||
| - Confirm uninstall with a lightweight confirmation dialog (`window.confirm`). | ||
| - Refresh ACP settings data after uninstall completes. | ||
|
|
||
| ## Tests | ||
|
|
||
| - Cover binary uninstall cleanup and safe path handling in `AcpLaunchSpecService`. | ||
| - Cover repository/state reset for registry agents. | ||
| - Cover renderer uninstall CTA wiring in `AcpSettings.vue`. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| # ACP Agent Uninstall | ||
|
|
||
| ## Summary | ||
|
|
||
| Add uninstall support for registry-backed ACP agents. The current ACP settings flow can install and enable registry agents, but it cannot uninstall them after they are added. | ||
|
|
||
| ## User Stories | ||
|
|
||
| - As a user, I can uninstall an installed ACP registry agent from settings. | ||
| - As a user, uninstall removes local install artifacts and hides the agent from enabled ACP model choices. | ||
| - As a user, old sessions referencing that agent are preserved and can recover by reinstalling later. | ||
|
|
||
| ## Acceptance Criteria | ||
|
|
||
| - ACP settings shows an uninstall action for installed registry agents. | ||
| - Uninstall deletes local binary install directories when the agent uses a binary distribution. | ||
| - Uninstall resets registry install state to `not_installed` and disables the agent. | ||
| - Uninstalled registry agents no longer appear in the enabled ACP model list. | ||
| - Existing session records keep their `agentId`; uninstall does not delete session history. | ||
|
|
||
| ## Non-Goals | ||
|
|
||
| - No hard-delete of the registry agent row. | ||
| - No schema migration. | ||
| - No forced rewrite of historical session, remote binding, or subagent references. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.