Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

session: tasks stuck in working on restart, stopped status mapped to failed, and reader handoff

オープン
#1,554 コメント 2 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
68/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
go
領域
backend, cli

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

area:session bug sev:serious
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
  1. Tasks hung in working state across restart: A task queued or waiting on machine capacity remains in working status in the database after codeaf engine --stop and restart, but is never re-admitted to the execution frontier.
  2. Stopped tasks mapped to failure: Cancelling a task via x or /stop sets the crew line to failed and outputs /redo stronger... instead of marking it cleanly as stopped.
  3. Chat reader subtask handoff failure: When an inline chat reader subtask fails to hand off, it prints ◆ reading for the chat · stopped and 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 as stopped and 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.go and internal/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

主要言語
Go
スター
115
フォーク
14
平均マージ
9時間 37分
マージ済み PR(30日)
755

環境構築

このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Agent-Field/CodeAF のほかの issue

Agent-Field/CodeAF の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。