contextguru plugin: set keepalive.Record.Identity; context-guru v0.7.11 removes Record.Agent
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 1/5
- Geschätzter Aufwand
- Unter einer Stunde
- Anfängerfreundlichkeit
- 82/100
Rechercherichtung
Lies core/plugins/contextguru/keepalive.go, insbesondere recordFor, und prüfe die Änderung in context-guru v0.7.11, auf die rossoctl/context-guru#1506 verweist. Ersetze das entfernte Feld Record.Agent durch Identity: agent.Identify(pctx.Headers). Fertig ist die Arbeit, wenn Cortex mit v0.7.11 kompiliert und die Änderung zusammen mit #2154 in denselben PR passt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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
- Vorherrschende Sprache
- Go
- Sterne
- 31
- Forks
- 49
- Ø Merge
- 9 Std. 43 Min.
- Gemergte PRs (30 T.)
- 367
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus rossoctl/cortex
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 1 Tag
-
bug laptop
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 55/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 45/100
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in rossoctl/cortex
Ähnliche Issues
-
taskmanager: a failed v1alpha1 backup leaves the partial backup behindEvtl. vergeben @arshil42 hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 80/100
ether/etherpad-go#571 ·
Maintainer antworten meist innerhalb von 1 Tag
-
labeler: read a limit above math.MaxInt as math.MaxInt in nonNegative (CodeQL alerts #20 and #21)Offencost:approved factory:queued factory:tracking priority:p2 rank:12 ready-for-doing task:approved tokens:50k
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
sisaku-security/sisakulint#860 · 2 Kommentare ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100