Commit Graph
2 Commits
Author SHA1 Message Date
Chris Scott 26a8532cc6 feat(backend): add OpenCode Basic Auth for proxy endpoints
Enable remote OpenCode TUI clients to authenticate via Basic Auth when
accessing /api/opencode/* routes. Normal WebUI session auth continues to
work for browser clients.

- Add requireOpenCodeProxyAuth middleware that checks Basic Auth first
- Add isOpenCodeProxyBasicAuth with timing-safe password comparison
- Stream proxy responses without buffering (SSE support)
- Drop hop-by-hop headers from proxied responses
- Add tests for auth validation and streaming behavior
2026-04-28 22:52:28 +00:00
Chris Scott 1f6180e03c Add OpenCode models editor with mobile repos UI refactoring 2026-04-13 14:24:52 -04:00