Add an API-key OpenCode launcher #30

Merged
nelson merged 3 commits from FZTA-1-launch-opencode into main 2026-11-02 20:39:15 -08:00
Owner

Adds launch-opencode [start-folder]: choose a folder, then replace the pane with OpenCode using its provisioned Anthropic API login. The Windows npm executable starts directly; missing installs, missing/non-API logins and tmux failures report through the existing tab/error history, and failed program exits retain their pane. Claude Code defaults and bindings are unchanged.

Validation: GOMAXPROCS=4 go test -p 4 ./..., go vet -p 4 ./...; API-login tests reject missing, malformed, OAuth and empty logins without exposing their contents. OpenCode 2.2.5 started directly on a private tmux server and reported Claude Opus 5.5 plus an OpenCode terminal title; test server removed.

Work package: https://openproject.romaine.life/wp/FZTA-1

Adds `launch-opencode [start-folder]`: choose a folder, then replace the pane with OpenCode using its provisioned Anthropic API login. The Windows npm executable starts directly; missing installs, missing/non-API logins and tmux failures report through the existing tab/error history, and failed program exits retain their pane. Claude Code defaults and bindings are unchanged. Validation: `GOMAXPROCS=4 go test -p 4 ./...`, `go vet -p 4 ./...`; API-login tests reject missing, malformed, OAuth and empty logins without exposing their contents. OpenCode 2.2.5 started directly on a private tmux server and reported Claude Opus 5.5 plus an OpenCode terminal title; test server removed. Work package: https://openproject.romaine.life/wp/FZTA-1
Add API-key OpenCode folder launcher (FZTA-1)
Some checks failed
Build / windows (pull_request) Successful in 27s
CI / go-windows (pull_request) Successful in 20s
Release / release (pull_request) Successful in 7s
Dependency Update / update (pull_request) Successful in 16s
Build / built (pull_request) Successful in -2s
CI / go-linux (pull_request) Has been cancelled
CI / test (pull_request) Has been cancelled
f2f8727a10
Cover npm executable resolution and launcher preflight
Some checks failed
Build / windows (pull_request) Successful in 2m53s
CI / go-windows (pull_request) Successful in 43s
Dependency Update / update (pull_request) Successful in 19s
Build / built (pull_request) Successful in 2s
Release / release (pull_request) Successful in 18s
CI / test (pull_request) Has been cancelled
CI / go-linux (pull_request) Successful in 1m30s
2ab6229291
Bound pane takeover and explain tmux failures
All checks were successful
Build / windows (pull_request) Successful in 28s
CI / go-windows (pull_request) Successful in 23s
Build / built (pull_request) Successful in -3s
Release / release (pull_request) Successful in 9s
Dependency Update / update (pull_request) Successful in 18s
CI / go-linux (pull_request) Successful in 1m48s
CI / test (pull_request) Successful in -3s
466c90288f
nelson scheduled this pull request to auto merge when all checks succeed 2026-11-02 20:38:56 -08:00
nelson merged commit c288ed49f7 into main 2026-11-02 20:39:15 -08:00
nelson deleted branch FZTA-1-launch-opencode 2026-11-02 20:39:16 -08:00
nelson referenced this pull request from a commit 2026-11-02 20:39:16 -08:00
Sign in to join this conversation.
No description provided.