opencode/packages/core/test
Aiden Cline 4c949b0356 fix(core): map v1 setCacheKey to compatibility
V1 provider.options.setCacheKey was passed through as an inert provider setting, so the prompt cache key was never sent for providers that opt in (and could not be disabled for providers that default it on). Lower it to compatibility.supportsPromptCacheKey on the provider, add provider-level compatibility to the config schema, and apply it to every model of the provider with model-level compatibility taking precedence.
2026-09-28 17:58:56 -05:00
..
codemode fix(codemode): drop the parameter name from rendered signatures (#50435) 2026-09-21 16:44:46 -05:00
config fix(core): map v1 setCacheKey to compatibility 2026-09-28 17:58:56 -05:00
effect feat(core): order projects by recent activity (#50790) 2026-09-23 01:59:32 +00:00
filesystem fix(sdk): support Node package imports (#49810) 2026-09-18 13:10:59 -07:00
fixture chore(core): remove dead modules and exports (#51667) 2026-09-27 06:38:43 -07:00
fixtures/recordings/session-runner feat(core): let subagents pick a model and expose models tool (#49194) 2026-09-16 01:16:55 -05:00
github-copilot refactor(core): refactor model resolving logic, fix missing variant logic (#48943) 2026-09-14 18:29:34 -05:00
instructions refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
lib fix(core): ignore blank subagent options (#50977) 2026-09-23 16:29:08 -05:00
modal refactor(core): refactor model resolving logic, fix missing variant logic (#48943) 2026-09-14 18:29:34 -05:00
plugin feat(core): fit output limits to the context window (#51271) 2026-09-26 22:58:28 -05:00
process refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
pty refactor(core): drop forwarding shim modules (#51670) 2026-09-27 14:47:19 -07:00
shell-scan fix(core): expand portable shell scanner compatibility (#47110) 2026-09-03 14:11:58 -04:00
skill fix(core): honor session permissions in skill and MCP discovery (#50015) 2026-09-19 12:59:09 -05:00
util chore(core): remove dead modules and exports (#51667) 2026-09-27 06:38:43 -07:00
agent.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
aisdk-native.test.ts fix(ai): fit Claude thinking budgets on Bedrock Converse (#51190) 2026-09-24 13:48:39 -05:00
aisdk.test.ts fix(core): apply GPT verbosity defaults at request time (#51166) 2026-09-24 17:13:39 -05:00
app.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
browser-idle.test.ts test(core): stabilize browser idle attachment (#50418) 2026-09-21 14:45:33 -05:00
bus-session-routing.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
bus.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
catalog.test.ts refactor(schema): separate provider and model settings (#49850) 2026-09-18 21:20:08 -05:00
codemode.test.ts fix(codemode): drop the parameter name from rendered signatures (#50435) 2026-09-21 16:44:46 -05:00
command.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
credential.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
database-drizzle.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
database-migration.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
effect-app-node-platform.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
effect-simplification-types.test.ts chore: enforce effect simplifications (#43979) 2026-08-21 19:48:27 +00:00
environment.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
event-logger.test.ts refactor(core): split provider and model registries (#48901) 2026-09-14 10:34:11 -04:00
file-access-path.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
file-access.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
file-mutation.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
form.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
formatter.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
generate.test.ts fix(core): attribute one-shot generation requests (#48358) 2026-09-28 11:55:14 -05:00
git.test.ts test(core): avoid stdin race in check-ignore flake test (#48995) 2026-09-14 20:31:19 +05:30
instance-vanilla.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
instruction-discovery.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
instruction-state.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
integration.test.ts feat(app): sign in to OpenCode Go and Console through the browser (#50267) 2026-09-22 19:34:30 +10:00
job.test.ts fix(core): preserve job failure details (#49226) 2026-09-15 15:30:53 -05:00
kv.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
location-activity.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
location-filesystem.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
location-layer.test.ts refactor(core): refactor model resolving logic, fix missing variant logic (#48943) 2026-09-14 18:29:34 -05:00
location.test.ts feat(core): order projects by recent activity (#50790) 2026-09-23 01:59:32 +00:00
logging.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
mcp-import-boundary.test.ts perf(core): load MCP client lazily (#42468) 2026-08-13 22:48:09 -04:00
mcp-instructions.test.ts fix(core): honor session permissions in skill and MCP discovery (#50015) 2026-09-19 12:59:09 -05:00
mcp-oauth.test.ts refactor(util): share a browser opener across cli, tui, and core (#51412) 2026-09-25 18:00:32 -05:00
mcp.test.ts fix(core): accept 128-character tool names (#51207) 2026-09-24 14:59:57 -05:00
model-plugins.test.ts refactor(core): split provider and model registries (#48901) 2026-09-14 10:34:11 -04:00
model-resolver.test.ts refactor(core): refactor model resolving logic, fix missing variant logic (#48943) 2026-09-14 18:29:34 -05:00
model.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
models.test.ts refactor(core): refactor model resolving logic, fix missing variant logic (#48943) 2026-09-14 18:29:34 -05:00
network-guard.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
newtype.test.ts fix(core): validate scalar newtypes (#35381) 2026-07-04 21:43:08 -04:00
npm-config.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
npm.test.ts fix(core): install git plugins from branch subdirectories (#50754) 2026-09-23 04:21:36 +05:30
oauth-page.test.ts feat(oauth): unify OAuth callback browser pages (#34025) 2026-06-26 00:36:40 -05:00
patch.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
permission.test.ts refactor(protocol): simplify interactive resources 2026-09-15 18:23:47 -04:00
persistent-pty-daemon.test.ts fix(pty): own daemon lifetime and hand off restarts (#45551) 2026-08-27 11:52:48 -04:00
plugin-failure.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
plugin.test.ts feat(app): sign in to OpenCode Go and Console through the browser (#50267) 2026-09-22 19:34:30 +10:00
preload.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
preload.ts test(core): disable npm audits in the test preload (#47170) 2026-09-03 19:52:18 -05:00
project.test.ts feat(core): order projects by recent activity (#50790) 2026-09-23 01:59:32 +00:00
provider.test.ts refactor(schema): separate provider and model settings (#49850) 2026-09-18 21:20:08 -05:00
reference-instructions.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
reference.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
repository-cache.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
repository.test.ts fix(core): reject relative path segments in repository hosts (#51577) 2026-09-28 10:14:35 +05:30
ripgrep.test.ts fix(core): exclude hidden glob matches before limiting results 2026-09-09 09:41:07 -04:00
rpc-handler-errors.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
session-activation.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
session-checkpoint-transport.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
session-compact.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
session-compaction-transport.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
session-compaction.test.ts fix(core): share child session affinity headers (#51923) 2026-09-28 13:31:17 -05:00
session-create.test.ts feat(session): allow metadata updates (#50025) 2026-09-22 17:27:38 -05:00
session-diff.test.ts fix(tui): include provider latency in TPS 2026-09-17 10:40:12 -04:00
session-environment.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
session-error.test.ts fix(core): retry acknowledged websocket read failures (#49183) 2026-09-16 16:15:19 +05:30
session-execution.test.ts chore(core): remove dead modules and exports (#51667) 2026-09-27 06:38:43 -07:00
session-generate.test.ts fix(tui): include provider latency in TPS 2026-09-17 10:40:12 -04:00
session-instructions.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
session-log.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
session-model-request-hooks.test.ts Revert "fix(core): fit model limits and recover compaction overflow" (#51273) 2026-09-25 00:12:14 -05:00
session-model-request.test.ts Revert "fix(core): fit model limits and recover compaction overflow" (#51273) 2026-09-25 00:12:14 -05:00
session-model-transport-live.test.ts fix(core): close websocket after provider error frame (#47973) 2026-09-09 16:50:20 +05:30
session-model-transport.test.ts fix(core): relax websocket idle timeout and honor chunkTimeout (#50914) 2026-09-23 20:22:41 +05:30
session-move.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
session-native-compaction.test.ts refactor(core): cleanup session compaction (#51447) 2026-09-26 00:00:11 -05:00
session-owned.test.ts fix(tui): include provider latency in TPS 2026-09-17 10:40:12 -04:00
session-projector.test.ts fix(tui): include provider latency in TPS 2026-09-17 10:40:12 -04:00
session-prompt.test.ts fix(app): deliver text and oversized attachments by path (#49682) 2026-09-18 06:30:57 +00:00
session-provider-context.test.ts fix(core): decode legacy media in compaction checkpoints (#51409) 2026-09-25 18:08:16 -05:00
session-remove.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
session-revert.test.ts fix(tui): include provider latency in TPS 2026-09-17 10:40:12 -04:00
session-run-coordinator.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
session-runner-message.test.ts refactor(core): cleanup session compaction (#51447) 2026-09-26 00:00:11 -05:00
session-runner-recorded.test.ts feat(core): append model identity to system prompts via plugin (#49129) 2026-09-15 11:46:07 -05:00
session-runner-tool-events.test.ts fix(core): publish batched deltas before the next block starts (#51105) 2026-09-24 09:55:27 -04:00
session-runner.test.ts fix(core): share child session affinity headers (#51923) 2026-09-28 13:31:17 -05:00
session-shell.test.ts fix(core): simplify shell output notices (#50676) 2026-09-22 11:47:07 -04:00
session-skill.test.ts refactor(protocol): simplify session actions 2026-09-14 13:00:08 -04:00
session-sql.types.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
session-stats.test.ts fix(core): match versioned usage event type in stats (#48997) 2026-09-14 20:30:13 +05:30
session-step.test.ts feat(tui): reload all locations 2026-09-16 16:47:44 -04:00
session-store.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
session-system-prompt.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
session-title.test.ts fix(tui): include provider latency in TPS 2026-09-17 10:40:12 -04:00
session-tool-progress.test.ts fix(tui): include provider latency in TPS 2026-09-17 10:40:12 -04:00
session-view.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
session-wait.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
shared-schema.test.ts refactor(core): move provider policies into settings (#49666) 2026-09-18 10:18:33 -05:00
shell-cleanup.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
shell-parse-compatibility.test.ts feat(core): make the portable shell scanner authoritative 2026-08-26 16:35:16 -04:00
shell-parse-parity.test.ts feat(core): make the portable shell scanner authoritative 2026-08-26 16:35:16 -04:00
shell-parse-syntax.test.ts feat(core): make the portable shell scanner authoritative 2026-08-26 16:35:16 -04:00
shell-parse.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
shell-retention.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
shell.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
skill-discovery.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
skill.test.ts fix(core): honor session permissions in skill and MCP discovery (#50015) 2026-09-19 12:59:09 -05:00
snapshot.test.ts test: align coverage with v2 refactors (#48900) 2026-09-13 21:44:49 -05:00
sqlite-bundle.test.ts fix(core): default #sqlite resolution to the node driver (#41834) 2026-08-11 17:50:09 -04:00
sqlite-workerd.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
state-group.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
state-replay.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
state.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
tool-edit.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
tool-execute.test.ts feat(core): expose fetch to code mode scripts (#49235) 2026-09-15 23:29:22 -05:00
tool-html-markdown-budget.test.ts fix(core): terminate exhausted Markdown code budgets (#47408) 2026-09-09 09:15:11 -04:00
tool-opencode.test.ts feat(core): let subagents pick a model and expose models tool (#49194) 2026-09-16 01:16:55 -05:00
tool-output.test.ts fix(core): show line counts when tool output is truncated (#51200) 2026-09-24 14:50:55 -05:00
tool-patch.test.ts fix(core): shape compaction and generate requests with built-in context hooks (#48749) 2026-09-12 23:10:09 -05:00
tool-question.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
tool-read-filesystem.test.ts fix(core): report read length and cap limits and long lines (#51011) 2026-09-24 00:20:52 -05:00
tool-read.test.ts fix(core): report read length and cap limits and long lines (#51011) 2026-09-24 00:20:52 -05:00
tool-registry.test.ts fix(core): accept 128-character tool names (#51207) 2026-09-24 14:59:57 -05:00
tool-schema.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
tool-search.test.ts fix(core): exclude hidden glob matches before limiting results 2026-09-09 09:41:07 -04:00
tool-shell.test.ts fix(core): restore the shell no-output placeholder (#51187) 2026-09-24 13:12:42 -05:00
tool-skill.test.ts refactor(protocol): simplify skill and reference contracts 2026-09-13 18:52:55 -04:00
tool-subagent.test.ts fix(core): ignore blank subagent options (#50977) 2026-09-23 16:29:08 -05:00
tool-webfetch.test.ts fix(core): preserve inline code boundary backticks (#47410) 2026-09-09 09:15:52 -04:00
tool-websearch.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
tool-write.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
v1-migration.test.ts feat(core): note renamed legacy tools when migrating V1 sessions (#50188) 2026-09-23 21:29:20 -05:00
variant.test.ts fix(core): revert always-thinking variants for Claude Opus 5.5 (#51359) 2026-09-25 22:03:12 +05:30
vcs-hg.test.ts test(core): expect the vcs provider in info results (#49264) 2026-09-15 23:01:16 -04:00
vcs.test.ts test(core): expect the vcs provider in info results (#49264) 2026-09-15 23:01:16 -04:00
websearch.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
wellknown.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
workspace.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
worktree.test.ts feat(core): make worktree APIs project-based (#48867) 2026-09-14 22:40:16 -04:00