Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

tasks: a stopped task's commit is signed with the chat model, not the model that did the work

Offen Anfängerfreundlich
#1,768 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
78/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
go
Bereich
cli, testing

Rechercherichtung

Beginne mit internal/session/stoprun.go bei keptWork(..., a.signsGitWork()) und internal/session/beltfacts.go, wo signsGitWork das Konversationsmodell zurückgibt. Lies die Session-Tests zum Stoppen eines Laufs und füge einen deterministischen Fall mit unterschiedlichen Worker- und Konversationsmodellen hinzu. Fertig ist die Änderung, wenn der Trailer des beibehaltenen Commits nicht das Chat-Modell nennt; führe die relevanten Session-Tests aus.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

area:session bug sev:papercut

What happened

2026-10-05, dev@f81638787 (dev-20261005-f816387875e5), engine road. The chat model was ~deepseek/deepseek-v4-flash-latest and the task worker z-ai/glm-5.3-flash. Found in the v0.7.1 happy-path pass.

Stop a running /task (with x on its page, or /stop). The commit on its kept branch is signed with the chat model:

Assisted-by: CodeAF (deepseek-v4-flash-latest)

codeaf logs shows only z-ai/glm-5.3-flash worked that task, and the crew line says worker glm-5.3-flash. Tasks that finish and land carry a bare Assisted-by: CodeAF, so the same setting signs two ways depending on how the task ended.

Replication

Field. OPENROUTER_API_KEY. On a repository on a non-protected branch, run /task add a Levenshtein function with table tests. Stop it after about 20 s, then run git log -1 --format=%B task/<slug>. Cost is about $0.05.

Deterministic (no model). A session test that stops a run whose worker model differs from the agent's model, then reads the kept commit's trailer.

Where

keptWork(..., a.signsGitWork()) in internal/session/stoprun.go. signsGitWork in internal/session/beltfacts.go returns the conversation's model (a.Model()).

The fix

A stopped run's commit is signed the way a landed one is: by the model that did the work, or with the bare trailer when that is what the landing path writes. It is never signed with the chat model.

Acceptance

  • Unit: stopping a run whose worker is model A, in a conversation on model B, writes a trailer that does not name B.
Vorherrschende Sprache
Go
Sterne
115
Forks
14
Ø Merge
9 Std. 3 Min.
Gemergte PRs (30 T.)
514

Entwicklungsumgebung

Die Einrichtungsdateien dieses Projekts haben wir noch nicht geprüft. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus Agent-Field/CodeAF

Alle Issues in Agent-Field/CodeAF

Ähnliche Issues

Weitere Issues zu Go

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.