Files
g3/crates/g3-core/src
Dhanji R. Prasanna c7204c6699 Fix tool call detection and duplicate handling issues
1. Set tool_executed=true when a tool call is detected, even if skipped
   as a duplicate. This prevents the raw JSON from being printed to screen
   when a tool call is detected but not executed.

2. Remove session-level duplicate detection entirely. All tools should be
   allowed to be called multiple times in a session.

3. Fix sequential duplicate detection to only catch IMMEDIATELY sequential
   duplicates:

   - DUP IN CHUNK: Now only checks if the PREVIOUS tool call in the chunk
     is the same (not any tool call in the chunk)

   - DUP IN MSG: Now only checks if the LAST tool call in the previous
     message matches AND there's no text after it. If there's any
     non-whitespace text between tool calls, they're not considered
     duplicates.

This allows legitimate re-use of tools while still catching cases where
the LLM stutters and outputs the same tool call twice in a row.
2025-12-22 17:03:07 +11:00
..
2025-11-27 21:00:02 +11:00
2025-11-27 21:00:02 +11:00
2025-12-19 16:14:03 +11:00
2025-10-24 16:11:24 +11:00
2025-10-10 09:35:03 +11:00
2025-11-27 21:00:02 +11:00