Files
oh-my-pi/packages/coding-agent/src/export
metaphorics 37990d8f9f perf(export): skip TTSR delta buffering when no rule matches text/thinking
TtsrManager.checkDelta concatenated the full stream buffer on every text_delta and thinking_delta before scope filtering in #matchBuffer, making long streams O(n²) even when all registered rules are tool-scoped. Added #canMatchText and #canMatchThinking flags, set them only after successful rule registration from the computed scope, and returned early from checkDelta for text/thinking sources that no rule can match. Verified by re-reading the modified ranges; no test or typecheck suites were run per campaign constraints.

Closes #4245
2026-07-02 17:29:50 +09:00
..