Repository navigation
Production-ready: auth hardening, SSE fix, security polish, conflict resolution - #24
Merged
Merged
Conversation
tutor — SSE parser was returning {error} for non-JSON payloads (plain
string tokens from sse-starlette), causing processSseLine to skip every
token and show "No response received". Fix: catch block now returns the
raw payload as {token} so plain-string streams work alongside JSON-
wrapped streams.
practice — <Environment preset="night"> in Blackhole.tsx tried to load
dikhololo_night_1k.hdr from the jsdelivr CDN. Fails in local dev / when
CDN is blocked. Replaced with equivalent manual ambientLight+pointLight
setup that needs no external assets.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
fetchWithRefresh()wired into all 5 authenticated pages + tutor streaming<Environment preset="night">was fetchingdikhololo_night_1k.hdrfrom CDN (failed in local dev / offline); replaced with equivalent manual lightingrehype-sanitizeXSS protection on ReactMarkdown, 4-rule password strength meter (includes special char),htmlFor/aria-liveaccessibility, Content-Security-Policy headermain.py, mergedvercel.json(security + cache headers combined), ourproxy.tswith/exploreprotectionDEPLOY.md,README.mdaccuracy fixes,SECURITY.mddisclosure linkisTokenExpired()); SSE parser tests updated for raw-token fallback behaviourWhat changed
frontend/lib/sse.ts{token}instead of{error}frontend/components/ui/Blackhole.tsxfrontend/app/api/[...path]/route.tsExpectheader (Node v24 undici);AbortSignal.timeout(55000)frontend/proxy.ts/exploreprotected;isTokenExpired()JWT expiry checkfrontend/vercel.jsonbackend/app/core/auth.pyhashlibSHA-256 refresh token hashing;secretsgenerationbackend/app/core/config.py.env.localtakes precedence over.envbackend/app/core/error_handler.pyapi_error()format + client IP in rate-limit logsbackend/app/main.pybackend/railway.tomlhealthcheckTimeout=30for fastembed warmupTest plan
pytest backend/tests/ -q)npm test -- --run)/explorewithout auth (should redirect to/login)Reviewer notes
fix/frontend-polish-security) has been fully cherry-picked into this branch (commita45c4d6) and can be closedghCLI not authenticated in local dev — close PR fix: frontend security polish — CSP, XSS sanitization, accessibility, password strength #22 manually on GitHub🤖 Generated with Claude Code