opencode/packages/cli-rs/crates/cli
Simon Klee 9102ceb12b
fix(cli-rs): wait for a live service and follow it across restarts
connect::resolve ignored why discovery missed and started a service when the
registration of another channel was starting, slow, failed or incompatible,
which put a second service next to the user's (O-21). Discovery now reports
the first pending registration, and resolve waits on it with the ensure loop,
or reports a failed or incompatible service, and starts one only when no live
service is registered.

The TUI client kept its startup URL and password, so it never reconnected
when the service restarted on a new port or password. The managed client's
transport now routes its requests to the current service and, after a
transport error or 401, finds the service again as TS's reconnect does.

Found by review carbon-4.
2026-11-04 22:40:31 +01:00
..
src fix(cli-rs): wait for a live service and follow it across restarts 2026-11-04 22:40:31 +01:00
tests/fixtures feat(cli-rs): dump the TypeScript command tree 2026-11-04 18:19:21 +01:00
Cargo.toml fix(cli-rs): keep a command's connection alive while it runs 2026-11-04 22:40:31 +01:00