Skip to content

feat: show live active_form as single-agent work-log header#1697

Open
Pakchoioioi wants to merge 2 commits into
mainfrom
single-agent-active-form-header
Open

feat: show live active_form as single-agent work-log header#1697
Pakchoioioi wants to merge 2 commits into
mainfrom
single-agent-active-form-header

Conversation

@Pakchoioioi

@Pakchoioioi Pakchoioioi commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

What

In single-agent mode, the running work-log header showed a static "CAMEL Agent" label. This PR replaces it with the live active_form of the in-progress todo.

image

Behavior

  • No more "CAMEL Agent" during a running single-agent task.
  • In the same header position, show the current in-progress step's active_form text.
  • The label updates live as the in-progress todo changes (previous step finishes → next step's active_form appears).
  • If the text is too long for one line, it wraps onto multiple lines instead of being truncated.

Animation

  • Cross-fade + slide transition on each active_form change (via AnimatePresence keyed on the label).
  • Existing ShinyText shimmer retained while running.

In single-agent mode the running work-log header showed a static
"CAMEL Agent" label. Replace it with the in-progress todo's `active_form`
text (e.g. "Searching literature on Google"), updated live as the agent
advances through its todos.

- Add getSingleAgentActiveForm() deriving the running (or last completed)
  step's active_form from the single_agent's tasks
- Fold the active_form into the store snapshot digest so the header
  re-renders on TODO_STATE updates
- Animate the label: cross-fade/slide on each step change, wrap onto
  multiple lines instead of truncating
- Leave multi-agent (workforce) headers unchanged

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

@Douglasymlai Douglasymlai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for your contribution, Regina.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants