Simplify subagent execution for models - #546
Open
fazxes wants to merge 26 commits into
Open
Conversation
fazxes
force-pushed
the
fazxes/shell-managed-execution
branch
from
August 31, 2026 19:50
b98ac38 to
b7e60da
Compare
fazxes
force-pushed
the
fazxes/subagent-managed-execution
branch
4 times, most recently
from
August 31, 2026 21:16
9c8718e to
13b32af
Compare
Replace the terminal and background command surfaces with one managed shell lifecycle. Preserve process ownership, PTY input, output replay, legacy session cleanup, and Ctrl-X visibility through the existing runtime boundaries.
Keep native captured-command admission unavailable when threads are absent and use a bounded tombstone counter supported by WASM.
Remove scenarios for the deleted background command and keep one direct assertion that the old command is no longer registered.
Exercise the browser workspace through shell run and keep its strict completion-only boundary assertions current.
Keep help-menu and persistence fixtures aligned after removing the background command.
Document the completion-only shell run contract exposed by the embedded workspace.
Assert that unrecoverable legacy terminal calls resume as inert summaries without structured replay.
Assert structured command results and use the registered shell action in saved permission fixtures.
Propagate cancelled initial runs through the existing agent interruption path and align streamed TUI fixtures with shell results.
Use shell run in external path fixtures and assert structured command results in terminal-ownership coverage.
Stop benchmarking the deleted background command while preserving the existing startup budget.
Carry cancelled managed-command snapshots through the existing result boundary and update current shell fixtures across the full E2E matrix.
Stream managed output through the existing lifecycle edge, prioritize framed replay in Ctrl-O, and refresh the remaining current-shell E2E contracts.
Preserve final TTY output, isolate overlapping command lifecycles, and keep managed results bounded. Align observation defaults, capacity, and descendant cleanup with the tested shell workflow.
Accept host handshakes before durable recovery, reindex persisted TTY sessions, and enforce TTY deadlines from command start. Fail closed on execution identity collisions, preserve indeterminate loss, and stop repeated shell failures.
Update the byte-exact built-in schema digest after rebasing onto the consolidated capability and Exa tool surface.
Update command output assertions for nested shell detail rows and durable replay files.
Include the execution route and effective shell in permission fingerprints, and reject direct-only authority before PTY startup.
Keep the shell registry changes while retaining main's removed memory surface and regression coverage.
Record the rebased shell schema after retaining main's memory-tool removal.
fazxes
force-pushed
the
fazxes/shell-managed-execution
branch
from
August 31, 2026 22:55
41d3eef to
c0065fa
Compare
Expose run, wait, send, and stop instead of the internal manager command set. Keep child persistence, permissions, observation, and lifecycle policy in the runtime. Deliver completed child results through the existing acknowledged parent ledger. Project legacy history without keeping a second execution path. Preserve advanced subagent management for human and internal callers.
fazxes
force-pushed
the
fazxes/subagent-managed-execution
branch
from
August 31, 2026 23:23
44acb4d to
32588ae
Compare
fazxes
marked this pull request as ready for review
September 1, 2026 00:09
fazxes
force-pushed
the
fazxes/shell-managed-execution
branch
from
September 1, 2026 05:34
1e86cac to
db902ab
Compare
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
run,wait,send, andstop.cancelsynonym without adding another execution path.Stacked on #520.