An error occurred (ValidationException) when calling the ConverseStream operation: The model returned the following errors: messages.22: tool_use ids were found without tool_result blocks immediately after: tooluse_UIJ3xdX8j7AuZrkeGmf8HU. Each tool_use block must have a corresponding tool_result block in the next message.
There is no option to refresh chat or to start a new chat . No other prompt is working, My app is stuck.
That error means the conversation context in your app editor got into a corrupted state internally. It’s not something you did wrong; I think the model’s tool orchestration hit an edge case and now the session can’t recover on its own because it keeps trying to resume from the broken message history.
The fix is to reset the session. Close the app editor tab entirely, wait 15 to 20 minutes, then reopen your app. When you come back, you should have a fresh conversation and be able to prompt again. If you had a working version before this happened, you can also use the version selector to restore that previous version once the session clears.
If you need to keep working immediately and can’t wait, another workaround is to duplicate the app (this gives you a fresh session with the same code) and continue from the copy. The official troubleshooting guidance is here: Troubleshooting apps in Quick - Amazon Quick
Just checking back in since this thread hasn’t received a response in a while. Was Jacob’s reply helpful to you and/or were you able to find a solution yourself in the meantime? Please help the community by marking this answer as “Solution” or following up in general within the next 3 business days!
Since I haven’t received any further updates from you, I’ll treat this inquiry as complete for now. If you have any additional questions, feel free to create a new post in the community and link this discussion for context.