opencode/packages/core/test
Shoubhit Dash b0dac0d5b3 refactor(core): read the Plan directory from plugin options
Core config no longer knows about Plan mode. This removes the plan key, its schema, and the regenerated OpenAPI and client output. The opencode.plan plugin reads directory from its plugin options instead. It logs and falls back to ~/.opencode/plan when the options are invalid, so a typo never leaves the Plan agent without its edit restrictions.
2026-10-06 19:44:50 +05:30
..
codemode fix(codemode): drop the parameter name from rendered signatures (#50435) 2026-09-21 16:44:46 -05:00
config fix(core): migrate the v1 thinking block-binding opt-out (#52327) 2026-10-06 00:06:58 -05:00
effect feat(core): order projects by recent activity (#50790) 2026-09-23 01:59:32 +00:00
filesystem refactor(core): remove orphaned filesystem ignore patterns (#52658) 2026-10-02 04:05:58 +00:00
fixture fix(server): return 404 when a location folder is missing (#52668) 2026-10-02 23:43:56 -05: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 fix(core): drop session ID and order instructions for prompt-cache reuse (#51960) 2026-09-28 19:29:28 -05: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 refactor(core): read the Plan directory from plugin options 2026-10-06 19:44:50 +05:30
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): make the portable PowerShell scanner sound against real pwsh (#53404) 2026-10-05 14:07:15 -07: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 feat(core): allow shell for explore (#53284) 2026-10-05 13:12:54 -05:00
aisdk-native.test.ts feat(core): wire native Vercel AI Gateway provider (#53432) 2026-10-05 18:07:39 -05:00
aisdk.test.ts fix(core): default provider header and chunk timeouts to five minutes (#49229) 2026-10-01 21:41:53 -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 fix(core): exclude non-text models from catalog and default selection (#53295) 2026-10-05 19:14:33 +00: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 feat(cli): add auth export and auth import commands (#52139) 2026-09-29 16:09:01 -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
database.test.ts fix(core): restrict database files to their owner (#52150) 2026-09-29 14:18:40 -05: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 fix(core): merge formatter config across files (#52739) 2026-10-02 17:49:12 +05:30
generate.test.ts feat(ai): add native Cohere chat provider (#52633) 2026-10-02 11:07:02 -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 fix(core): stop instruction walk at case-variant Windows project roots (#53349) 2026-10-05 15:10:22 +02: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 refactor(core): require job ids from their subject (#52806) 2026-10-02 18:27:13 +00: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 fix(server): return 404 when a location folder is missing (#52668) 2026-10-02 23:43:56 -05:00
location-filesystem.test.ts refactor(core): type directory initialization errors (#52649) 2026-10-01 22:45:08 -05:00
location-layer.test.ts fix(server): return 404 when a location folder is missing (#52668) 2026-10-02 23:43:56 -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 fix(core): report MCP OAuth token exchange failures on the callback page (#53378) 2026-10-05 18:12:58 +02:00
mcp.test.ts fix(core): retry transient MCP connect failures (#52614) 2026-10-02 17:22:25 -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 feat(core): wire native Vercel AI Gateway provider (#53432) 2026-10-05 18:07:39 -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 fix(core): route completions-shaped Azure catalog models to chat (#53395) 2026-10-05 20:28:57 +02:00
network-guard.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -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 chore: enable noUnusedLocals in ai and core (#52858) 2026-10-02 22:45:27 +00:00
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 feat(acp): support additional workspace directories (#52524) 2026-10-01 23:47:00 +05:30
persistent-pty-daemon.test.ts fix(core): never let persistent PTY handoff break a server restart (#52573) 2026-10-03 10:23:31 -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(plugin): support parent session creation (#52359) 2026-09-30 22:50:09 -05: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 feat(core): wire native Vercel AI Gateway provider (#53432) 2026-10-05 18:07:39 -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 fix(server): return 404 when a location folder is missing (#52668) 2026-10-02 23:43:56 -05: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): honor compaction agent model for summaries (#53276) 2026-10-04 23:20:24 -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): align ChatGPT token sharing with updated partner guide (#52162) 2026-09-29 15:11:58 -05:00
session-execution.test.ts fix(server): return 404 when a location folder is missing (#52668) 2026-10-02 23:43:56 -05:00
session-generate.test.ts fix(core): drop session ID and order instructions for prompt-cache reuse (#51960) 2026-09-28 19:29:28 -05:00
session-instructions.test.ts fix(core): skip automatic copies of directly read instructions (#52382) 2026-10-01 13:59:02 -05: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 perf(core): keep unchanged messages in request shaping (#52784) 2026-10-02 22:12:21 +05:30
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): default provider header and chunk timeouts to five minutes (#49229) 2026-10-01 21:41:53 -05:00
session-move.test.ts fix(server): return 404 when a location folder is missing (#52668) 2026-10-02 23:43:56 -05:00
session-native-compaction.test.ts fix(core): honor compaction agent model for summaries (#53276) 2026-10-04 23:20:24 -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(server): return 404 when a location folder is missing (#52668) 2026-10-02 23:43:56 -05: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-retry.test.ts fix(core): default provider header and chunk timeouts to five minutes (#49229) 2026-10-01 21:41:53 -05:00
session-runner-tool-events.test.ts feat(core): explain why the provider blocked a response (#52518) 2026-10-01 11:23:40 -05:00
session-runner.test.ts fix(core): explain why the provider blocked a compaction (#52664) 2026-10-01 23:07:32 -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 fix(server): return 404 when a location folder is missing (#52668) 2026-10-02 23:43:56 -05: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(core): add namespaced session identity headers (#52368) 2026-09-30 15:14:20 -05: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): delete unused v1 permission and config errors (#52637) 2026-10-02 03:29:43 +00: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 fix(core): make the portable PowerShell scanner sound against real pwsh (#53404) 2026-10-05 14:07:15 -07: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 test(core): match Code Mode description after allSettled change (#52812) 2026-10-02 18:14:27 +00: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 refactor(core): name tool output files in ToolOutput (#52808) 2026-10-02 18:24:57 +00: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 feat(core): enable portable shell scanner on local and dev channels (#53479) 2026-10-05 22:13:16 -07: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): resolve reasoning variants for GitLab Duo models (#51082) 2026-10-05 21:12:37 -05:00
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 fix(app): restore Git initialization for non-Git projects (#51455) 2026-10-02 06:13:19 +00: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