fix: clarify gateway-backed chat auth errors - #3077
2 commits merged into
Conversation
|
Read the full diff against The label drops back to "Error" because the frontend doesn't know about
|
|
Addressed in What changed:
Verification:
|
6267716
|
Shipped in v0.51.154 / Release DZ (stage-batch36, commit 6267716). Thanks for the contribution! |
# Conflicts: # CHANGELOG.md # tests/test_webui_gateway_chat_backend.py
9-PR medium-risk cleanup: - nesquena#3037 routes.py: argv-style prefill hook + env-var override for notes drawer - nesquena#3046 models.py: compression parent not repaired as stale interrupted turn - nesquena#3048 session_discoverability.py: --repair-safe CLI with default dry-run - nesquena#3053 ui.js: streaming KaTeX guard for parser-owned equations - nesquena#3059 models.py: empty partial activity rows excluded from sidebar recency - nesquena#3060 profiles.py: API key writes to .env (chmod 600), not config.yaml - nesquena#3064 routes.py: MEDIA: image tokens allow exact session-referenced paths - nesquena#3069 models.py: cron sessions with project_id surface via Cron Jobs chip - nesquena#3077 gateway_chat.py: HTTP 401 maps to gateway_auth_error event
# Conflicts: # CHANGELOG.md # tests/test_webui_gateway_chat_backend.py
9-PR medium-risk cleanup: - nesquena#3037 routes.py: argv-style prefill hook + env-var override for notes drawer - nesquena#3046 models.py: compression parent not repaired as stale interrupted turn - nesquena#3048 session_discoverability.py: --repair-safe CLI with default dry-run - nesquena#3053 ui.js: streaming KaTeX guard for parser-owned equations - nesquena#3059 models.py: empty partial activity rows excluded from sidebar recency - nesquena#3060 profiles.py: API key writes to .env (chmod 600), not config.yaml - nesquena#3064 routes.py: MEDIA: image tokens allow exact session-referenced paths - nesquena#3069 models.py: cron sessions with project_id surface via Cron Jobs chip - nesquena#3077 gateway_chat.py: HTTP 401 maps to gateway_auth_error event
# Conflicts: # CHANGELOG.md # tests/test_webui_gateway_chat_backend.py
9-PR medium-risk cleanup: - nesquena#3037 routes.py: argv-style prefill hook + env-var override for notes drawer - nesquena#3046 models.py: compression parent not repaired as stale interrupted turn - nesquena#3048 session_discoverability.py: --repair-safe CLI with default dry-run - nesquena#3053 ui.js: streaming KaTeX guard for parser-owned equations - nesquena#3059 models.py: empty partial activity rows excluded from sidebar recency - nesquena#3060 profiles.py: API key writes to .env (chmod 600), not config.yaml - nesquena#3064 routes.py: MEDIA: image tokens allow exact session-referenced paths - nesquena#3069 models.py: cron sessions with project_id surface via Cron Jobs chip - nesquena#3077 gateway_chat.py: HTTP 401 maps to gateway_auth_error event
Summary
gateway_auth_errorthat points operators at the WebUI↔Gateway API key mismatch.gateway_chatconfiguration status to/api/health/agentso support diagnostics can see whether gateway mode, base URL, and API-key presence are configured without exposing secret values.Test Plan
python -m py_compile api/gateway_chat.py api/routes.pypython -m pytest tests/test_webui_gateway_chat_backend.py tests/test_issue716_agent_heartbeat.py -qgit diff --check