Repository navigation
Conversation
…sponses clients Console's free-tier gate now rejects an x-opencode-session minted ascending; OpenCode's Identifier.create inverts the timestamp for sessions. Inbound session ids are checked in the same direction and replaced otherwise. A non-streaming /v1/responses client on a Zen free model received an HTML 500 because the forced upstream SSE was parsed as JSON; the delivery and continuation paths now fold any event-stream answer through parseStream.
|
✅ Deterministic PR hygiene checks passed. |
⏳ DRAFT
What to do
Its title has been prefixed with |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
FreeTierError("can only be used from within OpenCode"). Console now validates thex-opencode-sessiontimestamp, and OpenCode mints session ids descending (inverted timestamp). ocx minted them ascending. Sessions are now minted descending, and an inbound session id in the wrong direction (or older than 30 days) is replaced./v1/responsesclient on a Zen free model got an HTML 500 (JSON Parse error: Unexpected identifier "data") because the forced upstream SSE was parsed as JSON. The adapter delivery and continuation paths now fold anytext/event-streamanswer throughparseStream.ALL_PROXY, which routed the dispatch around the mocked fetch.Verification
HOME/OPENCODEX_HOME): chat and responses (stream and non-stream) returnpongfor big-pickle, cat-jam-free, mimo-v2.6-flash-free. Before the fix: 403 on all free models.ALL_PROXY=socks5h://127.0.0.1:10808and via--socks5 127.0.0.1:10808with no proxy env; a dead SOCKS port fails withECONNREFUSED 127.0.0.1:1, proving traffic goes through it.bun run typecheck,bun run structure:check: pass.bun test tests/providers/opencode-zen*plus 15 delivery/continuation-related files: 306 pass / 0 fail. The new non-stream regression test fails without the fix.test:changedneeds Bun 1.4.0, this machine has 1.4.2. Remaining coverage left to CI.Checklist