cloudaxe-opencode/packages/core/test
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
..
config fix(plugin): select plugins by id 2026-07-10 00:44:43 -04:00
effect
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
instructions
lib refactor(core): simplify tool admission flow (#36180) 2026-07-09 22:01:31 -04:00
plugin feat(plugin): add promise plugin cleanup 2026-07-10 11:23:20 -04:00
process
pty
skill refactor(schema): apply session review decisions (#35793) 2026-07-07 22:10:11 -04:00
util fix(cli): elect one service process 2026-07-08 11:46:02 -04:00
agent.test.ts
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
credential.test.ts
database-migration.test.ts feat(core): session.pending.list API with pending-only session_pending storage (#36126) 2026-07-09 17:25:40 -04:00
event-logger.test.ts
event.test.ts
file-mutation.test.ts
form.test.ts refactor(form): model links as fields (#36129) 2026-07-10 00:22:01 -05:00
git.test.ts refactor(schema): apply session review decisions (#35793) 2026-07-07 22:10:11 -04:00
global.test.ts
instruction-discovery.test.ts
integration.test.ts feat(v2/cli): add console login (#35969) 2026-07-09 00:00:09 +02:00
job.test.ts
legacy-event-schema.test.ts
location-filesystem.test.ts
location-layer.test.ts fix(core): restore plugins after failed activation 2026-07-09 16:28:22 -04:00
location-mutation.test.ts
location.test.ts
logging.test.ts
mcp.test.ts refactor(form): model links as fields (#36129) 2026-07-10 00:22:01 -05:00
model.test.ts
models.test.ts test(core): align models dev snapshot fixtures 2026-07-09 13:15:20 -04:00
move-session.test.ts
newtype.test.ts
npm-config.test.ts
npm.test.ts
oauth-page.test.ts
patch.test.ts
permission.test.ts refactor: remove todo tool (#35989) 2026-07-09 00:13:48 -05:00
plugin.test.ts refactor(core): simplify tool admission flow (#36180) 2026-07-09 22:01:31 -04:00
preload.ts
project-copy.test.ts
project-directories.test.ts
project.test.ts
provider-xai-responses.test.ts chore: merge dev into v2 (#36144) 2026-07-09 16:32:44 -05:00
question.test.ts
reference-guidance.test.ts
reference.test.ts
repository-cache.test.ts
repository.test.ts
ripgrep.test.ts
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): redesign error model as flat tagged union 2026-07-13 00:47:32 -05:00
session-execution.test.ts refactor(llm): redesign error model as flat tagged union 2026-07-13 00:47:32 -05:00
session-instructions.test.ts refactor(core): simplify tool admission flow (#36180) 2026-07-09 22:01:31 -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): session.pending.list API with pending-only session_pending storage (#36126) 2026-07-09 17:25:40 -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
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): generalize session input inbox (#36005) 2026-07-08 22:07:45 -04:00
session-runner-system-prompt.test.ts
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): simplify tool admission flow (#36180) 2026-07-09 22:01:31 -04:00
session-runner.test.ts refactor(llm): redesign error model as flat tagged union 2026-07-13 00:47:32 -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
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
skill-discovery.test.ts
skill.test.ts refactor(schema): apply session review decisions (#35793) 2026-07-07 22:10:11 -04:00
snapshot.test.ts refactor(schema): apply session review decisions (#35793) 2026-07-07 22:10:11 -04:00
state.test.ts
tool-edit.test.ts
tool-execute.test.ts fix(codemode): return promises from combinators (#35782) 2026-07-10 00:33:21 -05:00
tool-output-store.test.ts
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
tool-read.test.ts
tool-search.test.ts
tool-shell.test.ts refactor(schema): apply session review decisions (#35793) 2026-07-07 22:10:11 -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 refactor(core): simplify tool admission flow (#36180) 2026-07-09 22:01:31 -04:00
tool-webfetch.test.ts
tool-websearch.test.ts
tool-write.test.ts
vcs-hg.test.ts
vcs.test.ts