contextguru plugin: set keepalive.Record.Identity; context-guru v0.7.11 removes Record.Agent
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
core/plugins/contextguru/keepalive.go、特に recordFor を読み、rossoctl/context-guru#1506 で参照されている context-guru v0.7.11 の変更を確認してください。削除された Record.Agent フィールドを Identity: agent.Identify(pctx.Headers) に置き換えてください。Cortex が v0.7.11 でコンパイルでき、変更が #2154 と同じ PR に組み込めれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Summary
context-guru v0.7.11 removes keepalive.Record.Agent. The contextguru plugin sets that field, so Cortex no longer compiles once it embeds v0.7.11. The fix is one line. context-guru v0.7.10 is safe to embed with no change.
What breaks
core/plugins/contextguru/keepalive.go,recordFor, setsAgent: pctx.Headers.Get("User-Agent")inkeepalive.Record.- rossoctl/context-guru#1506 moved client rules into the
agentpackages and removedRecord.Agent. The keeper now reads the client fromRecord.Identity.
Fix
- Set
Identity: agent.Identify(pctx.Headers)in place ofAgent: .... - Library code takes
agent.Clientand no longer reads User-Agent itself (context-guruCLAUDE.md, Client-specific code). - #2154 changes the same
recordForfunction (the open-task counts), so both fit in one PR.
Other changes when Cortex moves to v0.7.11
- The accountant moves to v0.11.x. Cortex's
accountant.Withhold(p.result, before)(core/accounting/host.go) andObservation.TokensBefore(core/accounting/metrics.go) still compile there. Both are deprecated: see #2159. They are removed only in a later accountant minor release (rossoctl/context-guru#1523), after #2159 merges. - No other Cortex code uses an API that v0.7.11 removes.
waitcause.PromptOfanddash.AgentForare also removed, and Cortex does not call them.tooldefer.Flow.Pricesand theCanKeepAlivenames still exist as deprecated aliases.
Refs #2154 #2159
- 主要言語
- Go
- スター
- 31
- フォーク
- 49
- 平均マージ
- 9時間 43分
- マージ済み PR(30日)
- 367
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
rossoctl/cortex のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
bug laptop
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
メンテナーはふだん 1 日以内に返信
rossoctl/cortex の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
apache/dubbo-admin#1659 ·
メンテナーはふだん 8 日以内に返信
-
taskmanager: a failed v1alpha1 backup leaves the partial backup behind対応中かも @arshil42 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
modelcontextprotocol/go-sdk#1557 ·
メンテナーはふだん 1 日以内に返信