Make parent-owned sub-agent threads read-only in the TUI#33841
Merged
copyberry[bot] merged 1 commit intoJul 17, 2026
Merged
Conversation
## Why Multi-agent V2 spawned threads are controlled by their parent and reject direct app-server input. The TUI should expose that ownership instead of presenting an input flow that the server will reject. ## What changed - Add the experimental `Thread.canAcceptDirectInput` capability for loaded threads and populate it from the same policy used to validate `turn/start` and `turn/steer`. Stored, unloaded threads report `null`. - Carry the capability through TUI thread discovery, selection, startup, and resume flows, with a compatibility fallback for older app servers. - Present parent-owned threads as view-only, preserve drafts and queued input, block agent-directed commands and settings shortcuts, and keep local navigation and inspection commands available. ## Testing - Cover V1 writable and V2 view-only spawned threads through selection and resume. - Cover composer submission paths, queued and initial input preservation, allowed navigation commands, settings shortcuts, and the view-only UI. GitOrigin-RevId: 495ad051249e5577fb0b0c1cc8c40a0998d04918
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/495ad051249e5577fb0b0c1cc8c40a0998d04918
branch
from
July 17, 2026 15:16
e489c80 to
3f0669d
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/495ad051249e5577fb0b0c1cc8c40a0998d04918
branch
July 17, 2026 15:17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Make parent-owned sub-agent threads read-only in the TUI
Why
Multi-agent V2 spawned threads are controlled by their parent and reject direct
app-server input. The TUI should expose that ownership instead of presenting an
input flow that the server will reject.
What changed
Thread.canAcceptDirectInputcapability for loadedthreads and populate it from the same policy used to validate
turn/startand
turn/steer. Stored, unloaded threads reportnull.resume flows, with a compatibility fallback for older app servers.
block agent-directed commands and settings shortcuts, and keep local
navigation and inspection commands available.
Testing
resume.
allowed navigation commands, settings shortcuts, and the view-only UI.