mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-26 02:04:37 +08:00
Message-retrieval tools mirror rawMessages inside data, and the preprocessing pipeline rendered that array into the tool result text as "rawMessages: [object Object], [object Object], ..." — roughly 1.7KB of junk per call (~400-500 wasted tokens) that also polluted the truncated result text persisted for history replay. - formatToolResultAsText skips the rawMessages key (raw message objects are already rendered via the formatted messages list) - CLI tool adapter strips rawMessages from extraDetails before invoking the pipeline, matching the existing desktop adapter behavior Regression tests fail without the fix at both the format layer and the CLI adapter layer. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>