Skip to content

Bug: fuzzy_find threshold too low (0.3) causes false positive matches #138

Description

@sourabharsh

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]:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions