Skip to content

Add isolated command execution - #12

Merged
R055LE merged 1 commit into
mainfrom
agent/isolated-script-execution
Aug 17, 2026
Merged

Add isolated command execution#12
R055LE merged 1 commit into
mainfrom
agent/isolated-script-execution

Conversation

@R055LE

@R055LE R055LE commented Aug 17, 2026

Copy link
Copy Markdown
Owner

What changed

  • Add an explicit Run isolated path that executes exact composer input in a child Bash process.
  • Keep persistent Send for state-carrying shell commands and warn on common strict-mode prologues.
  • Record execution mode on command cards, preserve it across reruns and saved transcripts, and migrate existing Room data as persistent.
  • Document the remaining persistent-shell recovery and running-command input boundaries.

Why

A transcript command that enabled set -euo pipefail could terminate the persistent Bash shell after a failure before Threadline emitted its completion marker. Treating every command as isolated would prevent that failure but would also break persistent cd, exports, aliases, and functions.

The explicit mode keeps both contracts honest. An isolated failure reports the child status through the transcript while the outer shell remains available, including when the outer shell already has errexit enabled.

User impact

Script-like strict-mode commands can fail without dropping the SSH session when run isolated. Persistent shell behavior remains available when state changes are intentional.

Validation

  • ./gradlew --no-daemon test lint assembleDebug assembleRelease
  • Complete API 35 connected Android suite
  • Production Android SSH integration suite against the disposable OpenSSH fixture using password and encrypted imported-key authentication
  • Room v4-to-v5 migration and saved-transcript round trip
  • Diff checks and high-confidence leak scan

@R055LE
R055LE marked this pull request as ready for review August 17, 2026 03:45
@R055LE
R055LE merged commit 01b3add into main Aug 17, 2026
1 check passed
@R055LE
R055LE deleted the agent/isolated-script-execution branch August 17, 2026 03:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant