Skip to content

feat(shell): --actor mode + PTY line-discipline & vim test suites - #1569

Merged
NathanFlurry merged 1 commit into
mainfrom
nathan/shell-vim-editors
Jul 2, 2026
Merged

NathanFlurry merged 1 commit into
mainfrom
nathan/shell-vim-editors

Conversation

@NathanFlurry

@NathanFlurry NathanFlurry commented Jul 1, 2026 •

Copy link
Copy Markdown
Member
  • --actor flag on the shell CLI runs the identical shell surface through the RivetKit agentOS actor (rivet engine + envoy + dylib plugin + sidecar) instead of the in-process core client
  • Shell actions on the actor surface (openShell/writeShell/resizeShell/closeShell/waitShell) with shellData/shellStderr/shellExit event broadcasts; spawn gains options and processOutput/processExit streaming
  • Rust client shell fixes: spawn-readiness gate could never flip (watch send with no receivers), wait_shell with exit-code retention, real resize via ResizePtyRequest, COLUMNS/LINES winsize env, { packageDir } boot packages on ConfigureVm
  • Actor plugin config ported to the packages/packagesMountAt shape; long waits reply off the serial action worker
  • PTY line-discipline test matrix (wasm-c and js-node), vim suites (skipped without the local fixture), waitShell-after-exit fix, pty-protocol snapshot updates
  • Shell registry-package loading accepts { packageDir } exports and skips manifest-less packages instead of aborting

@railway-app
railway-app Bot temporarily deployed to agentos / agentos-pr-1569 July 1, 2026 21:04 Destroyed
@railway-app

railway-app Bot commented Jul 1, 2026 •

Copy link
Copy Markdown

🚅 Deployed to the agentos-pr-1569 environment in agentos

Service Status Web Updated (UTC)
agentos 😴 Sleeping (View Logs) Web Jul 2, 2026 at 4:06 am

🚅 Environment agentos-pr-1569 in rivet-frontend has no services deployed.

@NathanFlurry
NathanFlurry force-pushed the nathan/shell-vim-editors branch from 622557e to b398417 Compare July 2, 2026 00:19
@railway-app
railway-app Bot temporarily deployed to agentos / agentos-pr-1569 July 2, 2026 00:19 Destroyed
@NathanFlurry NathanFlurry changed the title feat(shell): vim/vix local editors + recovered pty/vim tests + @secure-exec re-pin feat(core): PTY line-discipline + vim test suites, shell vim/vix editors Jul 2, 2026
@NathanFlurry
NathanFlurry force-pushed the nathan/shell-vim-editors branch from b398417 to 9c90e5d Compare July 2, 2026 00:42
@railway-app
railway-app Bot temporarily deployed to agentos / agentos-pr-1569 July 2, 2026 00:43 Destroyed
@NathanFlurry
NathanFlurry force-pushed the nathan/shell-vim-editors branch from 9c90e5d to 4b78ee8 Compare July 2, 2026 02:33
@railway-app
railway-app Bot temporarily deployed to agentos / agentos-pr-1569 July 2, 2026 02:33 Destroyed
@NathanFlurry NathanFlurry changed the title feat(core): PTY line-discipline + vim test suites, shell vim/vix editors feat(shell): --actor mode + PTY line-discipline & vim test suites Jul 2, 2026
@NathanFlurry
NathanFlurry force-pushed the nathan/shell-vim-editors branch from 4b78ee8 to a3f0929 Compare July 2, 2026 02:37
@railway-app
railway-app Bot temporarily deployed to agentos / agentos-pr-1569 July 2, 2026 02:37 Destroyed
@NathanFlurry
NathanFlurry force-pushed the nathan/shell-vim-editors branch from a3f0929 to 432b849 Compare July 2, 2026 02:43
@railway-app
railway-app Bot temporarily deployed to agentos / agentos-pr-1569 July 2, 2026 02:43 Destroyed
@NathanFlurry
NathanFlurry force-pushed the nathan/shell-vim-editors branch from 432b849 to 0e6ae1b Compare July 2, 2026 02:59
@railway-app
railway-app Bot temporarily deployed to agentos / agentos-pr-1569 July 2, 2026 02:59 Destroyed
@NathanFlurry
NathanFlurry force-pushed the nathan/shell-vim-editors branch from 0e6ae1b to 4a8b3cd Compare July 2, 2026 03:07
@railway-app
railway-app Bot temporarily deployed to agentos / agentos-pr-1569 July 2, 2026 03:07 Destroyed
@NathanFlurry
NathanFlurry force-pushed the nathan/shell-vim-editors branch from 4a8b3cd to 442bed8 Compare July 2, 2026 03:56
@railway-app
railway-app Bot temporarily deployed to agentos / agentos-pr-1569 July 2, 2026 03:56 Destroyed
Shell CLI:
- --actor flag runs the identical shell surface through the RivetKit
  agentOS actor (engine + envoy + dylib plugin + sidecar) instead of the
  in-process core client. Bootstrap mirrors the actor e2e harness (r6
  runtime server child, runner-config upsert, envoy wait); output/exit
  stream back as shellData/shellStderr/shellExit events.
- withLocalCommandFallback accepts the { packageDir } registry export
  shape and skips packages missing agentos-package.json instead of
  aborting VM creation.

Actor plugin + TS mirror:
- New shell actions (openShell/writeShell/resizeShell/closeShell/
  waitShell) with shellData/shellStderr/shellExit broadcasts; spawn
  gains options + processOutput/processExit streaming.
- waitShell/waitProcess reply from spawned tasks so long waits do not
  occupy the serial action worker (a held worker starved the stdin
  writes the wait depended on).
- Config parser ported to the packages/packagesMountAt buildConfigJson
  shape; env-gated tracing subscriber (AGENTOS_PLUGIN_LOG).

Rust client:
- Fix the shell spawn-readiness gate: watch::Sender::send refuses to
  store while no receiver exists, leaving the gate permanently false —
  every write/resize issued after open hung in wait_for_spawn. Use
  send_replace.
- wait_shell (exit-code retention for late waiters), real resize_shell
  (ResizePtyRequest), COLUMNS/LINES winsize env, write_shell_awaited,
  { packageDir } boot packages forwarded on ConfigureVm; adapt to the
  dir-only wire PackageDescriptor + ResourceSnapshotResponse.

Core tests (from the earlier revision): pty-line-discipline matrix,
vim suites, waitShell exit-code retention, pty-protocol snapshots.
@NathanFlurry
NathanFlurry force-pushed the nathan/shell-vim-editors branch from 442bed8 to b23cdfb Compare July 2, 2026 04:43
@railway-app
railway-app Bot temporarily deployed to agentos / agentos-pr-1569 July 2, 2026 04:43 Destroyed
@NathanFlurry
NathanFlurry merged commit f441a79 into main Jul 2, 2026
2 of 3 checks passed
@NathanFlurry
NathanFlurry deleted the nathan/shell-vim-editors branch July 2, 2026 04:48

This branch was successfully deployed

No deployments
agentos / agentos-pr-1569 — b23cdfb2 Deployed Jul 2, 2026 by railway-app[bot]
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