• Stefy Lanza (nextime / spora )'s avatar
    front: keep the Tasks token count live by overlaying the front's SSE counter · ffb47992
    Stefy Lanza (nextime / spora ) authored
    On the Tasks page a running generation's token count (step) appeared frozen and
    only refreshed every several seconds, while the speed kept moving. Cause: the
    primary engine's task list is frequently served from the front's last-good cache
    (when the engine is briefly busy), so the task's step froze — but rate, a
    cumulative average over growing elapsed time, kept drifting, so it looked like
    "only the speed updates". The front is itself relaying the SSE stream and counting
    tokens per request (engine.active, refreshed ~2×/s by the streaming proxy), but
    that live count was deduped away in favor of the stale real task.
    
    Fix: in _merge_engine_tasks, overlay the live in-flight step/rate (from
    engine.active) onto the matching running task before the synthetic-task dedup, so
    the count stays live regardless of how stale the engine's own task snapshot is.
    Match on (engine, model); fall back to the engine's sole live generation when the
    client's model string (alias/path) differs from the task's resolved name.
    Co-Authored-By: 's avatarClaude Opus 4.8 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_011DDv7BchtZQWsnPG6Jm49m
    ffb47992
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...