Kiro icon indicating copy to clipboard operation
Kiro copied to clipboard

Context limit exceeded unexpectedly. Please start a new session to continue.

Open priestd opened this issue 1 year ago • 58 comments

Before opening, please confirm:

Operating System

win32

Kiro Version

0.7.0

Bug Description

Any entered prompt results in this response then new sessions open repeatedly.

Steps to Reproduce

Enter "hello" into prompt,

Expected Behavior

Kiro should have not forked to a new session on initial prompt in session.

Conversation ID

4efd63ca-73b8-4cb7-9bd4-a676817147ef a141fd4a-6e59-40a7-9fbc-2891bf0efe26 f78b987c-7278-40f6-b0c8-6bcae756d1cc 60a18f23-d935-4731-bf23-a3968668ac0f df2bd50c-324e-4778-8aec-283bb0a26f78

Additional Context

Hey there! 👋

I can see you have a workspace with a few folders and you're currently looking at a tasks file for an "explorer-agent" spec. How can I help you today?

Conversation above has been summarized The conversation in this session is about to reach the agent context limit. I'm summarizing earlier messages, and only the summary will be sent to the agent as context instead of the full text.

priestd avatar Dec 03 '25 15:12 priestd

Same problem, it's being happening for while

himasai-hub avatar Dec 03 '25 16:12 himasai-hub

I tried logging out and in as well as clearing all sessions, but no luck.

It appears clearing the IDE cache in "C:\Users<user>\AppData\Roaming\Kiro\Cache" fixes the problem. You'll need to re-orient Kiro on your project before continuing.

priestd avatar Dec 03 '25 18:12 priestd

Deleting the cache files fixed the problem also in MacOS. The files are in the /Users/<user>/Library/Application Support/Kiro/Cache folder.

supermodo avatar Dec 08 '25 14:12 supermodo

Deleting cache didnt work on Version: 0.7.21. Deleting the Application Support/Kiro folder seems to have helped.

VSCode Version: 1.103.2 Commit: f04d3961f29089a60ae5f765e191d1df964f83aa Date: 2025-12-06T00:34:20.803Z Electron: 37.10.2 ElectronBuildId: undefined Chromium: 138.0.7204.251 Node.js: 22.21.1 V8: 13.8.258.32-electron.0 OS: Darwin arm64 25.1.0

enermark avatar Dec 08 '25 23:12 enermark

same problem

vst126 avatar Dec 11 '25 15:12 vst126

even GODA kiro TT unable to solve

onestepforthelife avatar Dec 14 '25 12:12 onestepforthelife

Deleting /Users/<user>/Library/Application Support/Kiro/Cache did not fix the issue for me, nor did deleting /Users/<user>/Library/Application Support/Kiro/

Version: 0.7.45 VSCode Version: 1.103.2 Commit: 78a30f91b91a608d8b45ced6c35cb4ff899f1e3f Date: 2025-12-10T22:51:17.566Z Electron: 37.10.2 ElectronBuildId: undefined Chromium: 138.0.7204.251 Node.js: 22.21.1 V8: 13.8.258.32-electron.0 OS: Darwin arm64 25.2.0

rservant avatar Dec 15 '25 12:12 rservant

You may need to reduce the number of .md files or rules in your .kiro/steering/ directory. Make sure to minimize what you include for Kiro to read, since that seems to be causing the issue.

mikee12359 avatar Dec 16 '25 19:12 mikee12359

Same here, also deleting the cache doesn't help. I do not have many .md files in the project.

bagges avatar Dec 17 '25 08:12 bagges

Same here, also deleting the cache doesn't help. I do not have many .md files in the project.

In my case, I transferred some .md files under .kiro/steering or .kiro into other directories that, by default, are not read whenever a prompt is executed. After doing that, I no longer encountered the problem.

mikee12359 avatar Dec 17 '25 16:12 mikee12359

Same for me, deleting the kiro folder does not help. My current project has no steering files. This makes kiro unusable.

brafreider avatar Dec 18 '25 15:12 brafreider

I reverted to a previous checkpoint. After that I did not encounter the problem again until now.

bagges avatar Dec 18 '25 15:12 bagges

I updated to 0.8.0 this morning. No change in behaviour.

brafreider avatar Dec 19 '25 08:12 brafreider

same problem

I'm using "Auto" for model selection.

Version: 0.8.0 VSCode Version: 1.103.2 Commit: ff5b0b54a4bf5780b759a0cf91b16350f8f1fd95 Date: 2025-12-18T23:32:09.358Z (3 days ago) Electron: 37.10.2 ElectronBuildId: undefined Chromium: 138.0.7204.251 Node.js: 22.21.1 V8: 13.8.258.32-electron.0 OS: Darwin arm64 25.2.0

campa avatar Dec 22 '25 08:12 campa

Same problem, complete unable to use Kiro

Version: 0.8.0 VSCode Version: 1.103.2 Commit: ff5b0b54a4bf5780b759a0cf91b16350f8f1fd95 Date: 2025-12-18T23:32:09.358Z Electron: 37.10.2 ElectronBuildId: undefined Chromium: 138.0.7204.251 Node.js: 22.21.1 V8: 13.8.258.32-electron.0 OS: Darwin arm64 24.3.0

RJs-Git avatar Dec 23 '25 16:12 RJs-Git

I'm not sure that this is the cause, but I tried to set a lower value of the "Terminal › Integrated: Scrollback" and it seems the problem happening less frequently. ( I was suspecting it was ingesting the entire terminal scroll when Kiro run commands. )

campa avatar Dec 23 '25 16:12 campa

I need to add, that this only happens with one of my projects so far. Changing "Terminal › Integrated: Scrollback" from 1000 (default) to 500 did not change behaviour.

brafreider avatar Dec 23 '25 17:12 brafreider

I'm running into this as well. I hit it a couple days ago, then it randomly started working again. I hit it again last night. I found DMP files in C:\Users\<USER>\AppData\Roaming\Kiro\Crashpad\reports. I'm not sure what information would be helpful here. This stands out to me as a potential starting point:

Key  : Failure.Bucket
Value: CPP_EXCEPTION_e06d7363_conpty.node!Unknown

Key  : Failure.Exception.Code
 Value: 0xe06d7363

It looks like a C++ exception goes unhandled. I'm not familiar with these files or how to read them, so I'm not sure if this is a Kiro thing or a "me" thing and what may be sensitive information in these files (let alone if they're helpful at all).

jkruse14 avatar Dec 24 '25 14:12 jkruse14

how to solve that?

keep-me avatar Dec 28 '25 09:12 keep-me

Hi, it's basically big file size and big data size issues

Pls reduce both from workspace

And use power shell to avoid kiro read all files.

I have solved it Rgds, Amit

On Sun, 28 Dec, 2025, 3:25 pm Ma Yukai, @.***> wrote:

keep-me left a comment (kirodotdev/Kiro#4181) https://github.com/kirodotdev/Kiro/issues/4181#issuecomment-3694617155

how to solve that?

— Reply to this email directly, view it on GitHub https://github.com/kirodotdev/Kiro/issues/4181#issuecomment-3694617155, or unsubscribe https://github.com/notifications/unsubscribe-auth/B2QKYVEQ3MP7DA7EG6236HL4D6SK5AVCNFSM6AAAAACN53EUWSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTMOJUGYYTOMJVGU . You are receiving this because you commented.Message ID: @.***>

onestepforthelife avatar Dec 28 '25 14:12 onestepforthelife