Kiro icon indicating copy to clipboard operation
Kiro copied to clipboard

Context usage always shows 0% and crashes with "unexpected error" when context is full

Open shumtn opened this issue 9 months ago • 6 comments

Before opening, please confirm:

Operating System

win11 x64

Kiro Version

0.9.2

Bug Description

The context usage indicator in the chat panel always displays 0%, regardless of how many files have been read or how long the conversation is.

When the context window is actually full (after reading many files or having a long conversation), Kiro throws a generic error:

"An unexpected error occurred while processing your input."

There is no warning or indication that the context limit has been reached.

Steps to Reproduce

1、Open a chat session 2、Read a large number of source files (e.g., 30+ files across a module) 3、Continue the conversation with follow-up questions 4、Observe: context usage stays at 0% throughout 5、Eventually the agent responds with "An unexpected error occurred while processing your input" 6、Impact: Users cannot predict when to start a new session, leading to lost work and frustration.

Expected Behavior

Context usage percentage should accurately reflect actual token consumption When approaching the limit, show a warning (e.g., "Context is 90% full, consider starting a new session") When the limit is hit, show a clear error message like "Context window is full. Please start a new chat session." instead of a generic unexpected error

Conversation ID

ccb23b97-73d8-494e-9b23-ec6e204fc305 5f91bc56-ab4d-4ff5-beb8-a59b6f9f5a17 e570112e-b956-465e-bfe8-6253623d6963

Additional Context

No response

shumtn avatar Feb 06 '26 03:02 shumtn

Environment: Model: Claude Opus 4.6 (experimental preview) The issue specifically occurs with Claude Opus 4.6. Context usage always shows 0% and eventually crashes with "An unexpected error occurred" after reading many files in a single session.

Additional note: This may be related to the experimental nature of Claude Opus 4.6 — the context window size or token counting logic might not be properly integrated with Kiro's context usage indicator for this model.

shumtn avatar Feb 06 '26 03:02 shumtn

Hi @shumtn, Thanks for the detailed report and conversation IDs! We've logged this issue and are investigating the 0% context display and unclear error messaging, particularly with Claude Opus 4.6 (experimental).

Your suggestions for clearer warnings and error messages are great feedback. We'll update this issue as we learn more.

Appreciate your patience!

AnilMaktala avatar Feb 06 '26 14:02 AnilMaktala

+1 on this issue

g18z0n avatar Feb 06 '26 14:02 g18z0n

Kiro Doesn't work at all! Don't know why I am using it.

akashkguw avatar Feb 15 '26 21:02 akashkguw

@AnilMaktala So how long will we have to wait for this problem to be resolved?

evanproduct avatar Feb 16 '26 16:02 evanproduct

Closing this issue as it was reported against an older version of Kiro (v0.x or early v1.x) and has had no activity in several months.

Kiro has shipped significant improvements since these versions, including stability fixes, new features, and major changes across v1.0, v1.1, v2.x, and the current v2.23.x releases. The behavior described here may already be resolved.

If this is still affecting you on the latest version, please open a new issue at https://github.com/kirodotdev/Kiro/issues/new with your current version (kiro-cli --version or Help > About in the IDE), your OS, and steps to reproduce. The latest version is available at https://kiro.dev/downloads/ or via kiro-cli update.

Thank you for taking the time to report this.

AnilMaktala avatar Sep 24 '26 13:09 AnilMaktala