Skip to content

[BUG] User questions and answers lost from transcript while background subagents are running #27338

Closed as not planned

Description

@jlazarre95

Description

When background subagents (Task agents with run_in_background: true) are running, if the user types a question in the main Claude Code interface, both the question and the response are silently lost. They do not appear in the visible conversation, and they are also not visible when viewing the transcript via Ctrl+O.

Steps to Reproduce

  1. Start a Claude Code session
  2. Launch one or more background subagents (e.g., via the Task tool with run_in_background: true)
  3. While the subagents are running, type a question in the main input
  4. Observe that the question appears to be processed, but neither the question nor the answer is visible in the conversation
  5. Press Ctrl+O to view the full transcript — the question and answer are missing there as well

Expected Behavior

  • User questions typed while background subagents are running should be visible in the main conversation
  • The responses to those questions should also be visible
  • Both should appear in the transcript (Ctrl+O) for later review

Actual Behavior

  • The question and answer are silently swallowed
  • They do not appear in the conversation view
  • They do not appear in the Ctrl+O transcript view
  • There is no indication to the user that their input was lost

Impact

This makes it impossible to ask lightweight questions (e.g., clarifications, unrelated queries) while background agents are doing work, without interrupting/cancelling all running subagents first.

Related Issues

Environment

  • Claude Code CLI
  • macOS (Darwin 25.2.0)

Activity

  1. github-actions commented on Feb 21, 2026

    @github-actions

    Found 3 possible duplicate issues:

    1. Queued/pending user input silently lost while agent is working #20431
    2. [BUG] User message missing from JSONL transcript despite being received by the model #26493
    3. [BUG] Assistant text messages not written to transcript - only thinking blocks persist #21751

    This issue will be automatically closed as a duplicate in 3 days.

    • If your issue is a duplicate, please close it and 👍 the existing issue instead
    • To prevent auto-closure, add a comment or 👎 this comment

    🤖 Generated with Claude Code

  2. jlazarre95 commented on Feb 21, 2026

    @jlazarre95
    Author

    I do not think this is a duplicate because this seems to be a problem specifically with background agents. I have not normally observed this behavior without using background agents.

  3. scapeshift-ojones commented on Feb 23, 2026

    @scapeshift-ojones

    This is a related transcript integrity issue — tracked alongside other conversation history accessibility bugs in #27242. The common thread across all of these: Claude Code's transcript/session data has gaps or is inaccessible from the TUI, even when partial data exists on disk.

    If you're affected by transcript data loss, please also 👍 and comment on #27242 where we're consolidating the broader "can't review previous context" problem.

  4. github-actions commented on Mar 23, 2026

    @github-actions

    Closing for now — inactive for too long. Please open a new issue if this is still relevant.

  5. github-actions commented on Mar 31, 2026

    @github-actions

    This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

  6. locked as resolved and limited conversation to collaborators on Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleIssue is inactive

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions