Skip to content

[Bug] Premature "Context limit exceeded unexpectedly" at low usage (29%) & Auto-continuation fails #4725

@VoTruongDanh

Description

@VoTruongDanh

Before opening, please confirm:

Operating System

Windows 11

Kiro Version

1.103.2

Bug Description

I am experiencing a critical issue with the latest version of Kiro. Normally, when the context limit is reached (usually around 80%+), Kiro automatically summarizes the conversation and starts a new chat session to continue the task.
However, in the current version, Kiro frequently stops working and throws the error: "Context limit exceeded unexpectedly. Please start a new session to continue."

Crucially, this happens even when the context usage is very low (e.g., 29% as seen in the screenshot), and it fails to automatically trigger the next session. Clicking to chat or continue simply repeats the error, blocking progress.

Steps to Reproduce

  1. Start a coding task in the latest version of Kiro.
  2. Allow the session to run for a while (but nowhere near the full context limit).
  3. Observe that Kiro stops with the error: "Context limit exceeded unexpectedly. Please start a new session to continue."
  4. Attempt to send a message to continue.

Actual Behavior: The agent stops completely at low context usage (e.g., ~29%). It does not automatically create a new chat to continue the workflow. The user is forced to manually start a new session, losing the immediate flow.

Expected Behavior

The agent should utilize the context up to a higher threshold (e.g., >80%) and then automatically handle the transition to a new chat/session without throwing an "unexpected" error.

Screenshots: Attached screenshots showing context usage at 29% and the error message.

Environment:

Version: Latest version

Conversation ID

cbf603d3-c5b7-4aa5-ba0d-556191e0c0b7

Additional Context

Image Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions