Skip to content
This repository was archived by the owner on Jun 23, 2026. It is now read-only.

Promote main → dev (input/handoff fixes: paste, prompts, pickers, opencode install, local PTY) - #71

Merged
BarneyChambers merged 4 commits into
devfrom
main
Jun 16, 2026
Merged

Promote main → dev (input/handoff fixes: paste, prompts, pickers, opencode install, local PTY)#71
BarneyChambers merged 4 commits into
devfrom
main

Conversation

@BarneyChambers

Copy link
Copy Markdown
Collaborator

Promote the latest fixes from main to dev (v0.2.27):

  • key paste + prompts + confirms read /dev/tty (input-hang fixes)
  • pinned agent CLI versions (anti-drift)
  • openclaw gateway self-heal/normalizer
  • cloud region/size pickers via /dev/tty
  • OpenCode macOS install (.zip) + failed-download detection
  • local agent TUIs run in a PTY (opencode/kilocode keyboard fix)

sst/opencode now ships .zip assets on macOS (.tar.gz only on Linux), so the
hardcoded opencode-$OS-$ARCH.tar.gz 404'd on macOS — yet the install still
reported "OpenCode installed" and launched a missing binary ("opencode: command
not found"). The trailing ;-separated PATH/export statements masked the failed
curl's exit code.

- Pick .zip + unzip on darwin, .tar.gz + tar on linux.
- Chain every step with && and end with `test -x .../opencode` so a failed
  download/extract fails the install step (runLocal throws) instead of silently
  succeeding.

Verified on macOS: opencode-darwin-arm64.zip downloads, unzips to a Mach-O arm64
`opencode` binary at root (so mv + test -x succeed).
Fix OpenCode install on macOS (.zip asset) + detect failed download
…nput

OpenTUI-based agents (OpenCode, Kilo Code) accept keyboard input only when they
own a controlling PTY. Remotely that's provided by `ssh -tt`; locally they were
launched as a child sharing the CLI's terminal, so on macOS typing and Ctrl-C
did nothing once the agent TUI started.

Wrap the local interactive launch in `script` to give the agent its own PTY
(BSD form on macOS, util-linux -e -c form on Linux), falling back to a direct
launch when `script` is unavailable.

Verified on macOS: opencode launched directly in a PTY harness ignores
keystrokes; the same agent wrapped in `script` reacts to them.
Run local agent TUIs in a PTY so keyboard input works (opencode/kilocode on macOS)
@vercel

vercel Bot commented Jun 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
grid-spawn-ui Ready Ready Preview Jun 16, 2026 12:22pm

Request Review

@BarneyChambers
BarneyChambers merged commit 55523fe into dev Jun 16, 2026
5 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant