## Qodex review
This PR replaces the manual cookie parser with a library call and
moves the session loader from middleware to a route handler. The
behavior should be identical; the change is mostly mechanical.
**Effort:** 2/5 - **1 finding: 1 major**
_1 inline comment attached to specific lines below._
<details>
<summary>What Qodex checked</summary>
**Lenses (single LLM pass, all dimensions)**
- [x] Bugs and correctness
- [x] Security (auth, injection, SSRF, secrets, headers)
- [x] Performance regressions
- [x] Maintainability
- [x] Style and consistency
**Quality filters**
- [x] Confidence floor at 0.7
- [x] Severity threshold from `.qodex.yaml`: `minor`
- [ ] Path excludes (none configured in `.qodex.yaml`)
**Verification probes against PR preview**
- [ ] Preview deployment discovered (no successful deploy for this commit)
- [ ] Probes (skipped, no preview to probe)
**Output**
- [x] Walkthrough comment posted
- [x] 1 inline comment on specific lines
</details>
---
Reviewed by Qodex - gpt-5.4-mini - 6.1s
_Findings shown are above the high-precision confidence threshold (>= 0.7).
Mark a finding resolved or flag a false positive in the Qodex Pull
Requests view._