claude-code - 💡(How to fix) Fix [BUG] Attaching an interactive session to Agent View can interfere with the session progress

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

Error Messages/Logs

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

I tried to attach an existing interactive session to Claude agent View.

I ran the /bg command and the session was attached to agent view.

The status of the session in agent view was "Working"

I entered the session and I realized that the agent view manager had sent a command "continue" to the session.

Since the last response from Claude Code in the session had a question about proceeding to fix a bug, Claude Code interpreted that "continue" command from the agent view manager as a affirmative response to the last question in the session, so Claude started working on the fixes that it had proposed without my consent.

What Should Happen?

Attaching an existing session to the agent view using the /bg command should keep the session in its current state. Any commands run to attach the session to agent view should not be interpreted by claude code as a user response to the previous claude response.

Error Messages/Logs

Steps to Reproduce

  1. Open a new or existing claude code session where the last response from claude code contains a question asking for user confirmation. Example: "Do you want me to fix this bug?". But the user hasn't given any answer to it.
  2. Run the /bg command to send the session to the agent view (background)
  3. In the agent view, open the session, confirm that the "continue" command sent by agent view to the session has been interpreted by claude code as an affirmative user response to its previous question.

Claude Model

Opus

Is this a regression?

No, this never worked

Last Working Version

No response

Claude Code Version

v2.1.139

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

iTerm2

Additional Information

No response

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