Dhanji R. Prasanna
b89d55a9ff
Add characterization tests for stream_completion_with_tools
Add 32 blackbox characterization tests to lock down the behavior of the
stream_completion_with_tools function (1067 lines) before refactoring.
Tests cover key behaviors through stable boundaries:
- StreamingToolParser: tool call detection, incomplete detection, text accumulation
- Auto-continue logic: autonomous mode decisions, priority ordering
- Duplicate detection: sequential duplicates, cross-message duplicates
- Context window: token tracking, compaction threshold, history preservation
- Tool execution: read_file, shell, write_file, todo tools through Agent
- Streaming utilities: LLM token cleaning, duration formatting, truncation
- Parser sanitization: inline tool pattern handling, homoglyph replacement
These tests intentionally do NOT assert:
- Internal parser state or implementation details
- Specific timing values
- UI output formatting
- Provider-specific behavior
Agent: hopper
2026-01-13 16:25:33 +05:30
..
2026-01-10 13:43:04 +11:00
2026-01-12 18:20:08 +05:30
2025-11-27 21:00:02 +11:00
2026-01-12 11:40:19 +05:30
2026-01-09 15:20:57 +11:00
2026-01-12 21:17:32 +05:30
2026-01-12 11:40:19 +05:30
2026-01-09 15:20:57 +11:00
2026-01-12 18:20:08 +05:30
2026-01-13 11:22:46 +05:30
2026-01-09 13:28:07 +11:00
2025-12-26 11:19:37 +11:00
2026-01-12 11:40:19 +05:30
2026-01-13 16:25:33 +05:30
2026-01-09 15:20:57 +11:00
2026-01-12 05:13:02 +05:30
2026-01-03 16:44:58 +11:00
2025-12-22 10:32:21 +11:00
2026-01-03 14:50:08 +11:00
2025-12-01 14:38:21 +11:00
2026-01-12 18:20:08 +05:30
2025-12-02 14:45:12 +11:00
2025-12-02 11:07:13 +11:00
2025-12-22 10:32:21 +11:00
2025-11-27 21:00:02 +11:00
2026-01-08 12:54:03 +11:00
2026-01-09 14:57:24 +11:00
2026-01-12 11:40:19 +05:30
2026-01-10 13:43:04 +11:00
2026-01-13 11:22:46 +05:30