opencode/packages
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
..
app chore: merge dev into v2 (#36144) 2026-07-09 16:32:44 -05:00
cli chore: merge dev into v2 (#36144) 2026-07-09 16:32:44 -05:00
client refactor(form): model links as fields (#36129) 2026-07-10 00:22:01 -05:00
codemode fix(codemode): return promises from combinators (#35782) 2026-07-10 00:33:21 -05:00
console chore: merge dev into v2 (#36144) 2026-07-09 16:32:44 -05:00
containers chore: Upgrade Bun to the final non-rust version (#27648) 2026-05-18 09:24:26 +10:00
core refactor(llm): redesign error model as flat tagged union 2026-07-13 00:47:32 -05:00
desktop chore: merge dev into v2 (#36144) 2026-07-09 16:32:44 -05:00
docs feat(plugin): add promise plugin cleanup 2026-07-10 11:23:20 -04:00
effect-drizzle-sqlite chore: merge dev into v2 (#36144) 2026-07-09 16:32:44 -05:00
effect-sqlite-node chore: merge dev into v2 (#36144) 2026-07-09 16:32:44 -05:00
enterprise chore: merge dev into v2 (#36144) 2026-07-09 16:32:44 -05:00
function chore: merge dev into v2 (#36144) 2026-07-09 16:32:44 -05:00
http-recorder chore: merge dev into v2 (#36144) 2026-07-09 16:32:44 -05:00
httpapi-codegen refactor(tui): migrate v2 calls to new client 2026-07-09 16:57:13 -04:00
identity
llm refactor(llm): redesign error model as flat tagged union 2026-07-13 00:47:32 -05:00
opencode refactor(llm): redesign error model as flat tagged union 2026-07-13 00:47:32 -05:00
plugin feat(plugin): add promise plugin cleanup 2026-07-10 11:23:20 -04:00
protocol refactor(form): model links as fields (#36129) 2026-07-10 00:22:01 -05:00
schema refactor(form): model links as fields (#36129) 2026-07-10 00:22:01 -05:00
script feat(schema): publish package 2026-07-01 13:33:59 -04:00
sdk refactor(form): model links as fields (#36129) 2026-07-10 00:22:01 -05:00
sdk-next feat(core): session.pending.list API with pending-only session_pending storage (#36126) 2026-07-09 17:25:40 -04:00
server refactor(form): model links as fields (#36129) 2026-07-10 00:22:01 -05:00
session-ui chore: merge dev into v2 (#36144) 2026-07-09 16:32:44 -05:00
simulation feat(simulation): add literal screen text matching (#36085) 2026-07-09 10:50:35 -04:00
slack chore: merge dev into v2 (#36144) 2026-07-09 16:32:44 -05:00
stats chore: merge dev into v2 (#36144) 2026-07-09 16:32:44 -05:00
storybook chore: merge dev into v2 (#36144) 2026-07-09 16:32:44 -05:00
tui fix(tui): unify pending tool styling (#36278) 2026-07-10 12:29:09 -04:00
ui chore: merge dev into v2 (#36144) 2026-07-09 16:32:44 -05:00
web chore: merge dev into v2 (#36144) 2026-07-09 16:32:44 -05:00