Skip to content

MultiAgentV2: Allow child threads to accept corrections and steering #33885

Open

Description

@ignatremizov

What version of Codex CLI is running?

Originally reported after #33841 (Make parent-owned sub-agent threads read-only in the TUI, post-0.145.0). The app-server rejection was introduced earlier by #27173.

Source review refreshed on 2026-10-26 against upstream main at 245691b2dc66. Updated references to my fork below are from the maintained 0.164.0 integration.

What subscription do you have?

Pro 20x. Not subscription-specific.

Which model were you using?

This applies to MultiAgentV2 thread-spawn children. It is a runtime policy rather than a restriction specific to one model.

What platform is your computer?

Not platform-specific.

What terminal emulator and version are you using (if applicable)?

Not terminal-specific.

Codex doctor report

Not applicable to this source-level report.

What issue are you seeing?

MultiAgentV2 child threads can be opened and inspected, but intentional direct user input is blocked. After explicitly selecting a child, the composer says Viewing sub-agent — direct input is disabled. App-server turn/start and turn/steer reject the same child with:

direct app-server input is not allowed for multi-agent v2 sub-agents

This prevents a user from correcting a misunderstanding, adding a missing constraint, steering active work, or continuing a completed child for a related follow-up.

The user must instead return to the parent and spend another parent-model turn asking it to relay the correction. That adds latency and model usage. When the relay is encrypted, #28058 also prevents the user from inspecting its exact text. Upstream's later plaintext support does not remove this separate direct-input restriction.

Parent ownership is useful for routing and lifecycle management. It should not prohibit a user from intentionally interacting with a child they explicitly selected.

What steps can reproduce the bug?

  1. Start a session using MultiAgentV2 and have the parent spawn a child.
  2. Explicitly select that child through /agent or the configured agent-navigation shortcut.
  3. Enter a correction or follow-up and submit it.
  4. Observe This sub-agent is controlled by its parent. Direct input is disabled.
  5. For an app-server reproduction, call turn/start on an idle child or turn/steer on an active child with the current expectedTurnId.
  6. Observe the source-based rejection above rather than ordinary turn admission.

What is the expected behavior?

An explicitly selected child should accept direct user input under the normal thread lifecycle:

  • Start a follow-up turn when idle/completed.
  • Steer an active turn with valid turn-ID checks.
  • Retain the child/parent identity in the UI.
  • Persist direct corrections as ordinary readable user input.
  • Keep ordinary conversation input on the parent unless the user explicitly selects or resumes the child.
  • Preserve external-writer protection, persistence-failure quarantine, provider requirements, and normal concurrency validation.

This follows the distinction in #18684: prevent accidental continuation in a child while still allowing intentional selection/resume.

Current upstream status and source analysis (2026-10-26)

The restriction is still present. Its shared owner has moved from the older inline turn_processor.rs implementation to request_processors/thread_input.rs.

These are deliberate policy checks, not evidence that the child cannot receive another instruction.

Current implementation in my fork

My fork removes the blanket parent-owned/V2 input restriction in both layers and keeps the ordinary admission and writer-safety checks:

The maintained implementation also handles later lifecycle paths:

Loaded child responses report canAcceptDirectInput: true; unloaded stored threads report an unavailable capability until resumed. A cold V2 child is restored through its matching live owning parent, retaining recorded settings and ownership rather than creating a detached fallback. Queueing input to an unloaded child still requires resuming it first. Direct interaction does not bypass active-turn validation, provider policy, or external-writer/persistence safeguards.

Current API/lifecycle documentation.

Implementation / acceptance criteria

  1. Remove the unconditional V2 thread-spawn rejection from shared direct-input policy, and update the exposed capability consistently across loaded thread responses.
  2. Enable direct submission after explicit child selection; retain safeguards for threads that are externally owned or quarantined.
  3. Apply ordinary turn/start, turn/steer, queued-input, and stale-turn validation instead of rejecting by parent ownership.
  4. Preserve parent/child identity and parent-default navigation so intentional child input does not create accidental retargeting.
  5. Persist user corrections as readable user turns without an extra parent inference or inter-agent relay.
  6. Preserve the owning controller and recorded child configuration during resume; fail recoverably when the required owner is unavailable.
  7. Cover explicit child selection, idle follow-up, active steering, invalid turn IDs, queued input, resume, capability reporting, and writer-safety behavior.

Related: #27173, #33841, #18684, #28058. Model/role selection reports #32782 and #31814 describe related configuration friction, but direct user corrections should remain possible independently of those fixes.

Activity

  1. added
    bug
    CLI
    subagent
    app-server
    TUI
    on Jul 17, 2026
  2. jensenojs commented on Jul 18, 2026

    @jensenojs

    From a product behavior standpoint, I don't understand why this inexplicable restriction exists.

  3. added
    enhancement
    and removed
    bug
    TUI
    CLI
    app-server
    on Jul 21, 2026
  4. changed the title [-]Regression: MultiAgentV2 child threads are read-only, preventing direct user correction and steering[/-] [+]MultiAgentV2: Allow child threads to accept corrections and steering[/+] on Jul 21, 2026
  5. wuyak commented on Aug 9, 2026

    @wuyak

    I opened #37744 as a complementary protocol request.

    Allowing direct corrections and steering on child threads solves the entry-point problem, but the caller also needs to know whether the steering was queued, which turn consumed it, whether it was applied or rejected, and whether a later update superseded it.

    A successful turn/steer or send_message submission should not by itself imply applied. A durable message ID plus observable lifecycle state would make this feature reliable for parent-child orchestration and safe retries.

  6. Ducheved commented on Aug 18, 2026

    @Ducheved

    Strong +1 on explicit user steering of a selected child.

    I think one additional part of the contract is important: who owns the child's next instruction when parent and user act concurrently?

    Once children become directly steerable, there are three independent event sources:

    parent  followup/delegation
    user    correction/steer
    child   current active turn
    

    I would prefer this to be explicit rather than resolved by arrival order.

    For example, direct user input could have a monotonically visible generation/epoch:

    child assignment generation 7
    user steer  generation 8
    stale parent followup targeting generation 7  rejected / requires rebase
    

    It does not have to use generations specifically, but there should be some equivalent concurrency contract. Otherwise a user can correct a worker, then an alreadyinflight parent followup can silently steer it back to the old plan.

    This matters even more with larger fanout (#39129): the parent may be managing many children and have stale assumptions about one worker by the time a human intervenes.

    Direct steering is the right capability; I would just make human intervention observable to the orchestrator and protected from stale parent commands.

  7. abcjhby2871 commented on Sep 24, 2026

    @abcjhby2871

    One product-level point I think is worth emphasizing: this should be treated as direct user ↔ child-agent conversation, not merely as an escape hatch for "corrections".

    Claude Code's Agent Teams are a useful UX reference. Each teammate is a full independent session, and the user can explicitly select a teammate, open its transcript, and type directly into that teammate's session for follow-up questions, additional instructions, or redirection:

    https://code.claude.com/docs/en/agent-teams#talk-to-teammates-directly

    That interaction model is valuable even when nothing has gone wrong.

    Why direct child conversation matters

    A spawned specialist may have accumulated context that the parent does not have:

    • a long code review;
    • a debugging hypothesis and the evidence it gathered;
    • a literature/research thread;
    • a benchmark or experiment analysis;
    • a large repo/module-specific mental model.

    If I want to ask:

    Why did you conclude this race condition is in the dataloader rather than the trainer?

    the natural target is the agent that actually did the investigation.

    Routing that through the parent:

    user → parent inference → inter-agent relay → child
    

    has several downsides:

    • burns an unnecessary parent turn;
    • may summarize or distort the user's question;
    • adds latency;
    • makes the audit trail harder to follow;
    • forces the parent to remain a communication bottleneck;
    • defeats some of the value of separate context windows.

    The preferable interaction is:

    user
      ↓
    explicitly selects child
      ↓
    child transcript + child context
      ↓
    direct follow-up / steering
    

    Suggested UX

    In Desktop, the Subagents panel could make every child a navigable conversation object:

    Parent task
    ├── researcher      working
    ├── debugger        idle
    └── reviewer        done
    

    Clicking one should open its transcript and composer.

    Then:

    • active child → user input uses normal steering semantics;
    • idle child → start another turn in the same child context;
    • completed child → allow follow-up / resume without spawning a replacement;
    • return to parent → parent remains the default task and continues to own orchestration.

    The UI should make the current target unambiguous, e.g. "Talking to: debugger · child of ".

    I would also preserve explicit provenance:

    • direct human input remains role=user in the child;
    • parent/peer-agent messages are rendered as attributed agent messages;
    • switching into a child must be an explicit navigation action so ordinary parent input can never accidentally land in a child.

    Relationship to cross-thread messaging

    This complements rather than replaces agent ↔ agent messaging.

    user ↔ child              direct inspection / steering
    agent ↔ agent             coordination
    external event → thread   monitor/wake
    

    All three benefit from treating child sessions as first-class persistent threads with an inbox, provenance, and lifecycle.

    Longer term, it may also be useful to support promoting/detaching a child into a normal independent thread while preserving its transcript and parent linkage. A subagent that starts as a delegated specialist can sometimes become an important investigation in its own right.

    The key point is that a subagent should not become inaccessible just because it was originally spawned by a parent. If the user explicitly selects it, the user should be able to talk to the agent that actually owns that context.

  8. nilswx commented on Oct 15, 2026

    @nilswx

    Current-main source confirmation: thread_input.rs::can_accept_direct_input still rejects existing V2 thread-spawn children with direct app-server input is not allowed for multi-agent v2 sub-agents; both turn/start and turn/steer call this guard before their normal turn lifecycle checks. thread/start creates a new thread and cannot target an existing child. The explicit-selection boundary in this issue remains important: preserve parent as the default input target, and route child input only after the user selects/resumes that child. No live RPC reproduction was performed.

  9. ignatremizov commented on Oct 26, 2026

    @ignatremizov
    Author

    Update (2026-10-26): I rechecked this against upstream 245691b2dc66 and refreshed the upstream source references and links to my fork.

    The restriction is still present, but its shared implementation has moved to request_processors/thread_input.rs. Both turn/start and turn/steer call that validator, and the TUI still blocks input to selected V2 children.

    The current fixes in my fork are direct TUI input with writer protection and direct app-server input. Later changes restore children through their live owning control and keep resumed children interactive. Ordinary turn-ID, provider, ownership, and writer-safety checks still apply.

    I also refreshed #28058; upstream plaintext-message support is useful progress there, but does not remove this direct-input policy.

  10. SipengXie2024 commented on Oct 28, 2026

    @SipengXie2024

    I have a local Linux implementation based on rust-v0.165.0 that separates direct conversation from management of the child. That separation lets the selected child accept a user message while its parent continues to own the execution settings.

    The API contract is:

    • A loaded parent-managed V2 child reports canAcceptDirectInput: true and a separate canManageThread: false. Loaded, resumed, and enriched thread responses use the same distinction; unavailable capabilities remain unavailable for unloaded threads.
    • An idle child accepts turn/start with ordinary user input. A running child accepts turn/steer through the existing turn-ID and admission checks. Direct input cannot override its model, permissions, working directory, environments, lineage, or tool output.
    • Parent-managed configuration, synthetic item injection, review, and compaction remain protected. Additional context supplied with direct input must be user-level/untrusted; application context that becomes a developer message is rejected on both start and steer.
    • Cold resume still resolves the child through its owning parent and preserves the recorded ownership and settings.

    In the TUI, /subagents selects the existing child transcript and composer. A message targets that child only. Esc interrupts the selected child's turn; selecting the parent again changes the displayed conversation without cancelling parent or child work. Model and permission controls remain parent-owned. External-writer views remain read-only.

    Child completion still reaches the parent through the result-notification path. Compatibility handling also covers older V2 child records without an agent_path: the existing parent thread ID and child UUID are sufficient to route an attributed result without inventing a path or a replacement agent.

    Local verification passed for the full CLI build, the start/steer permission validators, child completion delivery, and TUI input/stop/navigation, cold-resume, and capability compatibility tests. These checks exercise validation and runtime/UI state; authenticated model-driven end-to-end conversation, non-Linux platforms, and remote CI have not been run.

    The useful design boundary here is that permission to talk to a child need not grant permission to reconfigure or detach it. This provides direct follow-up without an extra parent-model relay.

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

    enhancementsubagent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions