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
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
Dax Raad
c91604d519
chore(opencode): suppress dead v1 model types
2026-07-09 13:15:20 -04:00
Aiden Cline
7feefb697f
refactor: remove todo tool ( #35989 )
2026-07-09 00:13:48 -05:00
Kit Langton
3dd29094f4
feat(http-recorder): sync recorder v0.3 ( #35619 )
2026-07-08 11:41:59 -04: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
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
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
Kit Langton
461a1c3ab4
refactor(core): replace background job service ( #34559 )
2026-06-29 23:53:35 -04:00
Dax Raad
5ae93092aa
refactor(core): replace bash tool with shell tool
2026-06-29 00:44:17 -04:00
Kit Langton
94e3a29d2f
feat(core): wire v2 subagent tool ( #34320 )
2026-06-28 12:52:39 -04:00
Kit Langton
41283933ff
chore: merge dev into v2 ( #34317 )
...
Co-authored-by: Brendan Allan <14191578+Brendonovich@users.noreply.github.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: James Long <longster@gmail.com >
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 >
2026-06-28 11:30:38 -04:00
Aiden Cline
f254476043
fix(llm): omit stateless response item ids ( #34027 )
2026-06-26 10:14:43 -05:00
Kit Langton
40ecfceec2
fix(sdk): wake embedded session execution ( #33992 )
2026-06-25 23:04:14 -04:00
Kit Langton
a1f093a748
refactor(opencode): stop legacy v2 event emission ( #33993 )
2026-06-26 04:42:38 +02:00
Aiden Cline
5f61d21487
feat(llm): pass strict through tool definitions for Codex parity ( #33392 )
2026-06-25 16:28:39 -05:00
James Long
0e731c2a1a
refactor(core): support tiered layer nodes ( #33937 )
2026-06-25 14:34:17 -04:00
Kit Langton
9e9d405d7e
refactor(schema): tighten public contracts ( #33771 )
2026-06-25 17:10:23 +00:00
opencode-agent[bot]
2684293291
chore: generate
2026-06-24 16:56:33 +00:00
4rcadia
e8e83afbce
feat(mcp): append server instructions to context ( #32490 )
...
Co-authored-by: Aiden Cline <aidenpcline@gmail.com >
2026-06-24 11:54:19 -05:00
Shoubhit Dash
c6cc13e183
feat(mcp): add resource template listing ( #33546 )
2026-06-24 01:59:12 +05:30
opencode-agent[bot]
e439456b13
chore: generate
2026-06-23 15:47:46 +00:00
Aiden Cline
e3edbba3ca
test(opencode): stabilize prompt concurrency tests ( #33522 )
2026-06-23 10:45:30 -05:00
Luke Parker
f0849a697c
fix(app): reject stale timeline range indexes ( #33488 )
2026-06-23 18:27:25 +10:00
Dax Raad
81851ca6b9
test(opencode): stabilize Windows async readiness
2026-06-23 00:41:02 -04:00
Dax Raad
af14fefc96
test(opencode): relax compaction readiness timeout
2026-06-22 23:01:05 -04:00
Aiden Cline
d29f5eba92
refactor(core): remove shell description input ( #32823 )
2026-06-22 21:18:06 -05:00
Kit Langton
f50e4accf3
test(opencode): synchronize shell cancellation ( #33386 )
2026-06-22 11:55:04 -04:00
James Long
d3bbfff826
test(opencode): simplify message pagination layer wiring ( #33157 )
2026-06-20 21:44:37 -04:00
James Long
468f425e76
test(opencode): simplify session retry layer wiring ( #33155 )
2026-06-20 21:44:02 -04:00
Aiden Cline
f092bafe88
tweak: remove steering wrapper that can bust cache ( #33039 )
2026-06-19 19:10:09 -04:00
Shoubhit Dash
f2cf607376
refactor(core): canonicalize pty service ( #32182 )
2026-06-14 12:46:39 +02:00
Kevin Dawkins
e2527db3c7
fix(opencode): surface content-filter finish reason as visible error ( #31745 )
...
Co-authored-by: Aiden Cline <aidenpcline@gmail.com >
2026-06-11 10:41:11 -05:00
James Long
2bde20c2ba
test(opencode): simplify snapshot race layer wiring ( #31827 )
2026-06-11 10:03:46 -04:00
opencode-agent[bot]
69623c2b79
chore: generate
2026-06-11 02:56:49 +00:00
James Long
38536cf733
test(opencode): simplify processor layer wiring ( #31823 )
2026-06-10 22:55:21 -04:00
Dax
8a2cfc00c9
feat(core): add project reference guidance ( #31601 )
2026-06-10 04:08:26 +00:00
Dax
a0409e64d8
refactor(core): unify filesystem search service ( #31566 )
2026-06-09 20:38:02 -04:00
Dax
6566ede935
refactor(core): consolidate references ( #31539 )
2026-06-09 16:08:58 +00:00
Dax
c06ad7c881
refactor(core): replace legacy logger with Effect logging ( #31310 )
2026-06-08 15:41:56 -04:00
Shoubhit Dash
f43209bb8c
fix(session): avoid sticky prompt tool overrides ( #31394 )
2026-06-08 23:03:27 +05:30
Tommy D. Rossi
0050134d9e
fix(session): merge per-call tool rules into session permission ( #30529 )
...
Co-authored-by: Simon Klee <hello@simonklee.dk >
2026-06-08 13:02:10 +05:30
Dax
fe0c4f8c74
refactor(server): canonicalize service API ( #31049 )
2026-06-07 03:27:28 +00:00
Dmitriy Kovalenko
7d3d80f840
feat(opencode): fff search tools ( #27802 )
...
Co-authored-by: Shoubhit Dash <shoubhit2005@gmail.com >
2026-06-06 19:12:31 +05:30
Kit Langton
54f4974546
feat(http-recorder): prepare public beta release ( #31018 )
2026-06-06 03:01:26 +00:00
Shoubhit Dash
a136caa1b3
chore: rm fuzzy search on references ( #30931 )
2026-06-05 16:57:39 +05:30
Shoubhit Dash
7e09660c3b
fix(opencode): respect disabled auto compaction on overflow ( #30749 )
2026-06-04 19:47:49 +05:30
opencode-agent[bot]
30ec231aaf
chore: generate
deploy / deploy (push) Has been cancelled
nix-eval / nix-eval (push) Has been cancelled
nix-hashes / compute-hash (blacksmith-4vcpu-ubuntu-2404, x86_64-linux) (push) Has been cancelled
nix-hashes / compute-hash (blacksmith-4vcpu-ubuntu-2404-arm, aarch64-linux) (push) Has been cancelled
nix-hashes / compute-hash (macos-15-intel, x86_64-darwin) (push) Has been cancelled
nix-hashes / compute-hash (macos-latest, aarch64-darwin) (push) Has been cancelled
nix-hashes / update-hashes (push) Has been cancelled
publish / version (push) Has been cancelled
publish / build-cli (push) Has been cancelled
publish / sign-cli-windows (push) Has been cancelled
publish / build-electron (map[bun_install_flags:--os=darwin --cpu=arm64 host:macos-26 platform_flag:--mac --arm64 target:aarch64-apple-darwin]) (push) Has been cancelled
publish / build-electron (map[bun_install_flags:--os=darwin --cpu=x64 host:macos-26-intel platform_flag:--mac --x64 target:x86_64-apple-darwin]) (push) Has been cancelled
publish / build-electron (map[host:blacksmith-4vcpu-ubuntu-2404 platform_flag:--linux target:x86_64-unknown-linux-gnu]) (push) Has been cancelled
publish / build-electron (map[host:blacksmith-4vcpu-ubuntu-2404-arm platform_flag:--linux --arm64 target:aarch64-unknown-linux-gnu]) (push) Has been cancelled
publish / build-electron (map[host:blacksmith-4vcpu-windows-2025 platform_flag:--win target:x86_64-pc-windows-msvc]) (push) Has been cancelled
publish / build-electron (map[host:windows-2025 platform_flag:--win --arm64 target:aarch64-pc-windows-msvc]) (push) Has been cancelled
publish / publish (push) Has been cancelled
storybook / storybook build (push) Has been cancelled
containers / build (push) Has been cancelled
docs-locale-sync / sync-locales (push) Has been cancelled
generate / generate (push) Has been cancelled
typecheck / typecheck (push) Has been cancelled
2026-06-04 06:59:09 +00:00
Dax
1ff19103a2
feat(core): add command registry ( #30624 )
2026-06-04 02:57:43 -04:00
Aiden Cline
74a27dbf98
test: wait for shell truncation readiness ( #30679 )
2026-06-04 00:20:35 -05:00