firebreak/web
Zach Tatman b2fe586b72
fix(web): render the signed-in header on error pages (#21)
Exception handlers run outside FastAPI's dependency injection, so the error handler never resolved the session and always passed user=None, making every error page (e.g. a 404 hit while signed in) show the 'Sign In with Forgejo' header instead of the account menu.

Resolve the session by hand from the request cookie via lookup_session, degrading to None on any failure so error rendering can never itself raise. A missing or invalid cookie (a real 401) still yields None and the correct signed-out header.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-18 13:51:32 -04:00
..
app fix(web): render the signed-in header on error pages (#21) 2026-07-18 13:51:32 -04:00
.python-version Add FastAPI web service with async SQLAlchemy and Docker (#10) 2026-04-24 16:03:54 -04:00
dev.sh feat(web): gate dev CSS live-reload behind debug + fix watcher 2026-06-10 17:03:10 -04:00
Dockerfile [codex] Update boilerplate UI design system (#12) 2026-05-26 22:50:25 -04:00
pyproject.toml feat(web): setup wizard, settings page, Firebreak rename (#15) 2026-06-08 14:56:27 -04:00
uv.lock build(deps): bump starlette from 1.0.0 to 1.0.1 in /web in the uv group across 1 directory (#16) 2026-06-08 14:57:06 -04:00