Repeat in agent.rs: counts consecutive tool calls with identical (tool, args, result). From the 3rd on, the result gets [hx: this exact call returned the same result 3 times in a row; change approach or ask the user] appended. Calls with a timeout arg (polling) are exempt. No hard stop; the existing max_turns stays. Only the request copy changes, so the session file keeps the hint too (same text the model saw).
Test: identical_calls_get_a_hint_on_the_third (4 identical calls: hint on 3rd and 4th only). hx-core 69 tests, clippy, fmt, e2e scripts ok.
Closes #157.
`Repeat` in `agent.rs`: counts consecutive tool calls with identical (tool, args, result). From the 3rd on, the result gets `[hx: this exact call returned the same result 3 times in a row; change approach or ask the user]` appended. Calls with a `timeout` arg (polling) are exempt. No hard stop; the existing `max_turns` stays. Only the request copy changes, so the session file keeps the hint too (same text the model saw).
Test: `identical_calls_get_a_hint_on_the_third` (4 identical calls: hint on 3rd and 4th only). hx-core 69 tests, clippy, fmt, e2e scripts ok.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Closes #157.
Repeatinagent.rs: counts consecutive tool calls with identical (tool, args, result). From the 3rd on, the result gets[hx: this exact call returned the same result 3 times in a row; change approach or ask the user]appended. Calls with atimeoutarg (polling) are exempt. No hard stop; the existingmax_turnsstays. Only the request copy changes, so the session file keeps the hint too (same text the model saw).Test:
identical_calls_get_a_hint_on_the_third(4 identical calls: hint on 3rd and 4th only). hx-core 69 tests, clippy, fmt, e2e scripts ok.