You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4bc731e
Browse filesBrowse the repository at this point in the historyBrowse files
`codework tui` now finds or starts a background server and attaches the
Rust TUI to it:
- Discovery reads <home>/service.json and trusts it only when the
endpoint answers `server.info` with the registered pid. A server from
another CLI version is replaced. Otherwise a detached
`codework serve --service` is started, logging to
<home>/log/server.log, and startup fails fast with the reason from
that log.
- Concurrent starts converge on one server: the loser adopts the
winner, and a contender that is not adopted is stopped with the
caller's scope.
- A registered server rewrites a missing service.json and shuts down
when another server takes it over, so no server runs undiscoverable.
- While the TUI runs, the CLI restarts a server that dies on the same
port so the TUI's reconnect lands.
- The TUI is spawned through Effect's ChildProcessSpawner in the CLI's
scope, so SIGINT/SIGTERM to `codework tui` now stop the UI instead of
orphaning it.
Adds `codework service start|restart|status|stop`, moves the RPC route
to /rpc/v1, and shows the cause of a failed `serve` (e.g. EADDRINUSE)
instead of a bare tag. The TUI launcher package now only resolves the
binary, Unix only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@@ -69,9 +69,9 @@ Start a persistent server that owns sessions and sandboxes:
69
69
70
70
```bash
71
71
codework serve --host 127.0.0.1 --port 7433
72
-
codework run --server ws://127.0.0.1:7433/rpc "Inspect the failing tests"
73
-
codework run --server ws://127.0.0.1:7433/rpc --session <id>"Now fix them"
74
-
codework run --server ws://127.0.0.1:7433/rpc --sandbox-id <sandbox-id>"Start another session in this sandbox"
72
+
codework run --server ws://127.0.0.1:7433/rpc/v1"Inspect the failing tests"
73
+
codework run --server ws://127.0.0.1:7433/rpc/v1 --session <id>"Now fix them"
74
+
codework run --server ws://127.0.0.1:7433/rpc/v1 --sandbox-id <sandbox-id>"Start another session in this sandbox"
75
75
```
76
76
77
77
The default address is `127.0.0.1:7433`; `--port 0` picks an available port and prints the actual URL. Set `--home`, `--database`, and `--user-config-dir` on the server. Model credentials, plugins, and working directories are resolved by the server. A remote run does not boot a local harness.
0 commit comments