forked from anomalyco/opencode
-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
Bug
After typing /start, there is a 10-15 second delay where nothing happens on screen. Then the spinner and seconds countdown finally appear.
Expected Behavior
Spinner should appear immediately (within 100ms) after user presses Enter, even if the backend is still initializing.
Root Cause (likely)
The spinner only starts when the streaming generator begins yielding chunks. If the backend takes time to initialize the session, create the prompt, or make the first API call, nothing is visible to the user.
Fix
Start the spinner synchronously BEFORE entering the streaming loop — not inside it.
Acceptance Criteria
- Spinner appears within 100ms of pressing Enter
- Spinner shows "Thinking" with elapsed time counter
- Works for both
/startcustom commands and regular messages -
bun run typecheckpasses -
bun testpasses
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels