ViewCode Message Removal in ReAct Message History Type #52
Closed
alancelestino
started this conversation in
General
Replies: 1 comment
-
|
Transformed into an issue |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
First of all, thanks for this repo---amazing work!
Here's a bug or a feature:
When running
I get the following trajectory:
trajectory_qwen.json
In node 1, the model tries StringReplace before ever calling ViewCode and gets scolded by the scaffolding. In node 2, the model calls ViewCode. This history is properly reflected in node 3 (completions --> build_action --> input) and the model calls StringReplace. In node 4, however, the first ViewCode is removed and the message history becomes inconsistent.
I believe the reason for this is that
shown_filesfrommoatless/message_history/compact.pygets updated viaAnd then the ViewCode action never gets added to the history because the file was already shown:
I wonder if this is a compromise between conversation flow logic and message length or rather a bug.
Beta Was this translation helpful? Give feedback.
All reactions