Loop detector matches exact calls only #198

Open
opened 2026-11-21 12:36:47 +00:00 by johannes · 0 comments
Owner

Location: crates/hx-core/src/agent.rs (identical-call counter, ~line 67)
What is hacky: exact match on tool, args and result; calls with a timeout arg are exempt.
Proper fix: fuzzy/normalized argument comparison when loops with varying args are observed.
Original comment: "ponytail: exact match only, and calls with a timeout arg (polling) are exempt; widen if loops vary args."

Found by the comment audit: the comment excusing this was deleted (see scripts/lint-comments.sh).

Location: crates/hx-core/src/agent.rs (identical-call counter, ~line 67) What is hacky: exact match on tool, args and result; calls with a `timeout` arg are exempt. Proper fix: fuzzy/normalized argument comparison when loops with varying args are observed. Original comment: "ponytail: exact match only, and calls with a `timeout` arg (polling) are exempt; widen if loops vary args." Found by the comment audit: the comment excusing this was deleted (see scripts/lint-comments.sh).
johannes added the core label 2026-11-21 12:36:47 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: johannes/hx#198