feat(agent): add persistent runtime context providers

This commit is contained in:
chengyongru authored and Xubin Ren committed 2026-07-12 00:35:17 +08:00
1 parent 7f8c3453e1
commit f75d3519db
27 files changed
+789 -371

No files matched your search

+1 -1
View File
@@ -747,7 +747,7 @@ async def cmd_history(ctx: CommandContext) -> OutboundMessage:
)
session = ctx.session or ctx.loop.sessions.get_or_create(ctx.key)
history = session.get_history(max_messages=0)
history = session.get_history(max_messages=0, include_runtime_context=False)
visible = [_format_history_message(m) for m in history]
visible = [m for m in visible if m is not None]
recent = visible[-count:]