chore: ACP SDK rejects usage_update notifications from claude-agent-acp
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 68/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- typescript
- 領域
- backend, testing-qa
調査の方向性
apps/workers/coder-acp-claude-code から始めて、依存関係の宣言と通知処理を調べ、次に claude-code.integration.test.ts を読んで記録された検証エラーを再現します。usage_update 通知によって非致命的な Error 処理の通知メッセージが生成されなくなり、統合テストが引き続き成功すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Original author: @cedricvidal
Summary
The Claude Code ACP worker (and its integration test) logs noisy Error handling notification messages for usage_update session notifications. The test still passes — these are non-fatal — but the errors clutter logs and may mask real issues.
Error
Error handling notification {
jsonrpc: '2.0',
method: 'session/update',
params: {
sessionId: '...',
update: { sessionUpdate: 'usage_update', used: 16690, size: 200000 }
}
} {
code: -32602,
message: 'Invalid params',
data: {
_errors: [
'Invalid input: expected object, received undefined',
...
]
}
}
Root Cause
The usage_update notification is a newer ACP protocol feature sent by claude-agent-acp@0.29.1. The pinned @agentclientprotocol/sdk@0.13.1 doesn't have a schema for this notification type, so its JSON-RPC validation layer rejects the shape before it reaches the sessionUpdate handler's default: break; case.
Affected Components
apps/workers/coder-acp-claude-code(production worker)- Integration test (
claude-code.integration.test.ts)
Fix Options
- Bump
@agentclientprotocol/sdkto a version that includes theusage_updateschema (preferred) - Suppress the error by adding a try/catch or custom notification handler at the SDK level (workaround)
Environment
@agentclientprotocol/claude-agent-acp:0.29.1@agentclientprotocol/sdk:0.13.1
- 主要言語
- TypeScript
- スター
- 4
- フォーク
- 1
- 平均マージ
- 5日 7時間
- マージ済み PR(30日)
- 10
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/scope のほかの issue
-
author: github-actions[bot] worker-update
難易度 1/5 1〜3時間 初心者へのやさしさ 85/100
-
author: github-actions[bot] worker-update
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
-
author: github-actions[bot] worker-update
難易度 1/5 1〜3時間 初心者へのやさしさ 78/100
-
author: JaGord documentation good first issue UI
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
author: cedricvidal bug portal
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
microsoft/scope の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
calcite-components needs triage refactor
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Esri/calcite-design-system#15203 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
danielmiessler/LifeOS#2218 ·