You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Don't auto-migrate or create experimental.quotaToast on config load anymore. The loader now prefers the plugin sidecar (opencode-quota/quota-toast.json) and only falls back to experimental.quotaToast when the sidecar is absent; normal runtime does not write or migrate legacy blocks. Added an explicit init option and CLI flag (--sync-legacy-config) and installer support (syncLegacyConfig) to write/sync the legacy experimental.quotaToast when requested. Refactored config loading (removed migration/pending-migration code paths), improved invalid-plugin JSON error reporting, and updated tests and README to reflect the new behavior. Also added small type/comment and utility changes used by the installer sync logic.
> OpenCode `>= 1.4.3` and Node.js `>= 18` are required.
30
30
31
-
The installer is append-only and preserves existing config values. It asks where to install, which quota UI to enable, whether providers should be auto-detected, which quota display style to use, how percentages should be labeled, and whether session input/output tokens should appear in quota displays.
31
+
The installer is append-only and preserves existing config values. It asks where to install, which quota UI to enable, whether providers should be auto-detected, which quota display style to use, how percentages should be labeled, and whether session input/output tokens should appear in quota displays. By default it writes quota settings to `opencode-quota/quota-toast.json` only; if you also need the legacy OpenCode `experimental.quotaToast` block, run `npx @slkiser/opencode-quota init --sync-legacy-config`.
32
32
33
33
After install:
34
34
@@ -67,7 +67,7 @@ If you also want the sidebar, add the same package to the `tui.json` or `tui.jso
67
67
}
68
68
```
69
69
70
-
Quota settings live in `opencode-quota/quota-toast.json` next to the OpenCode config file chosen by the installer (project or global). Existing `experimental.quotaToast` settings in `opencode.json` / `opencode.jsonc`still work and are copied into the plugin-owned file when possible; if both exist, `opencode-quota/quota-toast.json` wins. Quota settings do not live in `tui.json`.
70
+
Quota settings live in `opencode-quota/quota-toast.json` next to the OpenCode config file chosen by the installer (project or global). On load, OpenCode Quota reads that sidecar first and falls back to existing `experimental.quotaToast` settings in `opencode.json` / `opencode.jsonc`only when the sidecar is absent. Normal runtime/load does not create, re-add, or migrate `experimental.quotaToast`; use `init --sync-legacy-config` when you explicitly want the installer to also write/sync that legacy block. Quota settings do not live in `tui.json`.
0 commit comments