Kiro icon indicating copy to clipboard operation
Kiro copied to clipboard

Run all Tasks: task-management tools (task_list/task_get/taskUpdate) unavailable from the start when model is set to Auto

Open kunitaya opened this issue 2 months ago • 2 comments

Summary

When the AI model is set to Auto, clicking Run all Tasks on a Spec's tasks.md starts the task-execution orchestrator without access to the task-management tools (task_list / task_get / taskUpdate / task_update). These tools are reported as "not available" by the orchestrator — not intermittently degrading mid-session, but absent from the very start of the run. Switching the model from Auto to an explicitly selected model (Claude Sonnet, High reasoning) and re-running Run all Tasks resolves the issue — the task tools become available again, with no other change (same Kiro version, same workspace, same Spec state).

Environment

  • Kiro Version: 1.0.437 (user setup)
  • Commit: 1.109.5
  • Date/build hash: 5349479558af37fecbfcdb58c199ee59d86d4dd3
  • Electron: 2026-09-01T20:29:34.876Z, ElectronBuildId 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.26200 (Kiro IDE running natively on Windows; the affected workspace/repository is accessed via a WSL2 Ubuntu working directory)

Steps to reproduce

  1. Open a workspace with an authorized Spec (tasks.md with its implementation-authorization gate satisfied).
  2. Set the AI model selector to Auto.
  3. Click Run all Tasks.
  4. Observe the orchestrator report: task_list and task_get are not in its available tool schema at all, and taskUpdate / task_update return Tool "task_update" is not available. / Tool "taskUpdate" is not available..
  5. Without changing anything else, switch the model selector from Auto to an explicitly selected model (Claude Sonnet, High reasoning) and click Run all Tasks again on the same Spec.
  6. Observe that the task-management tools are now available and the orchestrator proceeds normally (in_progress → dispatch → completed transitions work).

Expected behavior

Run all Tasks should have access to the task-management tools (state transitions, DAG wave progression, checkbox/status updates in tasks.md) regardless of which model — Auto or an explicitly selected one — is driving the orchestrator.

Actual behavior

Under Auto, the entire task-management tool group is absent from the orchestrator's tool schema from the start of the run (not merely permission-denied, and not a mid-session degradation — the tools are simply not offered). Implementation work could still be delegated via sub-agent dispatch, but task state transitions, wave progression, and tasks.md checkbox updates could not be recorded through the normal mechanism.

Workaround found (single-variable change, reproduced the fix)

Switching the model selector from Auto to an explicitly selected model (Claude Sonnet, High reasoning) and re-running Run all Tasks, with no other change (same Kiro version, same workspace, same Spec state), restored access to the task-management tools and the orchestrator proceeded normally.

Why this looks distinct from existing reports

I searched for duplicates first and found several related reports, but each describes tool availability degrading partway through a long-running session (context compaction, many completed tasks, an aborted sub-agent), whereas this report is about the tools being absent from the very start of a fresh Run all Tasks invocation, with the model selection (Auto vs. explicit) as the single reproducible variable:

  • #9660 — orchestrator loses track of in-flight subagents after context compaction; task tools intermittently unavailable (closed)
  • #9031 — task tools intermittently unavailable during a session (open, pending-maintainer-response)
  • #10521 — file-write and task tools become unavailable after ~25+ completed tasks and an aborted sub-agent (closed)
  • #10661 — tools died progressively through a long session (closed, duplicate)

None of these mention the model selector (Auto vs. an explicitly chosen model) as a reproducible trigger, and none describe the tools being unavailable from the first call of a fresh run. If a maintainer determines this is the same underlying root cause as one of the above, feel free to merge/close accordingly — this report is filed separately because the reproduction path (Auto model selection, first invocation, single-variable fix) did not match any existing report.

Additional notes

  • This is not a permissions/config issue on the reporter's side: no .kiro/agents/ custom agent definitions exist in this workspace, the parent workspace, or ~/.kiro/agents/ (same user account, confirmed both before and after the workaround) — the task-execution orchestrator and its tools appear to be Kiro built-ins, not something user-configured.
  • The failure mode was consistently "not available" (tool absent from schema), not a connection/timeout error, which points away from a transient network issue and toward the Auto model path specifically not wiring up these tools for the orchestrator.

kunitaya avatar Sep 11 '26 02:09 kunitaya

Thanks for filing this detailed report! 🙌 The issue with task-management tools not being available when the model selector is set to Auto — but working fine with an explicitly chosen model — is a really helpful find, and the clear repro steps make it much easier to investigate. A maintainer will take a look at this shortly. We appreciate you taking the time to dig into this and document it so thoroughly!

github-actions[bot] avatar Sep 11 '26 02:09 github-actions[bot]

Thanks for the thorough report and for ruling out duplicates before filing. The single-variable reproduction (Auto vs. explicit model, same workspace and Spec state) is a strong signal. This might be related to how the spec task orchestrator's tool set is constructed when the model is set to Auto — the Auto path may not correctly signal the spec-task context needed to include the task-management tools. Marking this as a bug to investigate further. We're tracking this for a fix.

AnilMaktala avatar Sep 14 '26 19:09 AnilMaktala