Kiro icon indicating copy to clipboard operation
Kiro copied to clipboard

Task Status - Kiro's internal state mismatches tasks.md

Open NeilPitman opened this issue 6 months ago • 6 comments

Before opening, please confirm:

Operating System

win32

Kiro Version

0.12.224

Bug Description

can you describe what's happening between what I see and what you see? I want to make an issue report,so talk like a tech at Kiro would read.

Issue Report: Task Status Desynchronization Between Editor and Task System

Summary

The editor displays task checkbox states that do not match the task system's internal state tracking. Specifically, tasks marked [x] (complete) in the markdown file are reported as "Not Started" by task_list queries.

What You See (Editor)

  • Tasks 1–10: [x] (checked, visually complete)
  • Tasks 11–14: [ ] (unchecked, visually not started)
  • Task 15: [x] (checked, visually complete)

What I See (Task System)

When querying task_list on the same file:

  • Total: 15 tasks
  • Completed: 11
  • Remaining: 4
  • Ready: 0

When querying specific tasks:

  • Tasks 6, 7, 8: Reported as status: "Not Started" despite being marked [x] in the file
  • Tasks 11–14: Reported as status: "Not Started" with dependencies on 6, 7, 8
  • Task 15: Reported as status: "completed" (matches editor)

Root Cause Analysis

Hypothesis: The task system parses checkbox state ([x] vs [ ]) from the markdown, but the internal status field (**Status**: Not Started | In Progress | Complete) is the authoritative source. The two are out of sync.

Evidence:

  1. Task 15 shows [x] in editor AND status: "completed" in system → match
  2. Tasks 6, 7, 8 show [x] in editor BUT status: "Not Started" in system → mismatch
  3. The task_list summary reports 11 completed, which aligns with the count of [x] checkboxes (1–10, 15), not with the internal status fields

Likely Mechanism:

  • The checkbox state is parsed from markdown syntax ([x] vs [ ])
  • The **Status**: ... field is parsed separately
  • When they disagree, the system may be using the **Status** field as authoritative for queries, but the checkbox for display
  • OR the checkbox parser is working, but the status field wasn't updated when checkboxes were marked

Impact

  • Wave-based scheduling is blocked: tasks 11–14 show as "not ready" even though their dependencies (6, 7, 8) are marked complete
  • Orchestrator cannot proceed to the next wave because the system doesn't recognize task 10 as complete (it shows [x] but status: "Not Started")
  • Manual task status updates via task_update work correctly (Task 15 was updated and now shows as complete), but bulk checkbox updates in the markdown don't sync

Reproduction Steps

  1. Open tasks.md in editor
  2. Mark a task as complete: change - [ ] to - [x]
  3. Query task_list on that task
  4. Observe: checkbox shows [x], but task_list reports status: "Not Started"

Suggested Fix

The task system should either:

  • Option A: Parse checkbox state as the source of truth and ignore the **Status** field, OR
  • Option B: Require that checkbox state and **Status** field stay in sync, with validation that flags mismatches, OR
  • Option C: Provide a sync mechanism that updates the **Status** field when checkboxes are manually edited in the editor

Workaround (Current)

Use task_update to explicitly set status rather than relying on checkbox edits to propagate. This is what worked for Task 15.

Version: 0.12.224 (user setup) VSCode Version: 1.107.1 Commit: 0170b9bdc3ab6f4e460d3089084d774a6ebd6dbf Date: 2026-05-20T22:03:21.816Z Electron: 39.6.0 Chromium: 142.0.7444.265 Node.js: 22.22.0 V8: 14.2.231.22-electron.0 OS: Windows_NT x64 10.0.19045

Steps to Reproduce

  1. Open tasks.md in editor
  2. Mark a task as complete: change - [ ] to - [x]
  3. Query task_list on that task
  4. Observe: checkbox shows [x], but task_list reports status: "Not Started"

Expected Behavior

Kiro's Orchestrator should have the same view as the tasks.md. i.e. what is checked as complete in tasks.md should be what the orchestrator sees and acts on.

I also see that, since v0.12.155, especially with the multi-sub-agent completing co-parallel tasks, that the tasks are declared completed in the chat log, but remain uncompleted in the tasks.md. Sometimes this sorts out after the list of tasks completes, but often, it means if there is a hiccup, and the flow stops, or the context fills, summarizes and starts a new context, the same task is restarted anew, wasting time and tokens. I further see the flow either not starting when "run all tasks" is selected, or the orchestrator just stops in the middle of "run all tasks"

This is really quite annoying, and degrades productivity and token efficency.

Conversation ID

f5519632-e4d1-484f-9ec9-ce9a60ab933a

Additional Context

Image

NeilPitman avatar May 22 '26 21:05 NeilPitman

🤖 Potential Duplicate Detected

This issue appears to be similar to:

What happens next?

  • ⏰ This issue will be automatically closed in 3 days
  • 🏷️ If this is not a duplicate, you can prevent automatic closure by adding a comment or reacting with 👎 to this message.
  • 💬 Comment on the original issue if you have additional information

Why is this marked as duplicate? Both issues report problems with task execution and parallel sub-agents, specifically mentioning task status synchronization issues and problems with task completion tracking in the orchestrator system

github-actions[bot] avatar May 22 '26 21:05 github-actions[bot]

These other issues are different, although they may have related.

NeilPitman avatar May 22 '26 21:05 NeilPitman

Thank you for your feedback! 🙏

The duplicate label has been removed and this issue has been sent back for maintainer review.

A maintainer will review this issue shortly.

github-actions[bot] avatar May 22 '26 21:05 github-actions[bot]

I started a "run all tasks" to open a new context, and it's still hosed. Note the mismatched understanding of "complete". Going to try turning-it-off-and-on-again

Image

NeilPitman avatar May 22 '26 21:05 NeilPitman

Thanks for the detailed write-up — the checkbox-vs-Status-field split and the parallel-dispatch persistence gap are exactly the right framing. The task orchestration engine was substantially reworked across the 1.0.x releases, including how task state is persisted during parallel sub-agent execution. Could you retest on the latest IDE (1.0.52) and let us know if the desync and re-run behavior still reproduce? To update: download from kiro.dev. If it persists, a fresh conversation ID from 1.0.52 plus the tasks.md snapshot would help us pinpoint where the write is dropped.

AnilMaktala avatar Jun 30 '26 15:06 AnilMaktala

This issue has been automatically closed due to inactivity. It has been 7 days since we requested additional information.

If you still need help with this issue, please feel free to reopen it or create a new issue with the requested details.

github-actions[bot] avatar Jul 08 '26 00:07 github-actions[bot]