Files
zeekay 722a3192a1 gateway: a failed model call is an error, and a channel that is off stays off
POST /v1/chat/completions answered a run that ended in an upstream error with
200 and the error text as the assistant's reply ("401 status code (no body)").
A non-streaming call now answers 502 with an upstream_error body, and a stream
carries the same error object before [DONE]. An unauthorized model call logs
the upstream it went to and which credential it carried, never the credential,
and the stray [auth-debug] console output is gone.

Plugin auto-enable switched on an installed channel plugin (nostr, matrix,
msteams) whose own channel said enabled: false, and that plugin then failed to
load for dependencies the image does not carry. A channel that is off is never
switched on. A scoped @hanzo/bot-<id> package hints the plugin id <id>, as its
doc comment and test say, so the manifest id matches it, and the two bundled
libraries without a manifest (memory, recipes-brain) get one.

Testing: openai-http.test.ts (new 502 and SSE error cases, which fail on the old
handler), plugin-auto-enable.test.ts (new disabled-channel case), discovery.test.ts.
Risk: low. Only error responses and plugin discovery change.
How to revert: revert this commit.

Claude-Session: https://claude.ai/code/session_015XYKLn69gF4x75RWePpDBV
2026-11-20 20:43:28 -08:00

9 lines
123 B
JSON

{
"id": "memory",
"configSchema": {
"type": "object",
"additionalProperties": true,
"properties": {}
}
}