cloudaxe-opencode/packages/opencode/test/cli
Developer 47d6fc7382 fix: preserve full OpenCode provider cost shape in auth.loader
The normalizeProviderModelCosts function was only setting { input: 0, output: 0 }
which doesn't match the full OpenCode provider cost shape that includes cache fields.

This fix:
- Preserves existing cost fields (input, output, cache.read, cache.write) if valid
- Adds missing cache: { read: 0, write: 0 } structure when not present
- Validates provider and model objects before modification to avoid poisoning
  invalid provider metadata
- Updates ProviderModel type to include optional cache field

Fixes provider cost normalization to maintain cache field compatibility.
2026-05-09 15:28:13 -04:00
..
cmd/tui feat(core): allow external workspace creation (#26212) 2026-05-08 11:09:12 -04:00
run flatten to keybind compatible config (#26421) 2026-05-09 01:29:13 +02:00
tui fix: preserve full OpenCode provider cost shape in auth.loader 2026-05-09 15:28:13 -04:00
account.test.ts chore: generate 2026-03-23 17:12:55 +00:00
effect-cmd-instance-als.test.ts fix(cli): bridge Instance.current ALS in effectCmd handlers (regression from #25522) (#25546) 2026-05-03 04:24:33 +00:00
error.test.ts fix(opencode): improve console login transport errors (#21350) 2026-04-07 18:31:53 +00:00
github-action.test.ts feat(id): brand PartID through Drizzle and Zod schemas (#16966) 2026-03-11 23:40:50 +00:00
github-remote.test.ts feat(core): add scout agent for repo research (#24149) 2026-05-08 20:20:08 +00:00
import.test.ts chore: generate 2026-03-10 16:56:30 +00:00
plugin-auth-picker.test.ts core: make account login upgrades safe while adding multi-account workspace auth (#15487) 2026-03-10 12:53:47 -04:00