restructure ux rendering flow and ui bugs for single agent harness#1648
Merged
Douglasymlai merged 3 commits intoMay 20, 2026
Merged
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.
Related Issue
Description
Adds CAMEL-based single-agent mode and fixes the session/chat UX so single-agent runs behave correctly end-to-end (no workforce-only planning UI, no mode flicker on load).
Backend
single_agent_service, factory, toolkits (observable_todo,depth_limited_agent), agent memory, and chat routing so tasks can run as a single CAMEL agent instead of a workforce.Frontend — session mode
inferSessionModeFromTask()with anullfallback while a saved session is still loading, so the UI does not flash workforce → single-agent.pageTabStorev1 migration clears legacy persisted workforce default).sessionModeon replay/share playback; mode is inferred from streamed events.Frontend — single-agent chat flow
UserQueryGroup,taskLifecycleUi,sessionNavLead).PENDING(before firsttodo_state), matching direct-run behavior.todo_state(no confirm step).Frontend — work log & polish
TaskWorkLogAccordion: singular “Preparing agent” label, unified running header shimmer, capitalized narration.Testing Evidence (REQUIRED)
Automated
Manual (attach screenshots/screen recording to this PR)
New task — Single Agent (default): From Workspace, start a task in Single Agent mode → no plan/split card; “Preparing to execute” then work log appear while status is still pending; side panel shows Single Agent view.
New task — Workforce: Toggle to Workforce → plan/split/confirm flow unchanged.
Reload saved single-agent session: Open an existing single-agent chat → side panel does not flash workforce UI before settling on Single Agent.
Reload saved workforce session: Open workforce session → workforce side panel and splitting/HITL icons behave as before.
Replay/share: Play back a saved session → session mode and side panel match playback events (no wrong-mode flash at start).
Work log: Running step shows full header shimmer; prep block reads “Preparing agent” in single-agent mode.
I have included human-verified testing evidence in this PR.
This PR includes frontend/UI changes, and I attached screenshot(s) or screen recording(s).
No frontend/UI changes in this PR.
What is the purpose of this pull request?
Contribution Guidelines Acknowledgement