Skip to content

Revert removal of the last message from memory_messages during planning #1454

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jun 24, 2025

Conversation

Zoe14
Copy link
Contributor

@Zoe14 Zoe14 commented Jun 18, 2025

A previous change I did to save token usage is wrong as cyzus pointed out. I reverted the change, and updated the test to reflect the scenario I didn't think of.
The last message in the memory_messages is not necessarily the task.
Maybe we can filter the memory_message if we don't want to send the same task twice or we can change the pre_update_plan prompt to not include the task.

Fix bug introduced in:

@Zoe14 Zoe14 changed the title enhance test for update plan Enhance test for update plan Jun 18, 2025
@Zoe14 Zoe14 marked this pull request as ready for review June 18, 2025 15:31
@aymeric-roucher
Copy link
Collaborator

aymeric-roucher commented Jun 18, 2025

In this case, let's go for the simple fix you propose and just undo the removal the latest message, no need for other modifications IMO!

@Zoe14 Zoe14 force-pushed the fix-update-planning-memory branch from 255b23a to 5381a1e Compare June 20, 2025 14:33
@Zoe14
Copy link
Contributor Author

Zoe14 commented Jun 23, 2025

I updated the branch. This PR basically just undo the change and improved the unit test. Feel free to close this PR if the fix is included somewhere else.

Copy link
Member

@albertvillanova albertvillanova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs to run make style to fix code quality issues.

@albertvillanova albertvillanova changed the title Enhance test for update plan Revert removal of the last message from memory_messages during planning Jun 24, 2025
Copy link
Member

@albertvillanova albertvillanova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Just fixed the style and refactored the corresponding test to make it clearer.

@albertvillanova albertvillanova merged commit 4f112fd into huggingface:main Jun 24, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants