Files
oh-my-pi/packages/coding-agent/test
Mathews-Tom 9fa2a18e42 fix(secrets): apply short obfuscate-match guard before placeholder preservation
The sub-threshold guard for obfuscate-mode regex matches ran after the preserve-input-placeholders branch, so on a re-obfuscation pass a short match straddling a prior #…# placeholder rewrote its surrounding context (XX/YY) into fresh placeholders. obfuscate() then stopped being a fixed point and provider-visible history / prompt-cache prefixes drifted across passes even though round-trip deobfuscation still recovered the original. Move the scanMatchLength guard ahead of the preservation branch so a match shorter than MIN_OBFUSCATE_SECRET_LEN is skipped regardless of placeholder overlap, keeping re-obfuscation idempotent. Extends the regression test to assert the fixed point.

Refs #2465
2026-06-29 03:49:42 +05:30
..
2026-06-26 18:43:32 +02:00
2026-05-30 18:08:51 +02:00
2026-06-26 12:24:42 +02:00
2026-05-30 18:08:51 +02:00
2026-06-24 13:44:47 +00:00