ZIm/crates/agent/src
Richard Feldman 6f04cb7296 Don't auto-retry in certain circumstances (#35037)
Someone encountered this in production, which should not happen:

<img width="1266" height="623" alt="Screenshot 2025-07-24 at 10 38
40 AM"
src="https://github.com/user-attachments/assets/40f3f977-5110-4808-a456-7e708d953b3b"
/>

This moves certain errors into the category of "never retry" and reduces
the number of retries for some others. Also it adds some diagnostic
logging for retry policy.

It's not a complete fix for the above, because the underlying issues is
that the server is sending a HTTP 403 response and although we were
already treating 403s as "do not retry" it was deciding to retry with 2
attempts anyway. So further debugging is needed to figure out why it
wasn't going down the 403 branch by the time the request got here.

Release Notes:

- N/A
2025-07-24 11:52:10 -04:00
..
prompts agent: Send stale file notifications using the project_notifications tool (#34005) 2025-07-07 19:48:18 +03:00
agent.rs Extract an agent_ui crate from agent (#33284) 2025-06-23 18:00:28 -07:00
agent_profile.rs agent: Fix issue with duplicated tool names from MCP servers (#33811) 2025-07-02 20:32:07 +00:00
context.rs Move UI code from assistant_context_editor -> agent_ui (#33289) 2025-06-23 22:22:01 -07:00
context_server_tool.rs Extract an agent_ui crate from agent (#33284) 2025-06-23 18:00:28 -07:00
context_store.rs Move UI code from assistant_context_editor -> agent_ui (#33289) 2025-06-23 22:22:01 -07:00
history_store.rs Move UI code from assistant_context_editor -> agent_ui (#33289) 2025-06-23 22:22:01 -07:00
thread.rs Don't auto-retry in certain circumstances (#35037) 2025-07-24 11:52:10 -04:00
thread_store.rs agent: Fix issue with duplicated tool names from MCP servers (#33811) 2025-07-02 20:32:07 +00:00
tool_use.rs agent: Fix max token count mismatch when not using burn mode (#34025) 2025-07-07 23:13:24 +02:00