In src/glassbox_agent/tools/code_editor.py, the fuzzy_find method has a default threshold of 0.3 which is far too low. A 30% match means nearly any line will match, causing the editor to target wrong lines. Should be 0.6 for reliable matching.
File: src/glassbox_agent/tools/code_editor.py
Line: 94
Expected: def fuzzy_find(content: str, target: str, threshold: float = 0.6) -> tuple[int, float]:
Actual: def fuzzy_find(content: str, target: str, threshold: float = 0.3) -> tuple[int, float]:
In
src/glassbox_agent/tools/code_editor.py, thefuzzy_findmethod has a default threshold of0.3which is far too low. A 30% match means nearly any line will match, causing the editor to target wrong lines. Should be0.6for reliable matching.File:
src/glassbox_agent/tools/code_editor.pyLine: 94
Expected:
def fuzzy_find(content: str, target: str, threshold: float = 0.6) -> tuple[int, float]:Actual:
def fuzzy_find(content: str, target: str, threshold: float = 0.3) -> tuple[int, float]: