HERMES-GIELIE/api
someaka 2cee44b1b2 fix(helpers): catch client disconnect errors in response write path
Extract _safe_write() helper that wraps end_headers() + wfile.write()
in try/except (BrokenPipeError, ConnectionResetError, ConnectionAbortedError,
TimeoutError, ssl.SSLError).  Both j() and t() now use _safe_write()
instead of raw wfile calls.

Fixes cascading BrokenPipeError + SSL BAD_LENGTH crash when a client
disconnects mid-response and the error handler tries to write a 500
status through the same broken socket.
2026-05-31 01:56:39 +00:00
..
__init__.py
agent_health.py
agent_sessions.py fix: keep webui mirrored sessions out of cli filter 2026-05-28 00:51:12 +02:00
auth.py fix: harden WebUI bugfix sweep 2026-05-28 13:38:50 -04:00
background.py
clarify.py feat: add distinct attention request sound 2026-05-30 19:40:40 +00:00
commands.py
compression_anchor.py fix(sidebar): keep newer continuation visible over older snapshot 2026-05-28 13:38:06 -06:00
config.py fix(reasoning): expose effort levels for bare/dot-separated model names on custom providers 2026-05-31 02:51:26 +08:00
dashboard_probe.py
extensions.py
gateway_chat.py Merge remote-tracking branch 'origin/master' into fix/webui-gateway-tool-activity 2026-05-28 16:11:34 -04:00
gateway_watcher.py
goals.py
helpers.py fix(helpers): catch client disconnect errors in response write path 2026-05-31 01:56:39 +00:00
kanban_bridge.py
metering.py
models.py Merge #3191: guard session cache ownership across compression 2026-05-30 21:57:48 +00:00
oauth.py
onboarding.py
passkeys.py
profiles.py fix(profiles): write API key to .env instead of config.yaml on profile creation 2026-05-28 15:45:17 +08:00
providers.py fix: honor shared OpenCode key at runtime 2026-05-30 02:18:06 +00:00
request_diagnostics.py
rollback.py
routes.py feat: add distinct attention request sound 2026-05-30 19:40:40 +00:00
run_journal.py
runtime_adapter.py
session_discoverability.py Merge PR #3048 2026-05-28 17:47:33 +00:00
session_events.py
session_lifecycle.py
session_ops.py
session_recovery.py
skill_usage.py fix: remove webui-side writer to avoid conflict with agent 2026-05-27 20:57:32 +08:00
startup.py
state_sync.py
streaming.py Close evicted cached agents on identity mismatch 2026-05-30 19:25:51 -04:00
system_health.py
terminal.py
turn_journal.py fix: handle Windows media and turn journal edge cases 2026-05-30 11:15:35 +02:00
updates.py fix: hash dirty WebUI dev builds 2026-05-30 11:25:33 +02:00
upload.py fix: report stored upload filenames 2026-05-28 08:33:50 -04:00
usage.py
workspace.py fix: preserve tilde workspace suggestions 2026-05-30 11:35:05 +02:00
workspace_git.py
worktrees.py