session: tasks stuck in working on restart, stopped status mapped to failed, and reader handoff
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 68/100
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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
- Langage dominant
- Go
- Étoiles
- 115
- Forks
- 14
- Merge moyen
- 9 h 44 min
- PR mergées (30 j)
- 766
Préparer son environnement
Nous n'avons pas encore vérifié les fichiers d'installation de ce projet. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de Agent-Field/CodeAF
-
area:chat bug sev:papercut
Difficulté 2/5 1-3 heures Accessibilité débutants 86/100
Agent-Field/CodeAF#1592 ·
Les mainteneurs répondent en général sous 1 jour
-
area:headless bug sev:critical
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
Agent-Field/CodeAF#1566 · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
area:chat feature
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
Agent-Field/CodeAF#1510 ·
Les mainteneurs répondent en général sous 1 jour
-
area:tests bug
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
Agent-Field/CodeAF#1489 ·
Les mainteneurs répondent en général sous 1 jour
-
area:chat bug good first issue sev:papercut
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Agent-Field/CodeAF#1470 ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de Agent-Field/CodeAF
Issues similaires
-
bug needs-triage
Difficulté 2/5 1-3 heures Accessibilité débutants 86/100
DataDog/dd-trace-go#5469 ·
Les mainteneurs répondent en général sous 1 jour
-
bug tests
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
l3montree-dev/devguard#3101 ·
Les mainteneurs répondent en général sous 1 jour
-
area:*of bug
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
oapi-codegen/oapi-codegen#2593 ·
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 1/5 Moins d'une heure Accessibilité débutants 85/100
DaoCloud/DaoCloud-docs#7432 ·
Les mainteneurs répondent en général sous 1 jour