claude-code - 💡(How to fix) Fix [DOCS] Agent view docs omit background shell-command rows and completed-row behavior

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Root Cause

Background shell commands may appear as rows in agent view while they are running. When they finish, they move to Completed instead of remaining under Working. Opening a completed command row should show the saved command result or task details; it should not start the command again just because the inline output preview has expired.

RAW_BUFFERClick to expand / collapse

Documentation Type

Missing documentation (feature not documented)

Documentation Location

https://code.claude.com/docs/en/agent-view

Section/Topic

"Monitor sessions with agent view", especially row types, state transitions, and what opening a completed row does

Current Documentation

The current agent view docs describe the table as session-only UI:

Run claude agents to open agent view. It takes over the full terminal and lists every session grouped by state, with pinned sessions and the ones that need you at the top. Each row shows the session's name, current activity, and how long ago it last changed.

Press Space on a selected row to open the peek panel. It shows what the session needs from you, its most recent output, and any pull requests it opened.

Press Enter or on a selected row to attach. Agent view is replaced by the full interactive session, exactly as if you had run claude in that directory.

Related docs acknowledge background shell commands elsewhere, but only as generic background tasks:

For long-running processes such as dev servers or watch builds, Claude can set run_in_background: true to start the command as a background task and continue working while it runs. List and stop background tasks with /tasks.

What's Wrong or Missing?

The v2.1.144 release notes fixed two user-visible agent view behaviors for shell-command rows: completed command rows could linger under Working, and pressing Enter on a completed row could re-run the command after its cached output expired.

The current docs never explain that background shell commands can appear as rows in agent view, how those rows transition from Working to Completed, or what reopening a completed command row is supposed to do. As written, agent-view reads as though every row is an attachable session, while background shell commands are documented only under /tasks.

Suggested Improvement

Add a short note to agent-view explaining that background shell commands can surface as rows, alongside session rows, and document their expected behavior.

For example:

Background shell commands may appear as rows in agent view while they are running. When they finish, they move to Completed instead of remaining under Working. Opening a completed command row should show the saved command result or task details; it should not start the command again just because the inline output preview has expired.

If /tasks is still the preferred place to inspect or stop those commands, cross-link that workflow explicitly from agent-view.

Impact

Medium - Makes feature difficult to understand

Additional Context

Affected Pages:

PageLine(s)Context
https://code.claude.com/docs/en/agent-view73-81, 153-161Describes agent view rows as sessions and documents Space/Enter behavior, but not shell-command rows
https://code.claude.com/docs/en/tools-reference121Documents background Bash commands as tasks, without connecting them to agent view
https://code.claude.com/docs/en/commands117/tasks is listed as the command for background tasks, but does not clarify how this relates to agent view

Total scope: 3 pages affected

Version context: This gap is about behavior fixed in Claude Code v2.1.144.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [DOCS] Agent view docs omit background shell-command rows and completed-row behavior