Skip to content

Unify command execution under shell - #520

Open
fazxes wants to merge 13 commits into
mainfrom
fazxes/shell-managed-execution
Open

Unify command execution under shell#520
fazxes wants to merge 13 commits into
mainfrom
fazxes/shell-managed-execution

Conversation

@fazxes

@fazxes fazxes commented Aug 29, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Replace the procedural terminal schema with shell run, wait, write, stop, and list actions.
  • Keep slow and zero-yield captured or TTY commands attached to one managed execution handle.
  • Preserve output replay, process-tree cleanup, Ctrl-X visibility, and running handles across /clear.
  • Migrate legacy background ownership to inert history after token-validated cleanup.
  • Remove the monitor, detached background, and direct terminal lifecycle implementations.
  • Emit neutral command results across the TUI, CLI, ACP, no-save, and browser surfaces.

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.
@fazxes fazxes added the type: improvement Improves existing user-facing behavior label Aug 29, 2026
Keep native captured-command admission unavailable when threads are absent and use a bounded tombstone counter supported by WASM.
@vercel-security-reviewer

Copy link
Copy Markdown

fazxes added 11 commits August 29, 2026 00:45
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.
@fazxes
fazxes marked this pull request as ready for review August 29, 2026 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: improvement Improves existing user-facing behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant