[BUG] Frontend progress SSE stream uses wrong ID — never receives loading updates #16
Labels
No labels
blocked:lint-failed
blocked:needs-decision
blocked:no-changes
blocked:no-procedure
blocked:preflight
blocked:verify-failed
bug
feature-request
in-progress
lint-cleanup
ops-task
quickfix
security/high
security/medium
test-coverage
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/vllm_mm#16
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The frontend loading progress stream in
src/hooks/useModelContainers.tsconstructs a syntheticprocessId(derived from backend+repo+containerId) and uses it to subscribe to the SSE progress endpoint. However, the backend progress router atGET /api/models/{model_id}/progressexpects the database model ID (the 7-character hex ID), not this derived process ID. As a result, the SSE connection never receives progress events.Affected File
src/hooks/useModelContainers.tslines 87-101Root Cause
The backend
stream_model_progress()looks up the model bymodel_idin the database, which is a short hex string like"a1b2c3d". The constructed processId looks like"vllm-meta-llama-Llama-3-8B-Instruct-"which will never match.Expected Behavior
Pass
model.id(the database ID) instead of the constructed processId: