fix: vision(#623): WebSocket streaming for chat UI to replace one-shot claude --print (#1026)

This commit is contained in:
Agent 2026-04-20 11:09:00 +00:00
parent aa87639356
commit 17e745376d
3 changed files with 551 additions and 7 deletions

View file

@ -172,6 +172,12 @@ EOT
handle /chat/oauth/callback {
reverse_proxy 127.0.0.1:8080
}
# WebSocket endpoint for streaming (#1026)
handle /chat/ws {
header_up Upgrade $http.upgrade
header_up Connection $http.connection
reverse_proxy 127.0.0.1:8080
}
# Defense-in-depth: forward_auth stamps X-Forwarded-User from session (#709)
handle /chat/* {
forward_auth 127.0.0.1:8080 {