Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta Adatta ai principianti
#1,768 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
78/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
go
Ambito
cli, testing

Direzione di ricerca

Inizia da internal/session/stoprun.go, in corrispondenza di keptWork(..., a.signsGitWork()), e da internal/session/beltfacts.go, dove signsGitWork restituisce il modello di conversazione. Leggi i test di sessione per l’arresto di un’esecuzione e aggiungi un caso deterministico con modelli del worker e della conversazione diversi. Il lavoro è completato quando il trailer del commit mantenuto non nomina il modello di chat; esegui i test di sessione pertinenti.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.
Lingua principale
Go
Stelle
115
Fork
14
Merge medio
9h 3m
PR unite (30g)
514

Preparare l'ambiente

Non abbiamo ancora controllato i file di configurazione di questo progetto. Parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Agent-Field/CodeAF

Tutte le issue di Agent-Field/CodeAF

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.