Repository navigation
Description
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?
- Start a session using MultiAgentV2 and have the parent spawn a child.
- Explicitly select that child through
/agentor the configured agent-navigation shortcut. - Enter a correction or follow-up and submit it.
- Observe
This sub-agent is controlled by its parent. Direct input is disabled. - For an app-server reproduction, call
turn/starton an idle child orturn/steeron an active child with the currentexpectedTurnId. - 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.
- Shared policy and validator: a V2 session whose source is
SubAgentSource::ThreadSpawnis denied direct input. turn/startcalls the validator.turn/steercalls the same validator before normal turn-ID validation.- The API exposes
canAcceptDirectInput; the TUI converts it into a direct-input block, with a source-based fallback for older servers. - The composer sets the read-only child placeholder and blocks submission.
- The higher-level TUI operation path also blocks user turns, review, and compaction.
- The app-server rejection test still explicitly covers Legacy and Paginated history modes.
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:
- Allow direct child-thread input while preserving writer quarantine —
5cd79eaef8a0 - Allow direct child input and caller-controlled cold resume —
705709c73cc4
The maintained implementation also handles later lifecycle paths:
- Restore recorded agents through their live owning control —
de0c900321b1 - Keep resumed agent threads directly interactive —
f0e4b9fc33cb
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
- Remove the unconditional V2 thread-spawn rejection from shared direct-input policy, and update the exposed capability consistently across loaded thread responses.
- Enable direct submission after explicit child selection; retain safeguards for threads that are externally owned or quarantined.
- Apply ordinary
turn/start,turn/steer, queued-input, and stale-turn validation instead of rejecting by parent ownership. - Preserve parent/child identity and parent-default navigation so intentional child input does not create accidental retargeting.
- Persist user corrections as readable user turns without an extra parent inference or inter-agent relay.
- Preserve the owning controller and recorded child configuration during resume; fail recoverably when the required owner is unavailable.
- 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
jensenojs commentedon Jul 18, 2026
From a product behavior standpoint, I don't understand why this inexplicable restriction exists.
[-]Regression: MultiAgentV2 child threads are read-only, preventing direct user correction and steering[/-][+]MultiAgentV2: Allow child threads to accept corrections and steering[/+]wuyak commentedon Aug 9, 2026
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/steerorsend_messagesubmission should not by itself implyapplied. A durable message ID plus observable lifecycle state would make this feature reliable for parent-child orchestration and safe retries.Ducheved commentedon Aug 18, 2026
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:
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:
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.
abcjhby2871 commentedon Sep 24, 2026
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:
If I want to ask:
the natural target is the agent that actually did the investigation.
Routing that through the parent:
has several downsides:
The preferable interaction is:
Suggested UX
In Desktop, the Subagents panel could make every child a navigable conversation object:
Clicking one should open its transcript and composer.
Then:
The UI should make the current target unambiguous, e.g. "Talking to: debugger · child of ".
I would also preserve explicit provenance:
Relationship to cross-thread messaging
This complements rather than replaces agent ↔ agent messaging.
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.
nilswx commentedon Oct 15, 2026
Current-main source confirmation:
thread_input.rs::can_accept_direct_inputstill rejects existing V2 thread-spawn children withdirect app-server input is not allowed for multi-agent v2 sub-agents; bothturn/startandturn/steercall this guard before their normal turn lifecycle checks.thread/startcreates 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.ignatremizov commentedon Oct 26, 2026
Update (2026-10-26): I rechecked this against upstream
245691b2dc66and 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. Bothturn/startandturn/steercall 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.
SipengXie2024 commentedon Oct 28, 2026
I have a local Linux implementation based on
rust-v0.165.0that 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:
canAcceptDirectInput: trueand a separatecanManageThread: false. Loaded, resumed, and enriched thread responses use the same distinction; unavailable capabilities remain unavailable for unloaded threads.turn/startwith ordinary user input. A running child acceptsturn/steerthrough the existing turn-ID and admission checks. Direct input cannot override its model, permissions, working directory, environments, lineage, or tool output.In the TUI,
/subagentsselects 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.