WIP: feat(ai-native): harden ACP task startup and error recovery - #4769
Open
lulusir wants to merge 6 commits into
Open
WIP: feat(ai-native): harden ACP task startup and error recovery#4769lulusir wants to merge 6 commits into
lulusir wants to merge 6 commits into
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #4769 +/- ##
==========================================
+ Coverage 55.40% 55.52% +0.12%
==========================================
Files 1762 1762
Lines 114271 114704 +433
Branches 25547 25688 +141
==========================================
+ Hits 63313 63693 +380
- Misses 42216 42258 +42
- Partials 8742 8753 +11
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Types
Background or solution
Agentic task startup previously had several lifecycle and usability gaps around ACP process capacity:
This PR introduces bounded ACP standby capacity managed by the Node-side process pool. It keeps at most one compatible standby process within the configured limit while always prioritizing foreground task launches. Failed or cancelled launches release temporary resources and preserve the task draft and unsent prompt for retry.
It also improves ACP error normalization by:
Agent Task project management, task statuses, dialogs, tooltips, accessibility labels, and recovery messages are now localized in English and Chinese.
Unit, BDD, mock-agent, and Playwright coverage has been added for capacity handling, cancellation, cleanup, error guidance, and recovery.
Verification performed:
node --check test/bdd/fixtures/acp-agent/mock-acp-agent.mjsyarn workspace @opensumi/playwright buildgit diff --checkFull browser E2E execution was not run.
Changelog