• Stefy Lanza (nextime / spora )'s avatar
    front: serve admin/Studio UI pages locally (engine = generation only) · a4eb2cc7
    Stefy Lanza (nextime / spora ) authored
    The front reverse-proxied every page navigation to the primary engine, so
    opening any page while that engine was mid-generation (event loop busy) made the
    whole UI hang until generation finished.
    
    Now the front renders the UI pages itself (dashboard, models, tokens, users,
    tasks, settings, archive, chat, login, change-password) and serves the admin
    static assets + favicon locally. Sessions are validated locally: the cookie is
    HMAC-signed with the secret under config_dir (shared via auth.json), so the front
    authenticates it with no round-trip to a busy engine — and matches the
    port-derived session_<port> cookie name by signature, not by exact name.
    
    Mutating auth actions (login/logout/change-password POST) and all /admin/api/*
    data calls still fall through to the catch-all proxy and reach the engine.
    
    New: codai/frontproxy/ui_pages.py (register_ui_pages), wired in build_app before
    the catch-all. Verified via TestClient: local render, unauth->login redirect,
    authed render, static, and POST/logout pass-through.
    Co-Authored-By: 's avatarClaude Opus 4.8 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_011DDv7BchtZQWsnPG6Jm49m
    a4eb2cc7
Name
Last commit
Last update
codai Loading commit data...
docs Loading commit data...
packaging Loading commit data...
samples Loading commit data...
tests Loading commit data...
tools Loading commit data...
.dockerignore Loading commit data...
.gitignore Loading commit data...
AI.PROMPT Loading commit data...
CODERAI_API_DOCUMENTATION.md Loading commit data...
CoderAI.gif Loading commit data...
DISTRIBUTION.md Loading commit data...
LICENSE.md Loading commit data...
MULTIMODAL_CAPABILITIES.md Loading commit data...
MULTIMODAL_UI_EXAMPLES.md Loading commit data...
README.md Loading commit data...
build-oci.sh Loading commit data...
build.ps1 Loading commit data...
build.sh Loading commit data...
coderai Loading commit data...
coderai-broker-implementation-reference.md Loading commit data...
coderai-integration.md Loading commit data...
commands Loading commit data...
osxbuild.sh Loading commit data...
package-oci.sh Loading commit data...
package-tarball.sh Loading commit data...
requirements-nvidia.txt Loading commit data...
requirements-vulkan.txt Loading commit data...
requirements.txt Loading commit data...
run-oci.sh Loading commit data...
smoke-test-oci.sh Loading commit data...
todo.md Loading commit data...
video_editor.config.json Loading commit data...