mirror of
https://github.com/stablyai/orca.git
synced 2026-10-06 08:02:28 +00:00
The `agentSession.*` gate refused with a bare `Error` whose message was the magic token, so the RPC envelope flattened it to `runtime_error` and a client could not structurally tell "this host refuses structured chat" from any other runtime fault. The gate now throws the repo's coded-error shape and the code is registered for envelope passthrough; the message is unchanged, so clients that match on the token keep classifying exactly as before.