Chat shows 'working...' indefinitely after opencode CLI already finished responding
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 23k
- Forks
- 5.9k
- Avg merge
- 11h 14m
- Merged PRs (30d)
- 357
Description
Description
After updating to the latest version, when sending a chat message in the T3 Code desktop app, the status shows "working..." indefinitely. However, checking the underlying opencode CLI session directly shows the response has already been completed.
Steps to Reproduce
- Install fresh T3 Code (Alpha) v0.0.23
- Configure opencode as the provider (opencode CLI v1.14.48)
- Send any chat message
- Observe: T3 Code shows "working..." status indefinitely
- Check opencode session via CLI — response is already complete
Expected Behavior
T3 Code should detect when the opencode CLI session has finished responding and update the UI accordingly (stop showing "working...").
Actual Behavior
"Working..." status persists forever, making the UI unusable.
Environment
- T3 Code version: 0.0.23 (Alpha)
- macOS (Apple Silicon)
- opencode CLI version: 1.14.48
Additional Context
Issue appeared after a recent update. The underlying agent (opencode) is functioning correctly — responses complete successfully via CLI. The problem is in T3 Code's detection/communication with the opencode CLI process — it doesn't seem to recognize when the session has finished.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the T3 Code desktop app's communication with the opencode CLI, focusing on how completion is detected and how the "working..." status is cleared. Reproduce with T3 Code 0.0.23 and opencode CLI 1.14.48; done means the UI stops showing "working..." after the CLI session has finished.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- cli, desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 62/100