anomalyco / anomalyco/opencode
Copilot Chat drops late opaque reasoning from completed text parts
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
Copilot Chat can deliver its opaque reasoning value after assistant text has started. The parser retains that value in response-level finish metadata, but the completed text part does not receive it, so part-based Session replay can lose the provider state.
Expected behavior
The terminal text-end event carries the final captured opaque reasoning metadata for either packet ordering.
Scope
This concerns the Copilot Chat parser only. PR #45694 contains the focused fix and regression coverage.
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 reviewing PR #45694 and the Copilot Chat parser behavior described here, focusing on the terminal text-end event and both packet orderings. Done means the completed text part carries the final opaque reasoning metadata in either order, with regression coverage confirming the behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100