cloudaxe-opencode/packages/opencode/test/tool
Aiden Cline 93cc5e8dff refactor(opencode): model truncation limits as Option
Replace the `{ enabled: boolean; maxLines: number; maxBytes: number }`
shape with `Option<{ maxLines: number; maxBytes: number }>` so the absence
of limits is represented by the type system instead of a boolean flag with
dead numeric fields.

- Truncate.limits() now returns Effect<Option<Limits>>.
- Truncate.output() short-circuits on None instead of checking .enabled.
- shell tool gates rolling buffer, disk spill, and tail truncation on
  Option.isSome(limits); behavior unchanged when truncation is enabled.
- ShellPrompt.render and helpers accept Option<Limits>; the truncation
  guidance line is omitted when None.
- Tests updated to assert Option.isSome / Option.isNone.
2026-05-24 23:06:06 -05:00
..
__snapshots__ feat: add experimental background subagents (#27084) 2026-05-14 22:10:15 +05:30
fixtures feat: update pricing schema for models to ensure more accurate cost tracking (#27184) 2026-05-12 20:44:06 -05:00
apply_patch.test.ts chore: generate 2026-05-12 16:46:35 +00:00
edit.test.ts test(tool): use Effect sleep in edit concurrency test (#27349) 2026-05-13 15:18:35 +00:00
external-directory.test.ts refactor(instance): remove legacy runtime fallback (#27757) 2026-05-15 23:05:44 +05:30
glob.test.ts refactor(repository): add cache service (#28184) 2026-05-18 21:25:38 +05:30
grep.test.ts refactor(repository): add cache service (#28184) 2026-05-18 21:25:38 +05:30
lsp.test.ts refactor(instance): remove legacy runtime fallback (#27757) 2026-05-15 23:05:44 +05:30
parameters.test.ts feat: add experimental background subagents (#27084) 2026-05-14 22:10:15 +05:30
question.test.ts test(question): wait on question events (#27124) 2026-05-14 13:23:47 -04:00
read.test.ts chore: drop dead imports across opencode/core/llm (#28720) 2026-05-21 17:03:12 -04:00
registry.test.ts chore: generate 2026-05-19 15:11:40 +00:00
repo_clone.test.ts refactor(repository): type cache failures (#28188) 2026-05-18 21:46:18 +05:30
repo_overview.test.ts refactor(tool): read repo overview directory from instance state (#27717) 2026-05-15 16:14:49 +05:30
shell.test.ts merge origin/dev into issue-13770-tool-output-docs 2026-05-23 21:23:36 -05:00
skill.test.ts fix(skill): type expected skill failures (#28885) 2026-05-22 23:18:52 +05:30
task.test.ts feat: add experimental background subagents (#27084) 2026-05-14 22:10:15 +05:30
task_status.test.ts feat: add experimental background subagents (#27084) 2026-05-14 22:10:15 +05:30
tool-define.test.ts refactor(question): tool-arg errors at the boundary, drop redundant inner decode (#28570) 2026-05-21 03:06:22 +00:00
truncation.test.ts refactor(opencode): model truncation limits as Option 2026-05-24 23:06:06 -05:00
webfetch.test.ts fix: use htmlrewriter2 instead of HTMLRewriter for node compat (#26309) 2026-05-13 03:28:08 +00:00
websearch.test.ts test: migrate websearch tests to effect runner (#27170) 2026-05-12 23:45:01 +00:00
write.test.ts chore: drop dead imports across opencode/core/llm (#28720) 2026-05-21 17:03:12 -04:00