Repository navigation
Open
Labels
bugSomething isn't working
Description
In one sentence, what do you see?
After I quit OpenCode, the terminal shows an [opencode-quota] failed to load quota: ... ECONNRESET warning.
Which OpenCode do you use?
OpenCode 2
Your OpenCode version
2.3.2
Your plugin version
6.3.0
What went wrong?
Expected: OpenCode quits with no output from the plugin.
Instead, this line appears after the TUI closes:
[opencode-quota] failed to load quota: Transport: ECONNRESET: The socket connection was closed unexpectedly. For more information, pass verbose: true in the second argument to fetch()
Quota shows normally while OpenCode runs.
🤖: It looks like a quota request is still running when the server shuts down. The plugin already ignores the result of that request after quitting, but still prints its error. Happy to share details on where if useful.
How can we make it happen?
- Run OpenCode 2.3.2 with opencode-quota 6.3.0 and the sidebar or status line visible.
- Quit OpenCode (likely right after a turn ends or near the one-minute refresh).
- The warning above appears in the terminal.
Paste what /quota_status shows (optional)
# Quota Status (opencode-quota v6.3.0)
environment:
- generated_at: 2026-11-23T08:36:30.154Z
- origin: TUI Plugin tab
- opencode: 2.3.2 (latest)
- os: linux x64
- runtime: bun 1.4.4
settings:
- settings_file: ~/.config/opencode/opencode-quota/settings.jsonc (exists)
- not_read: ~/.config/opencode/opencode-quota/quota-toast.jsonc
- providers.off: copilot | openrouter | cursor | alibaba-coding-plan | alibaba-token-plan | google-gemini-cli | google-agy | zai | zhipu | minimax-coding-plan | minimax-china-coding-plan | kimi-code-plan-global | kimi-code-plan-cn | deepseek | xai | xiaomi | opencode-go | opencode | ollama-cloud | custom
- changed_from_defaults: 3 settings
- toast.show: false
- words.percent: used
- words.sessionTokens: tree
- current_model: anthropic/claude-opus-5-5
- workspace_root: (custom path)
providers:
- anthropic: enabled available matchesCurrentModel=yes
- copilot: disabled unavailable matchesCurrentModel=no
- openai: enabled available matchesCurrentModel=no
- anthropic-api: enabled unavailable matchesCurrentModel=no
- openrouter: disabled unavailable matchesCurrentModel=no
- cursor: disabled unavailable matchesCurrentModel=no
- commandcode: enabled unavailable matchesCurrentModel=no
- alibaba-coding-plan: disabled unavailable matchesCurrentModel=no
- alibaba-token-plan: disabled unavailable matchesCurrentModel=no
- google-gemini-cli: disabled unavailable matchesCurrentModel=no
- google-agy: disabled unavailable matchesCurrentModel=no
- zai: disabled unavailable matchesCurrentModel=no
- zhipu: disabled unavailable matchesCurrentModel=no
- minimax-coding-plan: disabled unavailable matchesCurrentModel=no
- minimax-china-coding-plan: disabled unavailable matchesCurrentModel=no
- kimi-code-plan-global: disabled unavailable matchesCurrentModel=no
- kimi-code-plan-cn: disabled unavailable matchesCurrentModel=no
- deepseek: disabled unavailable matchesCurrentModel=no
- xai: disabled unavailable matchesCurrentModel=no
- xiaomi: disabled unavailable matchesCurrentModel=no
- opencode-go: disabled unavailable matchesCurrentModel=no
- opencode: disabled unavailable matchesCurrentModel=no
- ollama-cloud: disabled unavailable matchesCurrentModel=no
- quota-providers: disabled unavailable matchesCurrentModel=no
notices:
- source: bundled_only
- network: false
- active: 0
- future: 0
- expired: 0
paths:
- opencode_dirs: data=~/.local/share/opencode config=~/.config/opencode cache=~/.cache/opencode state=~/.local/state/opencode
- opencode.db: path=~/.local/share/opencode/opencode.db present=true sessions=79 messages=7,543 assistant_messages=6,208 (session and token history)
credential_source:
- source: opencode-integration-api
- list_error: (none)
- failures: (none)
anthropic:
- state: ok
- checked_at: 2026-11-23T08:36:31.117Z
- rows: 2
- anthropic.five_hour: window=five_hour, 98% left, resets 2026-11-23T13:20:00.028Z
- anthropic.weekly: window=week, 100% left, resets 2026-11-30T02:00:00.028Z
- cli_installed: true
- cli_version: 2.1.322
- binary_path: claude (PATH)
- auth_status: authenticated
- quota_supported: true
- quota_source: claude-credentials-oauth-api
- oauth_credential_source: claude-credentials
- checked_commands: claude --version | claude auth status --json
copilot:
- state: disabled
openai:
- state: ok
- checked_at: 2026-11-23T08:36:31.327Z
- rows: 2
- openai.five_hour (account 1): window=five_hour, 100% left, resets 2026-11-23T13:36:31.000Z
- openai.weekly (account 1): window=week, 98% left, resets 2026-11-28T17:15:35.000Z
- auth_configured: true
- auth_source: openai
- token_status: valid
- token_expires_at: 2026-12-01T09:51:37.672Z
- 1 other detail not shown
anthropic-api:
- state: unavailable
- rows: 0
- opencode_provider: yes found=anthropic
openrouter:
- state: disabled
cursor:
- state: disabled
commandcode:
- state: unavailable
- rows: 0
- opencode_provider: no looked_for=commandcode
- auth_state: none
- api_key_configured: false
- api_key_source: (none)
- api_key_checked_paths: ~/.config/opencode/opencode.jsonc
- api_key_credential_database_paths: ~/.local/share/opencode/opencode.db
alibaba-coding-plan:
- state: disabled
alibaba-token-plan:
- state: disabled
google-gemini-cli:
- state: disabled
google-agy:
- state: disabled
zai:
- state: disabled
zhipu:
- state: disabled
minimax-coding-plan:
- state: disabled
minimax-china-coding-plan:
- state: disabled
kimi-code-plan-global:
- state: disabled
kimi-code-plan-cn:
- state: disabled
deepseek:
- state: disabled
xai:
- state: disabled
xiaomi:
- state: disabled
opencode-go:
- state: disabled
opencode:
- state: disabled
ollama-cloud:
- state: disabled
quota-providers:
- state: disabled
pricing_snapshot:
- pricing: source=downloaded generated_at=2026-11-23T08:36:30.154Z units=USD per 1M tokens
- providers.pricing.source: configured=auto active=downloaded
- runtime_paths: snapshot=~/.cache/opencode/opencode-quota/modelsdev-pricing.runtime.min.json refresh_state=~/.cache/opencode/opencode-quota/modelsdev-pricing.refresh-state.json
- staleness: age_ms=1,174 max_age_ms=604,800,000 stale=false
- providers.pricing.autoRefreshDays: 7
- refresh: last_attempt_at=2026-11-23T08:36:30.154Z last_success_at=2026-11-23T08:36:30.154Z last_failure_at=2026-11-21T19:24:14.813Z last_result=success
- price_list_providers: 6
- unpriced_30d: 0.5% of 919M tokens
- … (3 more unpriced models)Metadata
Metadata
Assignees
Labels
bugSomething isn't working
Activity