fix: decode OpenCode SSE response bytes explicitly as UTF-8
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 68/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- python
- Domain
- api, backend, testing-qa
Research direction
Start at the OpenCode content-filter proxy call that uses requests.iter_lines(decode_unicode=True), then trace how SSE lines cross the proxy boundary. Add regression coverage for literal UTF-8 SSE content and verify a 200-line mixed-Unicode response through Omnigent attached to CoDA has no Latin-1 mojibake markers.
Written by the indexing model from the issue text.
Description
Problem
The OpenCode content-filter proxy uses requests.iter_lines(decode_unicode=True). For text/event-stream responses without an explicit charset, Requests can decode bytes as Latin-1, turning valid UTF-8 such as check marks and accented text into mojibake. Large thinking and output slabs expose the corruption consistently.
Acceptance criteria
- Consume SSE lines as raw bytes.
- Decode each line explicitly as UTF-8.
- Preserve valid Unicode across the proxy boundary.
- Add regression coverage for literal UTF-8 SSE content.
- Verify a 200-line mixed-Unicode OpenCode response through Omnigent attached to CoDA with zero Latin-1 mojibake markers.
- Dominant language
- Python
- Stars
- 40
- Forks
- 11
- Avg merge
- 1m
- Merged PRs (30d)
- 1
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.
More from databrickslabs/coding-agents-databricks-apps
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
All issues in databrickslabs/coding-agents-databricks-apps
Similar issues
-
agent-ready documentation needs-triage
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
-
documentation
Difficulty 1/5 Under an hour Newbie friendliness 91/100
-
workflow-status page template still says reusable workflows are "triggered only by workflow_call:" Open
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
instance instance add
Difficulty 1/5 Under an hour Newbie friendliness 72/100
searxng/searx-instances#939 · 1 comment ·
-
area-deployment area-integrations triage:bot-seen
Difficulty 2/5 Half a day Newbie friendliness 86/100