Files
thefuck/tests
Alexander d12f4326ab Add history-similarity resolver with correction-only gates
get_history_correction aligns a failed script with near-identical
history commands segment by segment (shell_ast words with byte-true
offsets) and splices the corrected tokens back in place. It only
returns a fix when exactly one candidate matches the structure with
at most two diverged tokens, each at least 80 percent similar;
looser or ambiguous matches decline so the asking history rule
stays in charge of them.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-09-13 20:51:16 +02:00
..
2015-04-25 03:13:57 +02:00
2020-11-03 18:29:28 +01:00
2017-08-26 06:16:51 +02:00