plugins: http.request quota refusals bypass session.retry
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 18/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- typescript
- 領域
- devtools
調査の方向性
Start with the session hook wrapper in packages/plugin/src/promise/adapter.ts, where the callback is wrapped in Effect.promise, and check how a thrown NativeVaultQuotaPolicyError escapes it. The expected change is a supported way for a hook to return a local provider error so session.retry can fall back. Done means a quota refusal reaches session.retry and the turn continues on the fallback provider. The issue is a maintainer-level design question about the plugin API, so it is not a good first contribution.
索引モデルが issue の本文から書いたものです。
説明
Description
When the Claude OAuth pool is already out of quota, anthropic-auth throws NativeVaultQuotaPolicyError from http.request before sending the model request. OpenCode logs Failed to drain Session, records an unknown error, and never calls session.retry. I reproduced this twice in the main session and once in a subagent. Both had a working non-Anthropic fallback.
Failed to drain Session
NativeVaultQuotaPolicyError: No Claude account has room for this request (weekly limit or your quota floor).
OpenCode wraps the session hook callback in Effect.promise. The anthropic-auth diagnosis confirms that the plugin has no supported way to refuse the request locally as a provider error.
Expected: let the hook return a local error response without sending the request. Pass it through the normal provider error handling so session.retry can switch providers and continue the same turn.
Plugins
@cortexkit/opencode-anthropic-auth 2.16.2, oh-my-opencode-slim 3.0.7 (a052f07a).
OpenCode version
2.3.2
Steps to reproduce
- Configure the Anthropic OAuth pool and a non-Anthropic fallback.
- With all eligible Claude accounts already out of quota, send a new prompt using Claude.
- The turn stops without trying the fallback. The same happens when a subagent starts on Claude.
Operating System
Ubuntu 24.04.5 LTS, arm64.
Terminal
OpenCode TUI in tmux.
- 主要言語
- TypeScript
- スター
- 227k
- フォーク
- 30.7k
- 平均マージ
- 3時間 57分
- マージ済み PR(30日)
- 484
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
anomalyco/opencode のほかの issue
-
[Site] Active section detection should respect scroll-margin-top対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンarea/web reproduced type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
anomalyco/opencode#65384 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
area/cli type/feature version/v2
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
anomalyco/opencode#65379 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Shell tool: no upper bound on the timeout a model can ask for, so one call can hold a turn for hoursオープンarea/core platform/linux type/feature version/v2
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
anomalyco/opencode#65254 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
inference/go type/feature
難易度 1/5 1〜3時間 初心者へのやさしさ 72/100
anomalyco/opencode#65148 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
area/providers type/feature version/v2
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
anomalyco/opencode#64845 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
anomalyco/opencode の issue をすべて見る
似ている issue
-
[Provider] antigravity-acp catalog omits gemini-4-hydrogen and gemini-4-neon that agy acp offers対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンcatalog provider provider-compatibility
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
lidge-jun/opencodex#9037 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 62/100
slavakurilyak/awesome-ai-agents#1005 ·
-
kind/bug triage/unresolved
難易度 2/5 1〜3時間 初心者へのやさしさ 60/100
メンテナーはふだん 1 日以内に返信
-
effort:S P3 refactor
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
nightscout/nocturne#3735 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
wpilibsuite/systemcore-blocks-interface#641 ·
メンテナーはふだん 2 日以内に返信