Skip to content

chatd: a parent blocked in wait_agent gets family messages only after the wait ends #422

Closed

Description

@ibetitsmike

Coder Agents acted on behalf of @ibetitsmike.

Known limit 1 from #247 (issuecomment-6857665911), never filed.

message_family_chat sends with SendMessageBusyBehaviorSteer (coderd/x/chatd/fork_family_messages.go). A parent that is blocked inside wait_agent (awaitSubagentCompletion) stays in its turn, so the steer is only delivered after wait_agent returns. A child that messages its waiting parent ("I need X before I can finish") gets no reaction until the wait times out.

Acceptance:

  • A family message to a parent blocked in wait_agent reaches the parent's model without waiting for the wait to end. For example, wait_agent returns early with the pending family message noted in its result, or the message is surfaced in the tool result.
  • No family message is lost or delivered twice.
  • A test that fails without the change.
  • Behind the existing fork-family-messages experiment.

Activity

  1. added
    enhancement
    followup
    on Nov 23, 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

    enhancementfollowup

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions