mirror of
https://github.com/block/goose.git
synced 2026-07-17 12:56:20 +02:00
b1fd5f534a
The ACP protocol was missing several capabilities needed by external clients that talk to goosed over the network. Adds: - `_goose/health` — startup health check for clients that poll before accepting traffic - `_goose/session/set_instructions` — injects a system prompt into an active session under the "recipe" key, replacing the two-call HTTP pattern of start_agent + update_from_session - `session/set_model` now accepts an optional `provider` field for full provider+model switching; empty string is filtered out to avoid opaque registry lookup errors - `_goose/session/get` verified to already return token metrics (input_tokens, output_tokens, accumulated_*, model_config) via the Session struct serialization — confirmed with a new test