Open
Conversation
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.
feat: Agent Multi-Task Navigation System & Complete Status Architecture
Background
Cherry Studio V2's Agent workspace needs to support users managing multiple AI task threads simultaneously. The existing design relied on a sidebar session list for task switching, lacking a top-level quick-navigation entry point. The task status system was also incomplete (only
active / completed / paused), unable to represent two critical real-world agent states: "waiting for user approval" and "execution error."This PR delivers two core objectives:
Motivation
Before / After
Status System
TaskBar (new)
Changed Files:
Impact Assessment
Positive Impact:
waitinganderrorstates are now clearly visible — users won't miss tasks that require confirmation or interventionAgentSession.status), eliminating cross-layer inconsistenciesAgentSessionContextpromotes session state fromAgentRunPage-local to globally shared, establishing the foundation for future cross-component accessPotential Risks:
AgentSession.statustype expansion (waitinganderroradded): any existing exhaustiveswitchstatements consuming this type elsewhere may need the two new cases added. All reference sites have been audited in this PR — no unhandled switches were foundWorkflowStep.statusaddserror:WorkflowPanel.tsx'sStatusDotalready had a pre-existingerrorbranch (red X icon) before this change; the type update activates it with no rendering logic changes requiredFeasibility Assessment
Known Gaps (follow-up)
waiting / error / pausedstates currently require manual assignment in mock data; runtime auto-derivation from steps/messages back toAgentSession.statusis not yet implementedcompletedstatus tasks have no confirmation dialog before closing (intentional design decision: closing a completed task is low-risk)queuedstate has been discussed but is not included in this PR; will be revisited once real concurrent execution requirements are confirmed