Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

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

Aberta Para iniciantes
#1,768 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
2/5
Tempo estimado
1-3 horas
Facilidade para iniciantes
78/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
go
Domínio
cli, testing

Direção de pesquisa

Comece por internal/session/stoprun.go, em keptWork(..., a.signsGitWork()), e por internal/session/beltfacts.go, onde signsGitWork retorna o modelo de conversa. Leia os testes de sessão para interromper uma execução e adicione um caso determinístico com modelos de worker e de conversa diferentes. O trabalho estará concluído quando o trailer do commit mantido não mencionar o modelo de chat; execute os testes de sessão relevantes.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.
Linguagem predominante
Go
Estrelas
115
Forks
14
Merge médio
9h 51min
PRs com merge (30d)
525

Preparar o ambiente

Ainda não verificamos os arquivos de configuração deste projeto. Comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de Agent-Field/CodeAF

Todas as issues de Agent-Field/CodeAF

Issues semelhantes

Mais issues de Go

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.