claude-code - 💡(How to fix) Fix [DOCS] Agent view dispatch input docs incorrectly imply `/logout` dispatches as a prompt

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…

Error Message

The current Agent View docs do not describe that exception. As written, the /<command> row says commands are suggested "to dispatch as the prompt," which implies /logout in the agent-view input can be treated as a task prompt and sent to a new background session. That contradicts the current auth behavior for /logout, where the command should act on the user's Claude Code authentication state.

Root Cause

This matters because /logout is not a normal task command. Users who type it in claude agents are trying to sign out, not launch a background session whose prompt happens to be /logout.

Fix Action

Fix / Workaround

"Dispatch new agents" > "From agent view" input behavior for native slash commands, especially /logout.

The Agent View page currently describes the input as a background-session dispatch prompt:

/<command> | Suggest skills and commands to dispatch as the prompt

RAW_BUFFERClick to expand / collapse

Documentation Type

Incorrect/outdated documentation

Documentation Location

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

Section/Topic

"Dispatch new agents" > "From agent view" input behavior for native slash commands, especially /logout.

Current Documentation

The Agent View page currently describes the input as a background-session dispatch prompt:

Type a prompt in the input at the bottom of agent view and press Enter to start a new background session.

It then describes slash-command input this way:

/<command> | Suggest skills and commands to dispatch as the prompt

The command reference separately documents /logout as an auth command:

/logout | Sign out from your Anthropic account

The authentication page also says:

To log out and re-authenticate, type /logout at the Claude Code prompt.

What's Wrong or Missing?

Claude Code v2.1.154 changed claude agents so /logout signs the user out instead of being sent to a background session.

The current Agent View docs do not describe that exception. As written, the /<command> row says commands are suggested "to dispatch as the prompt," which implies /logout in the agent-view input can be treated as a task prompt and sent to a new background session. That contradicts the current auth behavior for /logout, where the command should act on the user's Claude Code authentication state.

This matters because /logout is not a normal task command. Users who type it in claude agents are trying to sign out, not launch a background session whose prompt happens to be /logout.

Suggested Improvement

Update the Agent View input table to distinguish commands that execute in agent view from commands or skills that can seed a dispatched prompt.

For example, revise the /<command> row or add a short note after the table:

Some native commands execute directly from the agent-view input instead of becoming a background-session prompt. For example, /logout signs you out of Claude Code. Commands and skills intended as workflows can still be selected from the command menu to dispatch a new session.

If only a small set of native commands execute directly in agent view, list that set explicitly so users can predict whether pressing Enter signs out, opens a local UI, or starts a background session.

Impact

Medium - Makes feature difficult to understand

Additional Context

Affected Pages:

PageLine(s)Context
https://code.claude.com/docs/en/agent-view235-246Describes the agent-view input as dispatching prompts and says /<command> suggests commands to dispatch as the prompt
https://code.claude.com/docs/en/commands87-88Documents /logout as "Sign out from your Anthropic account"
https://code.claude.com/docs/en/authentication26Tells users to type /logout to log out and re-authenticate

Total scope: 3 pages affected

Version context: Claude Code v2.1.154 release entry: "claude agents: /logout now signs you out instead of being sent to a background session."

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