Skip to content

Add isolated Code Mode and reliable terminal execution - #540

Draft
fazxes wants to merge 1 commit into
mainfrom
fazxes/shell-parity-ci
Draft

Add isolated Code Mode and reliable terminal execution#540
fazxes wants to merge 1 commit into
mainfrom
fazxes/shell-parity-ci

Conversation

@fazxes

@fazxes fazxes commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add a restricted code tool for composing file reads, searches, stored-result reads, and foreground terminal commands in JavaScript.
  • Keep nested operations on the existing validation, permission, execution, and lifecycle paths.
  • Stop Code Mode before later effects after approval-required or indeterminate nested results.
  • Run generated code in an isolated companion with no direct filesystem, network, environment, package, or subprocess access.
  • Preserve final PTY output until the terminal host journals it before session completion.
  • Normalize one stringified nested terminal request only when the full terminal schema is active.
  • Show Code Mode activity without double-counting nested operations.
  • Package, sign, and update the Code Mode companion alongside fx.

Introduce bounded JavaScript composition through an isolated companion while preserving existing validation, permission, and lifecycle paths. Preserve final PTY output, normalize eligible stringified terminal requests, and add deterministic shell parity coverage.
@fazxes fazxes added the type: feature Adds a new user-facing capability label Aug 31, 2026
@vercel-security-reviewer

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: feature Adds a new user-facing capability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant