cloudaxe-opencode/packages/opencode/test/cli/tui
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
..
editor-context-zed.test.ts fix(tui): scope Zed editor context to containing workspaces (#25211) 2026-04-30 22:33:39 -04:00
editor-context.test.tsx fix(core): better state handling of editor context (#25911) 2026-05-05 15:53:05 -04:00
plugin-add.test.ts introduce opentui keymap as sole key/cmd engine (#26053) 2026-05-07 20:35:31 +02:00
plugin-install.test.ts introduce opentui keymap as sole key/cmd engine (#26053) 2026-05-07 20:35:31 +02:00
plugin-lifecycle.test.ts CLI perf: reduce deps (#22652) 2026-04-16 02:03:03 -04:00
plugin-loader-entrypoint.test.ts introduce opentui keymap as sole key/cmd engine (#26053) 2026-05-07 20:35:31 +02:00
plugin-loader-pure.test.ts introduce opentui keymap as sole key/cmd engine (#26053) 2026-05-07 20:35:31 +02:00
plugin-loader.test.ts fix: preserve full OpenCode provider cost shape in auth.loader 2026-05-09 15:28:13 -04:00
plugin-toggle.test.ts flatten to keybind compatible config (#26421) 2026-05-09 01:29:13 +02:00
revert-diff.test.ts fix: prefer real undo filenames over /dev/null (#23006) 2026-04-16 22:25:43 -04:00
slot-replace.test.tsx upgrade opentui to 0.1.94 (#20357) 2026-03-31 23:54:13 +02:00
theme-store.test.ts feat: add oxlint with correctness defaults (#22682) 2026-04-15 20:45:19 -04:00
thread.test.ts Isolate TUI thread cwd resolution test (#25147) 2026-04-30 15:10:30 -04:00
transcript.test.ts fix: show model display name in message footer and transcript (#20539) 2026-04-02 00:17:38 +00:00
use-event.test.tsx Refactor v2 session events as schemas (#24512) 2026-05-02 22:09:48 -04:00