Skip to content

Focused agent details view shows stale state after agent completes #2080

@outwebbed

Description

@outwebbed

Problem

When viewing a focused agent task details window in the CLI, if the background agent completes while the details view is focused, the view continues to show 'thinking...' with an incrementing timer/counter instead of reflecting the actual completed state.

The stale state persists until you press Escape to exit the focused view. Once you return to the main /tasks view, it correctly shows the agent has completed.

Expected Behavior

The focused details view should either:

  1. Auto-refresh to show the completed state, or
  2. Auto-dismiss when the agent finishes, or
  3. At minimum, indicate to the user that the agent has completed

Steps to Reproduce

  1. Launch a background subagent task
  2. Keep the focused agent details view open (don't escape out)
  3. Wait for the agent to complete
  4. Observe the details view continues showing 'thinking...' with active timer
  5. Press Escape to exit the details view
  6. Return to /tasks — now it correctly shows no running agents

Impact

  • Users are misled about agent status (appears running when it's done)
  • Creates false impression that the tool might be hung
  • Reduces confidence in the agent execution model

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions