Aiden Cline
bd51cdba12
refactor(llm): redesign error model as flat tagged union
...
- Replace LLMError { module, method, reason } wrapper with a flat tagged
union: BadRequest, Authentication, PermissionDenied, NotFound, RateLimit,
QuotaExceeded, ContentPolicy, ContextOverflow, ServerError, APIError,
ConnectionError, TimeoutError, MalformedResponse, NoRoute.
- Delete the provider-error LLMEvent: streams carry output only and every
failure exits through the typed error channel.
- Add one shared classifyApiFailure classifier used by the HTTP executor,
protocol stream errors, and the AI SDK adapter so all routes classify
identically (including OpenAI in-stream rate_limit_exceeded and
internal_error codes).
- Enforce a terminal contract in LLMClient.stream for every route: EOF
without finish and output after finish fail as MalformedResponse.
- Classify AI SDK failures properly in core/aisdk.ts instead of collapsing
to UnknownProvider; preserve status, headers, body, and retry-after.
- Simplify the session runner: drop held-back overflow events, key overflow
recovery off LLM.ContextOverflow, retry RateLimit | ServerError |
ConnectionError | TimeoutError.
- Map new tags in toSessionError (provider.context-overflow,
provider.timeout, provider.not-found).
2026-07-13 00:47:32 -05:00
Kit Langton
d54038b9d2
docs(v2): consolidate specifications ( #36186 )
2026-07-09 22:47:37 -04:00
opencode-agent[bot]
a7746379d5
chore: merge dev into v2 ( #36144 )
...
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: usrnk1 <7547651+usrnk1@users.noreply.github.com>
Co-authored-by: James Long <longster@gmail.com>
Co-authored-by: opencode-agent[bot] <219766164+opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
Co-authored-by: Brendan Allan <14191578+Brendonovich@users.noreply.github.com>
Co-authored-by: Jack <jack@anoma.ly>
Co-authored-by: opencode <opencode@sst.dev>
Co-authored-by: Frank <frank@anoma.ly>
Co-authored-by: Jay <53023+jayair@users.noreply.github.com>
Co-authored-by: Luke Parker <10430890+Hona@users.noreply.github.com>
Co-authored-by: Aarav Sareen <96787824+arvsrn@users.noreply.github.com>
Co-authored-by: Julian Coy <julian@ex-machina.co>
Co-authored-by: Brendan Allan <git@brendonovich.dev>
Co-authored-by: Vladimir Glafirov <vglafirov@gitlab.com>
Co-authored-by: Adam <2363879+adamdotdevin@users.noreply.github.com>
Co-authored-by: Dustin Deus <deusdustin@gmail.com>
Co-authored-by: Kit Langton <kit.langton@gmail.com>
Co-authored-by: Simon Klee <hello@simonklee.dk>
Co-authored-by: Jay <air@live.ca>
Co-authored-by: David Hill <1879069+iamdavidhill@users.noreply.github.com>
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
Co-authored-by: James Long <jlongster@users.noreply.github.com>
Co-authored-by: 冯基魁 <56265583+fengjikui@users.noreply.github.com>
Co-authored-by: Aiden Cline <rekram1-node@users.noreply.github.com>
2026-07-09 16:32:44 -05:00
Harsh Mathur
bd0dffd781
fix(llm): preserve nested OpenAI stream errors ( #36130 )
...
Co-authored-by: Harsh Mathur <jeevesforharsh@gmail.com>
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2026-07-09 14:40:28 -05:00
opencode-agent[bot]
687dbba6a3
chore: merge dev into v2 ( #35962 )
...
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: James Long <longster@gmail.com>
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
Co-authored-by: Dustin Deus <deusdustin@gmail.com>
Co-authored-by: starptech <starptech@starptechs-MBP.fritz.box>
Co-authored-by: Frank <frank@anoma.ly>
Co-authored-by: Luke Parker <10430890+Hona@users.noreply.github.com>
Co-authored-by: opencode-agent[bot] <219766164+opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: 𝓛𝓲𝓽𝓽𝓵𝓮 𝓕𝓻𝓪𝓷𝓴 <little-frank@opencord.local>
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
Co-authored-by: Dax <mail@thdxr.com>
Co-authored-by: usrnk1 <7547651+usrnk1@users.noreply.github.com>
Co-authored-by: Jay <53023+jayair@users.noreply.github.com>
Co-authored-by: Brendan Allan <git@brendonovich.dev>
Co-authored-by: Brendan Allan <14191578+Brendonovich@users.noreply.github.com>
Co-authored-by: runvip <164729189+runvip@users.noreply.github.com>
Co-authored-by: Shoubhit Dash <shoubhit2005@gmail.com>
Co-authored-by: Jack <jack@anoma.ly>
Co-authored-by: opencode <opencode@sst.dev>
Co-authored-by: Aarav Sareen <96787824+arvsrn@users.noreply.github.com>
Co-authored-by: Julian Coy <julian@ex-machina.co>
Co-authored-by: Vladimir Glafirov <vglafirov@gitlab.com>
Co-authored-by: Adam <2363879+adamdotdevin@users.noreply.github.com>
Co-authored-by: Kit Langton <kit.langton@gmail.com>
Co-authored-by: Simon Klee <hello@simonklee.dk>
Co-authored-by: Jay <air@live.ca>
Co-authored-by: David Hill <1879069+iamdavidhill@users.noreply.github.com>
Co-authored-by: James Long <jlongster@users.noreply.github.com>
Co-authored-by: 冯基魁 <56265583+fengjikui@users.noreply.github.com>
Co-authored-by: Aiden Cline <rekram1-node@users.noreply.github.com>
2026-07-08 17:58:55 -05:00
Kit Langton
3dd29094f4
feat(http-recorder): sync recorder v0.3 ( #35619 )
2026-07-08 11:41:59 -04:00
Shoubhit Dash
3cbcd8d727
feat(llm): complete provider package entrypoints ( #35907 )
2026-07-08 18:41:46 +05:30
opencode-agent[bot]
ed4f833813
fix(core): preserve provider metadata namespaces ( #35817 )
...
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2026-07-07 21:45:58 -05:00
Aiden Cline
f488089179
fix: preserve compaction files and classify Z.AI overflow ( #35747 )
...
Co-authored-by: opencode-agent[bot] <219766164+opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: 冯基魁 <56265583+fengjikui@users.noreply.github.com>
2026-07-07 09:54:31 -05:00
Kit Langton
bf01264661
feat(core): finalize session event lifecycle ( #35272 )
2026-07-06 18:14:06 -04:00
Aiden Cline
9e0d3976e1
chore: merge dev into v2 ( #35591 )
...
Co-authored-by: Frank <frank@anoma.ly>
Co-authored-by: Aarav Sareen <96787824+arvsrn@users.noreply.github.com>
Co-authored-by: Brendan Allan <git@brendonovich.dev>
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: Jack <jack@anoma.ly>
Co-authored-by: Brendan Allan <14191578+Brendonovich@users.noreply.github.com>
Co-authored-by: Shoubhit Dash <shoubhit2005@gmail.com>
Co-authored-by: opencode-agent[bot] <219766164+opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: James Long <longster@gmail.com>
Co-authored-by: Dustin Deus <deusdustin@gmail.com>
Co-authored-by: starptech <starptech@starptechs-MBP.fritz.box>
Co-authored-by: Luke Parker <10430890+Hona@users.noreply.github.com>
Co-authored-by: 𝓛𝓲𝓽𝓽𝓵𝓮 𝓕𝓻𝓪𝓷𝓴 <little-frank@opencord.local>
Co-authored-by: Dax <mail@thdxr.com>
Co-authored-by: usrnk1 <7547651+usrnk1@users.noreply.github.com>
Co-authored-by: Jay <53023+jayair@users.noreply.github.com>
Co-authored-by: runvip <164729189+runvip@users.noreply.github.com>
Co-authored-by: opencode <opencode@sst.dev>
Co-authored-by: Julian Coy <julian@ex-machina.co>
Co-authored-by: Vladimir Glafirov <vglafirov@gitlab.com>
Co-authored-by: Adam <2363879+adamdotdevin@users.noreply.github.com>
Co-authored-by: Kit Langton <kit.langton@gmail.com>
Co-authored-by: Simon Klee <hello@simonklee.dk>
Co-authored-by: Jay <air@live.ca>
Co-authored-by: David Hill <1879069+iamdavidhill@users.noreply.github.com>
2026-07-06 16:05:29 -05:00
Shoubhit Dash
e57d9ca390
feat(core): flatten provider config and load native packages ( #35563 )
...
Co-authored-by: Dax Raad <d@ironbay.co>
2026-07-06 16:18:56 -04:00
James Long
4790a2772c
feat(simulation): add driver controlled backend LLM ( #35186 )
2026-07-03 14:19:25 -04:00
Aiden Cline
460cdc5aec
fix(llm): remove package retry policy ( #35003 )
2026-07-02 15:51:12 -05:00
Aiden Cline
ec95694e2f
docs(llm): track native provider parity ( #34862 )
2026-07-02 11:51:56 -05:00
Kit Langton
4045041554
refactor(core): simplify system context into a belief model ( #34917 )
2026-07-02 09:32:35 -04:00
Aiden Cline
140224b0fc
fix(core): derive models.dev reasoning variants ( #34726 )
2026-07-02 00:23:46 -05:00
James Long
8c94e9005f
chore: merge dev into v2 ( #34788 )
...
Co-authored-by: Brendan Allan <14191578+Brendonovich@users.noreply.github.com>
Co-authored-by: Kit Langton <kit.langton@gmail.com>
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: Affan Ali <93028901+affanali2k3@users.noreply.github.com>
Co-authored-by: affanali2k3 <affanalikhanxx@gmail.com>
Co-authored-by: Frank <frank@anoma.ly>
Co-authored-by: opencode-agent[bot] <219766164+opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: 𝓛𝓲𝓽𝓽𝓵𝓮 𝓕𝓻𝓪𝓷𝓴 <little-frank@opencord.local>
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
Co-authored-by: Jay V <air@live.ca>
Co-authored-by: Dax Raad <d@ironbay.co>
Co-authored-by: Aarav Sareen <96787824+arvsrn@users.noreply.github.com>
Co-authored-by: OpeOginni <107570612+OpeOginni@users.noreply.github.com>
Co-authored-by: Luke Parker <10430890+Hona@users.noreply.github.com>
Co-authored-by: Ben Guthrie <benjee.012@gmail.com>
Co-authored-by: Dax <mail@thdxr.com>
Co-authored-by: Filip <34747899+neriousy@users.noreply.github.com>
Co-authored-by: Max Anderson <max.a.anderson95@gmail.com>
Co-authored-by: Brendan Allan <git@brendonovich.dev>
Co-authored-by: Jack <jack@anoma.ly>
Co-authored-by: Shoubhit Dash <shoubhit2005@gmail.com>
Co-authored-by: Dustin Deus <deusdustin@gmail.com>
Co-authored-by: starptech <starptech@starptechs-MBP.fritz.box>
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
Co-authored-by: usrnk1 <7547651+usrnk1@users.noreply.github.com>
Co-authored-by: Jay <53023+jayair@users.noreply.github.com>
Co-authored-by: runvip <164729189+runvip@users.noreply.github.com>
Co-authored-by: opencode <opencode@sst.dev>
Co-authored-by: Julian Coy <julian@ex-machina.co>
Co-authored-by: Vladimir Glafirov <vglafirov@gitlab.com>
2026-07-01 17:12:00 -04:00
Dax Raad
11d2f3e5f8
fix(llm): end reasoning before responses
2026-06-26 13:55:04 -04:00
Aiden Cline
f254476043
fix(llm): omit stateless response item ids ( #34027 )
2026-06-26 10:14:43 -05:00
Aiden Cline
5f61d21487
feat(llm): pass strict through tool definitions for Codex parity ( #33392 )
2026-06-25 16:28:39 -05:00
opencode
7c0e1b431c
sync release versions for v1.17.11
2026-06-25 12:09:26 +00:00
opencode
858f35f1b3
sync release versions for v1.17.10
2026-06-24 20:37:40 +00:00
opencode-agent[bot]
1ef0fd5d01
chore: generate
2026-06-24 13:59:28 +00:00
Shoubhit Dash
36501a81c3
docs(llm): propose AI library design ( #33666 )
2026-06-24 19:27:21 +05:30
Kit Langton
516cfe4e09
refactor(schema): extract shared public schemas ( #33571 )
2026-06-23 22:31:06 -04:00
Kit Langton
130957288e
fix(llm): preserve structured tool errors ( #33405 )
2026-06-22 13:43:07 -04:00
Tommy D. Rossi
d5980b47e9
feat(llm): add video and audio media support to Gemini protocol ( #31889 )
...
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
2026-06-22 10:03:19 -05:00
opencode
e84d94d998
sync release versions for v1.17.9
2026-06-21 00:03:08 +00:00
Kit Langton
4f1ae1604e
chore: upgrade Effect to beta 83 ( #32340 )
2026-06-20 19:57:29 -04:00
Lucas Kim
2d993cd0d5
fix(experimental llm pkg): forward topK to Converse via additionalModelRequestFields ( #33030 )
2026-06-20 14:35:05 -05:00
opencode
8716c4309a
sync release versions for v1.17.8
2026-06-17 21:27:16 +00:00
opencode
85e278b728
sync release versions for v1.17.7
2026-06-14 18:49:21 +00:00
opencode
42f339c681
sync release versions for v1.17.6
2026-06-13 22:39:08 +00:00
opencode
7143bf8ff0
sync release versions for v1.17.5
2026-06-13 19:59:03 +00:00
opencode
fe2e4e21d0
sync release versions for v1.17.4
2026-06-12 02:19:38 +00:00
opencode
936363e7a8
sync release versions for v1.17.3
2026-06-10 18:00:25 +00:00
opencode
2c65273204
sync release versions for v1.17.2
2026-06-10 16:42:54 +00:00
opencode
4c9abff445
sync release versions for v1.17.1
2026-06-10 11:37:58 +00:00
opencode
6c6ed68b5a
sync release versions for v1.17.0
2026-06-10 03:12:32 +00:00
opencode-agent[bot]
cc52dc396c
chore: generate
2026-06-09 18:30:51 +00:00
Dax
132ef57272
refactor(core): simplify location filesystem ( #31545 )
2026-06-09 14:28:45 -04:00
Dax
37522185d3
refactor(tui): centralize application exit ( #31524 )
2026-06-09 11:46:02 -04:00
Kit Langton
54f4974546
feat(http-recorder): prepare public beta release ( #31018 )
2026-06-06 03:01:26 +00:00
Kit Langton
83dca45dd5
fix(core): make V2 reads media-aware and binary-safe ( #31038 )
2026-06-05 19:48:34 -04:00
Kit Langton
820c984d47
fix(core): recover v2 context overflow ( #31005 )
2026-06-05 16:05:51 -04:00
Kit Langton
0bdd9aa494
fix(core): preserve model request semantics ( #30990 )
2026-06-05 14:23:31 -04:00
opencode
41bd9124f4
sync release versions for v1.16.2
2026-06-05 15:58:48 +00:00
opencode-agent[bot]
8c0edca175
chore: generate
2026-06-05 03:28:04 +00:00
Kit Langton
1af8dafd3e
feat(core): persist v2 session context epochs ( #30789 )
2026-06-04 23:26:43 -04:00