fix(plan): prevent repeated "Ready to implement?" prompt in plan mode#6218
fix(plan): prevent repeated "Ready to implement?" prompt in plan mode#6218shssoichiro wants to merge 1 commit intoKilo-Org:mainfrom
Conversation
Skip the plan followup prompt when the last user message is synthetic (programmatically injected), breaking the cycle where custom text input triggers agent response → prompt → custom text → agent response → prompt indefinitely. Real user messages still trigger the followup as expected. Fixes Kilo-Org#6143
|
The following comment was made by an LLM, it may be inaccurate: |
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Clean, well-scoped fix that prevents the repeated "Ready to implement?" prompt cycle in plan mode. The approach of detecting synthetic messages via Files Reviewed (1 file)
|
|
@shssoichiro Thank you for your input! This PR is a quick fix and not the proper solution: kilo should suggest "Ready to implement?" only when it's sure it has all the information necessary to implement the plan. I will follow up with the proper solution shortly. |
|
@shssoichiro fixed here #6240 |
|
Thanks! I will close this one then. |
Context
Fixes #6143
Implementation
Skip the plan followup prompt when the last user message is synthetic (programmatically injected), breaking the cycle where custom text input triggers agent response → prompt → custom text → agent response → prompt indefinitely. Real user messages still trigger the followup as expected.
Screenshots
The Plan agent now properly finishes the plan before requesting to implement.
How to Test
I only tested in a limited capacity, so a maintainer may want to perform more thorough real-world verification.
Get in Touch
ExpedientFalcon on Discord