Kiro icon indicating copy to clipboard operation
Kiro copied to clipboard

TODO list state from previous sessions bleeds into new chat conversations

Open kokayicobb opened this issue 8 months ago • 4 comments

Bug: TODO list state from previous sessions bleeds into new conversations

Description

When starting a new kiro-cli chat session, the TODO list from a previous session (potentially from a completely different agent or conversation) gets loaded and injected as context. This causes the AI to receive stale task context it never worked on, leading to confused responses and wasted tokens.

Steps to Reproduce

  1. Start a kiro-cli chat session and create a TODO list for task A (e.g. investigating a sidebar bug)
  2. End that session
  3. Start a new kiro-cli chat session for a completely different task B (e.g. fixing deploy errors)
  4. The TODO list from session 1 (task A) appears in the context of session 2

Expected Behavior

A new chat session should start with a clean TODO list state. Previous session TODO lists should not be injected as context unless explicitly loaded by the user.

Actual Behavior

The TODO list from the previous session is automatically loaded and injected as a CONTEXT ENTRY at the top of every message. The AI then references tasks, context, and details from the old session that have nothing to do with the current conversation.

In my case, I started a session to fix TypeScript deploy errors, but the AI received a TODO list about "investigating sidebar visibility" and "planning opencode orchestration" from a prior session — topics I never mentioned.

Impact

  • Context pollution: The AI wastes its context window on irrelevant task history
  • Confused responses: The AI references work from other sessions as if it happened in the current one
  • Token waste: Stale context entries consume tokens on every message

Suggested Fix

  • Scope TODO lists to the session that created them
  • Don't auto-load TODO lists from previous sessions into new conversations
  • Or at minimum, provide a way to clear/dismiss inherited TODO lists (e.g. /todo clear)

Environment

  • kiro-cli (latest as of 2026-03-08)
  • macOS

kokayicobb avatar Mar 09 '26 02:03 kokayicobb

🤖 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 describe stale data from previous sessions bleeding into new sessions - one with phantom steering files from workspace index, the other with TODO lists from previous chat sessions. Same core problem of session state persistence causing context pollution.

github-actions[bot] avatar Mar 09 '26 02:03 github-actions[bot]

Thank you for your feedback! 🙏

The 👎 reaction has been noted. 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 Mar 09 '26 02:03 github-actions[bot]

yes, this is really annoying

NeilPitman avatar May 22 '26 21:05 NeilPitman

We're doing a periodic backlog review and noticed this issue has been inactive for several months. Kiro has shipped a lot of changes since this was filed — we're now on IDE 1.0.293 and CLI 2.18.0 — and without any community uptake, we can't confidently prioritize it.

Closing to keep the backlog focused, but not as a dismissal. If you're still seeing this or others share the same experience, a new issue with your current version and any updated details would help us pick it back up. Issues with 👍 reactions from the community rise to the top fastest.

AnilMaktala avatar Aug 16 '26 16:08 AnilMaktala