mirror of
https://github.com/escalante29/WealthySmart.git
synced 2026-07-17 09:08:46 +02:00
- ReconcileSnapshotMiddleware removed: MAF now reuses the streamed message id in MESSAGES_SNAPSHOT (verified in _agent_run.py at python-1.10.0 and live event logs); keeping the surgery duplicated user messages on a2ui follow-up runs. - beforeRequestMiddleware now injects RunAgentInput.context as a system message: MAF declares the field but never feeds it to the model, which starves the model of CopilotKit's A2UI catalog/guidelines. Remove when MAF consumes context upstream. - Workaround chain env-gated: CK_MIDDLEWARES=off runs bare for audits, CK_DEBUG_EVENTS=1 enables the event logger. - Kept: SuppressRenderToolText, StripModelArtifacts, DeduplicateToolCall, pairOrphanToolCalls (behavior-verified). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>