fix(core): update version and improve compactor message handling

This commit is contained in:
jinli.yl 2026-03-04 14:10:24 +08:00
parent 58ca1f4fac
commit 70282d4110
2 changed files with 2 additions and 4 deletions

View file

@ -7,7 +7,7 @@ from . import memory
from .reme import ReMe
from .reme_cli import ReMeCli
__version__ = "0.3.0.4"
__version__ = "0.3.0.5"
__all__ = [
"config",

View file

@ -411,11 +411,9 @@ class ReMeCopaw(Application):
tool_result_threshold=self.tool_result_threshold,
retention_days=self.retention_days,
)
# Set the messages context for the compactor to process
compactor.context["messages"] = messages
# Execute compaction and get processed messages
result = await compactor.call(service_context=self.service_context)
result = await compactor.call(messages=messages, service_context=self.service_context)
# Clean up any expired tool result files during compaction
compactor.cleanup_expired_files()