opencode/packages/core/test
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
..
config fix(core): load config across git boundaries (#36577) 2026-07-13 00:05:41 +00:00
effect feat(api): publish v2 reference 2026-07-06 01:29:08 -04:00
filesystem chore: merge dev into v2 (#35962) 2026-07-08 17:58:55 -05:00
fixture feat(core): support MCP resources (#35656) 2026-07-07 11:55:06 -05:00
fixtures/recordings/session-runner refactor: remove todo tool (#35989) 2026-07-09 00:13:48 -05:00
github-copilot feat(core): port GitHub Copilot OAuth (#36336) 2026-07-10 21:11:12 -04:00
instructions feat(core): replace instruction checkpoints with value-delta sync (#36254) 2026-07-10 13:26:25 -04:00
lib feat(core): replace instruction checkpoints with value-delta sync (#36254) 2026-07-10 13:26:25 -04:00
plugin refactor(core): replace deferred tool option with codemode (#36560) 2026-07-12 21:21:07 -05:00
process chore: merge dev into v2 (#34317) 2026-06-28 11:30:38 -04:00
pty chore: merge dev into v2 (#34788) 2026-07-01 17:12:00 -04:00
skill feat(core): replace instruction checkpoints with value-delta sync (#36254) 2026-07-10 13:26:25 -04:00
util fix(cli): elect one service process 2026-07-08 11:46:02 -04:00
agent.test.ts chore: merge dev into v2 (#34788) 2026-07-01 17:12:00 -04:00
aisdk.test.ts fix(core): preserve provider metadata namespaces (#35817) 2026-07-07 21:45:58 -05:00
catalog.test.ts refactor(schema): apply session review decisions (#35793) 2026-07-07 22:10:11 -04:00
command.test.ts chore: merge dev into v2 (#35591) 2026-07-06 16:05:29 -05:00
credential.test.ts chore: merge dev into v2 (#34788) 2026-07-01 17:12:00 -04:00
database-migration.test.ts feat(core): replace instruction checkpoints with value-delta sync (#36254) 2026-07-10 13:26:25 -04:00
event-logger.test.ts feat(core): improve runtime observability 2026-07-05 15:59:44 -04:00
event.test.ts refactor(server): share event stream encoding (#36484) 2026-07-12 11:48:52 -04:00
file-mutation.test.ts chore: merge dev into v2 (#34788) 2026-07-01 17:12:00 -04:00
form.test.ts refactor(form): model links as fields (#36129) 2026-07-10 00:22:01 -05:00
git.test.ts refactor(core): combine git discovery queries (#36321) 2026-07-10 19:41:48 -04:00
global.test.ts core: allow agents to access global tmp directory without permission prompts 2026-05-01 15:35:45 -04:00
instruction-discovery.test.ts feat(core): replace instruction checkpoints with value-delta sync (#36254) 2026-07-10 13:26:25 -04:00
integration.test.ts refactor(tui): remove legacy sdk surfaces 2026-07-11 16:38:02 -04:00
job.test.ts chore: merge dev into v2 (#34788) 2026-07-01 17:12:00 -04:00
legacy-event-schema.test.ts refactor(schema): extract public event definitions (#33579) 2026-06-24 16:43:17 -04:00
location-filesystem.test.ts chore: merge dev into v2 (#34788) 2026-07-01 17:12:00 -04:00
location-layer.test.ts fix(core): skip unchanged plugin activation 2026-07-10 20:49:16 -04:00
location-mutation.test.ts chore: merge dev into v2 (#34788) 2026-07-01 17:12:00 -04:00
location.test.ts feat(api): publish v2 reference 2026-07-06 01:29:08 -04:00
logging.test.ts fix(tui): stabilize reload connection state 2026-06-30 22:31:51 -04:00
mcp.test.ts refactor(form): model links as fields (#36129) 2026-07-10 00:22:01 -05:00
model.test.ts feat(core): add location-scoped config loading (#29625) 2026-05-30 04:06:08 +00:00
models.test.ts test(core): align models dev snapshot fixtures 2026-07-09 13:15:20 -04:00
move-session.test.ts feat(core): replace instruction checkpoints with value-delta sync (#36254) 2026-07-10 13:26:25 -04:00
newtype.test.ts fix(core): validate scalar newtypes (#35381) 2026-07-04 21:43:08 -04:00
npm-config.test.ts Refactor npm config handling (#24565) 2026-04-27 03:54:59 +00:00
npm.test.ts chore: merge dev into v2 (#34788) 2026-07-01 17:12:00 -04:00
oauth-page.test.ts feat(oauth): unify OAuth callback browser pages (#34025) 2026-06-26 00:36:40 -05:00
patch.test.ts chore: generate 2026-06-04 03:03:39 +00:00
permission.test.ts refactor: remove todo tool (#35989) 2026-07-09 00:13:48 -05:00
plugin.test.ts refactor(core): replace deferred tool option with codemode (#36560) 2026-07-12 21:21:07 -05:00
preload.ts test(core): speed up test setup 2026-06-22 22:49:57 -04:00
project-copy.test.ts chore: merge dev into v2 (#34788) 2026-07-01 17:12:00 -04:00
project-directories.test.ts feat(client): expose v2 project APIs (#34456) 2026-06-29 14:10:11 -04:00
project.test.ts chore: merge dev into v2 (#35591) 2026-07-06 16:05:29 -05:00
provider-xai-responses.test.ts chore: merge dev into v2 (#36144) 2026-07-09 16:32:44 -05:00
question.test.ts fix(core): revert form service and mcp elicitation (#35080) 2026-07-03 00:32:10 -05:00
reference-guidance.test.ts refactor(tui): remove legacy sdk surfaces 2026-07-11 16:38:02 -04:00
reference.test.ts refactor(tui): remove legacy sdk surfaces 2026-07-11 16:38:02 -04:00
repository-cache.test.ts chore: merge dev into v2 (#34788) 2026-07-01 17:12:00 -04:00
repository.test.ts chore: generate 2026-06-02 13:42:23 +00:00
ripgrep.test.ts chore: merge dev into v2 (#34317) 2026-06-28 11:30:38 -04:00
session-compact.test.ts feat(core): session.pending.list API with pending-only session_pending storage (#36126) 2026-07-09 17:25:40 -04:00
session-compaction.test.ts fix(core): simplify compaction semantics (#36267) 2026-07-10 11:36:29 -04:00
session-create.test.ts feat(core): session.pending.list API with pending-only session_pending storage (#36126) 2026-07-09 17:25:40 -04:00
session-error.test.ts refactor(llm): replace LLMError reasons with flat tagged union 2026-07-13 12:21:21 -05:00
session-execution.test.ts refactor(llm): replace LLMError reasons with flat tagged union 2026-07-13 12:21:21 -05:00
session-instructions.test.ts feat(core): replace instruction checkpoints with value-delta sync (#36254) 2026-07-10 13:26:25 -04:00
session-log.test.ts refactor(schema): apply session review decisions (#35793) 2026-07-07 22:10:11 -04:00
session-projector.test.ts feat(core): replace instruction checkpoints with value-delta sync (#36254) 2026-07-10 13:26:25 -04:00
session-prompt.test.ts feat(core): session.pending.list API with pending-only session_pending storage (#36126) 2026-07-09 17:25:40 -04:00
session-remove.test.ts feat(tui): support session deletion 2026-07-06 19:19:22 -04:00
session-run-coordinator.test.ts feat(core): finalize session event lifecycle (#35272) 2026-07-06 18:14:06 -04:00
session-runner-message.test.ts fix(core): preserve prompt attachment order (#35921) 2026-07-08 10:06:58 -05:00
session-runner-model.test.ts fix(core): preserve provider metadata namespaces (#35817) 2026-07-07 21:45:58 -05:00
session-runner-recorded.test.ts feat(core): replace instruction checkpoints with value-delta sync (#36254) 2026-07-10 13:26:25 -04:00
session-runner-system-prompt.test.ts fix(core): restore v2 model prompts (#34275) 2026-06-28 14:47:20 -05:00
session-runner-tool-events.test.ts refactor(core): simplify session runner bookkeeping (#36200) 2026-07-10 09:46:34 -04:00
session-runner-tool-registry.test.ts refactor(core): replace deferred tool option with codemode (#36560) 2026-07-12 21:21:07 -05:00
session-runner.test.ts refactor(llm): replace LLMError reasons with flat tagged union 2026-07-13 12:21:21 -05:00
session-skill.test.ts refactor(schema): apply session review decisions (#35793) 2026-07-07 22:10:11 -04:00
session-title.test.ts feat(core): generalize session input inbox (#36005) 2026-07-08 22:07:45 -04:00
session-tool-progress.test.ts refactor(schema): apply session review decisions (#35793) 2026-07-07 22:10:11 -04:00
session-wait.test.ts chore: merge dev into v2 (#34788) 2026-07-01 17:12:00 -04:00
shared-schema.test.ts feat(core): session.pending.list API with pending-only session_pending storage (#36126) 2026-07-09 17:25:40 -04:00
shell.test.ts fix(core): spawn shell non-interactively without sourcing rc files 2026-06-29 12:05:56 -04:00
skill-discovery.test.ts chore: merge dev into v2 (#35591) 2026-07-06 16:05:29 -05:00
skill.test.ts fix(core): publish skill source updates 2026-07-10 20:42:44 -04:00
snapshot.test.ts fix(core): defer snapshot repository discovery (#36290) 2026-07-10 17:34:40 -04:00
state.test.ts feat(plugin): add namespaced hook API (#33416) 2026-06-22 19:06:57 -04:00
tool-edit.test.ts feat(core): finalize session event lifecycle (#35272) 2026-07-06 18:14:06 -04:00
tool-execute.test.ts fix(codemode): return promises from combinators (#35782) 2026-07-10 00:33:21 -05:00
tool-output-store.test.ts chore: merge dev into v2 (#34788) 2026-07-01 17:12:00 -04:00
tool-patch.test.ts refactor(core): simplify tool admission flow (#36180) 2026-07-09 22:01:31 -04:00
tool-question.test.ts refactor(form): model links as fields (#36129) 2026-07-10 00:22:01 -05:00
tool-read-filesystem.test.ts chore: merge dev into v2 (#34788) 2026-07-01 17:12:00 -04:00
tool-read.test.ts feat(core): finalize session event lifecycle (#35272) 2026-07-06 18:14:06 -04:00
tool-search.test.ts fix(core): report missing search paths (#35337) 2026-07-04 12:12:56 -04:00
tool-shell.test.ts fix(tui): show background shell completion (#36534) 2026-07-12 21:01:36 -04:00
tool-skill.test.ts refactor(schema): apply session review decisions (#35793) 2026-07-07 22:10:11 -04:00
tool-subagent.test.ts fix(tui): show background subagent completion (#36530) 2026-07-12 11:43:13 -04:00
tool-webfetch.test.ts refactor(core): migrate built-in tools to internal plugins (#34956) 2026-07-03 09:03:53 -04:00
tool-websearch.test.ts refactor(core): migrate built-in tools to internal plugins (#34956) 2026-07-03 09:03:53 -04:00
tool-write.test.ts feat(core): finalize session event lifecycle (#35272) 2026-07-06 18:14:06 -04:00
vcs-hg.test.ts feat(core): add mercurial adapter for vcs status and diff (#35141) 2026-07-03 17:42:25 +05:30
vcs.test.ts feat(core): expose V2 VCS status and diff APIs (#35129) 2026-07-03 16:49:03 +05:30