opencode/packages
Aiden Cline fce506b3f9 refactor(llm): replace LLMError reasons with flat tagged union
Replace the LLMError { module, method, reason } wrapper with a flat
tagged union (LLM.BadRequest, LLM.Authentication, LLM.PermissionDenied,
LLM.NotFound, LLM.RateLimit, LLM.QuotaExceeded, LLM.ContentPolicy,
LLM.ContextOverflow, LLM.ServerError, LLM.APIError, LLM.ConnectionError,
LLM.TimeoutError, LLM.MalformedResponse, LLM.NoRoute) plus an isLLMError
guard. Add one shared classifyApiFailure classifier used by the HTTP
executor and the AI SDK adapter so both surfaces classify identically,
preserving status, headers, body, and retry-after.

Core policy moves onto tags: retry RateLimit | ServerError |
ConnectionError | TimeoutError; toSessionError adds
provider.context-overflow, provider.timeout, and provider.not-found.

The provider-error stream event and the runner's held-back overflow
handling are unchanged here; isContextOverflowFailure now bridges old
events and new tags until the event is removed.
2026-07-13 12:21:21 -05:00
..
app fix: standardize MCP server copy (#36598) 2026-07-12 22:23:59 -04:00
cli refactor(tui): simplify config context 2026-07-12 17:12:48 -04:00
client fix(client): preserve compatible background service (#36583) 2026-07-12 21:32:34 -04:00
codemode fix(codemode): align array callback behavior (#36584) 2026-07-13 00:34:18 -05:00
console chore: merge dev into v2 (#36312) 2026-07-10 15:11:29 -05:00
containers chore: Upgrade Bun to the final non-rust version (#27648) 2026-05-18 09:24:26 +10:00
core refactor(llm): replace LLMError reasons with flat tagged union 2026-07-13 12:21:21 -05:00
desktop chore: merge dev into v2 (#36144) 2026-07-09 16:32:44 -05:00
docs refactor(core): replace deferred tool option with codemode (#36560) 2026-07-12 21:21:07 -05: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 fix(client): loosen opaque promise outputs 2026-07-11 16:38:02 -04:00
identity
llm refactor(llm): replace LLMError reasons with flat tagged union 2026-07-13 12:21:21 -05:00
opencode tui: remove legacy V1 CLI TUI integration to simplify startup 2026-07-13 01:05:14 -04:00
plugin refactor(core): replace deferred tool option with codemode (#36560) 2026-07-12 21:21:07 -05:00
protocol refactor(tui): reduce legacy sync usage 2026-07-11 17:05:23 -04:00
schema refactor(tui): remove legacy sdk surfaces 2026-07-11 16:38:02 -04:00
script feat(schema): publish package 2026-07-01 13:33:59 -04:00
sdk feat(core): replace instruction checkpoints with value-delta sync (#36254) 2026-07-10 13:26:25 -04: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(server): share event stream encoding (#36484) 2026-07-12 11:48:52 -04:00
session-ui chore: merge dev into v2 (#36312) 2026-07-10 15:11:29 -05:00
simulation feat(simulation): record viewport resizes (#36306) 2026-07-10 15:08:43 -04:00
slack chore: merge dev into v2 (#36144) 2026-07-09 16:32:44 -05:00
stats chore: merge dev into v2 (#36312) 2026-07-10 15:11:29 -05:00
storybook chore: merge dev into v2 (#36144) 2026-07-09 16:32:44 -05:00
tui refactor(tui): reuse dialog select for settings 2026-07-13 11:16:05 -04:00
ui chore: merge dev into v2 (#36312) 2026-07-10 15:11:29 -05:00
web fix: standardize MCP server copy (#36598) 2026-07-12 22:23:59 -04:00
www sync 2026-07-13 10:19:04 -04:00