forked from anomalyco/opencode
-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Problem
After typing a custom command like /start, there's a period of dead silence with no visual feedback. The spinner ("Thinking") should appear immediately after pressing Enter, but something is blocking before the spinner starts.
Expected
- User types
/startand presses Enter - Immediately: Spinner shows "Thinking"
- When first chunk arrives: Spinner stops, content streams
Actual
- User types
/startand presses Enter - 5-10 seconds of nothing — blank screen, no spinner
- Eventually content starts streaming
Context
- This is NOT the bootstrap/environment init (that's covered by "Setting up environment" spinner)
- This is NOT model loading (that happens before "Ready")
- This appears to be something blocking in the custom command processing path itself
- Regular chat messages may also have this issue but custom commands seem worse
Likely Causes
- Blocking API call before the streaming generator starts yielding
- Session/prompt construction doing synchronous work (file reads, context gathering)
- Command parsing/resolution blocking on something
- The spinner is started AFTER some blocking operation instead of BEFORE
Key Files to Investigate
packages/opencode/src/cli/lite/index.ts—handleCustomCommand()functionpackages/opencode/src/cli/lite/commands.ts—handleCustomCommand()packages/opencode/src/cli/lite/session.ts—command()generatorpackages/opencode/src/command/— Command execution pathpackages/opencode/src/session/— Session prompt construction
Acceptance Criteria
- Spinner appears immediately (<100ms) after pressing Enter
- No blocking operations before spinner starts
- User has visual feedback that their input was received
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working