session: tasks stuck in working on restart, stopped status mapped to failed, and reader handoff
Mantenedores costumam responder em até 1 dia
@santoshkumarradha já está trabalhando nisso.
Desde 27/9/2026.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 68/100
Direção de pesquisa
Start with internal/session/task_frontier.go and internal/session/cancel.go to trace startup reconciliation and cancellation status mapping, then read internal/session/read_handoff.go for the reader fallback path. Reproduce restart, cancellation, and failed handoff cases before changing behavior. Done means unfinished tasks are re-queued, explicit cancellation records stopped without retry suggestions, and reader fallback does not leave stopped cards in chat.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Summary
Task frontier state recovery leaves queued tasks hung after restart, stopped tasks are improperly reported as failures, and chat reader subtasks do not fall back cleanly.
Items & Observed Behavior
- Tasks hung in working state across restart: A task queued or waiting on machine capacity remains in
workingstatus in the database aftercodeaf engine --stopand restart, but is never re-admitted to the execution frontier. - Stopped tasks mapped to failure: Cancelling a task via
xor/stopsets the crew line tofailedand outputs/redo stronger...instead of marking it cleanly asstopped. - Chat reader subtask handoff failure: When an inline chat reader subtask fails to hand off, it prints
◆ reading for the chat · stoppedand leaves a stopped card in the chat before running inline.
Expected Behavior
- Engine startup must reconcile persisted task state and re-queue uncompleted tasks onto the frontier.
- Explicit cancellation (
x,/stop) must record status asstoppedand omit retry suggestions. - Reader subtask handoff failures should fall back to inline reading without polluting the chat stream with stopped task cards.
Root Cause / Location
internal/session/cancel.goandinternal/session/task_frontier.go: Startup frontier reconciliation and cancellation status mapping.internal/session/read_handoff.go: Silent fallback handling when subtask delegation cannot be completed.
—
Drafted with CodeAF · reviewed and owned by the author
- Linguagem predominante
- Go
- Estrelas
- 115
- Forks
- 14
- Merge médio
- 9h 44min
- PRs com merge (30d)
- 775
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
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de Agent-Field/CodeAF
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
Agent-Field/CodeAF#1679 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
Agent-Field/CodeAF#1678 ·
Mantenedores costumam responder em até 1 dia
-
area:chat bug sev:papercut
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 86/100
Agent-Field/CodeAF#1592 ·
Mantenedores costumam responder em até 1 dia
-
codeaf do "" runs a paid job with an empty briefTalvez já em andamento @santoshkumarradha assumiu há 3 dias. Abertaarea:headless bug sev:critical
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
Agent-Field/CodeAF#1566 · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
area:chat feature
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
Agent-Field/CodeAF#1510 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de Agent-Field/CodeAF
Issues semelhantes
-
[Docs] - Document minimum Terraform/OpenTofu version (>= 1.11) required by write-only argumentsAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 92/100
MagaluCloud/terraform-provider-mgc#323 ·
Mantenedores costumam responder em até 11 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
rossoctl/context-guru#366 ·
Mantenedores costumam responder em até 1 dia
-
stage-fail
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
siyuan-note/bazaar#2293 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
piraeusdatastore/piraeus-operator#1070 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
Mantenedores costumam responder em até 1 dia