You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Rate-limit backoff not applied to code-mode composite's partial-start subset retry (follow-up to #4060) #4067
area/agentFor work that has to do with the general agent loop/agentic features of the apparea/ragFor work/issues that have to do with the RAG featuresarea/runtimeRuntime engine, agent loop execution, tool dispatch, loop detectionarea/toolsFor features/issues/fixes related to the usage of built-in and MCP tools
When code_mode is enabled, codemode.Wrap() collapses all toolsets into one composite (pkg/teamloader/teamloader.go:932). That composite returns PartialStartError while at least one inner toolset is healthy. PR #4062 deliberately exempts partial starts from the backoff gate so the healthy subset stays listed, but this means the composite's per-turn retry of the degraded subset (e.g. a RAG toolset hitting 429 rate limits) is not paced by the gate — the same burst behaviour described in #4060 can still occur for code-mode agents.
Known path
codeModeTool.Start → partial failure → StartableToolSet.startLocked → s.resetStartBackoff() → next turn: full burst again.
Proposed fix
Arm the gate when a PartialStartError's aggregated cause is retryable (the gate already supports s.started = true, so the healthy subset keeps listing). This requires a focused test that a partial-start with a retryable inner cause paces the next TryStart while a non-retryable partial does not.
area/agentFor work that has to do with the general agent loop/agentic features of the apparea/ragFor work/issues that have to do with the RAG featuresarea/runtimeRuntime engine, agent loop execution, tool dispatch, loop detectionarea/toolsFor features/issues/fixes related to the usage of built-in and MCP tools
Activity
fix: address aheritier re-review findings on PR #4062
fix: address aheritier re-review findings on PR #4062
fix: add bounded jittered backoff to StartableToolSet retry path
fix: add bounded jittered backoff to StartableToolSet retry path
fix: add bounded jittered backoff to StartableToolSet retry path
fix: add bounded jittered backoff to StartableToolSet retry path
fix: add bounded jittered backoff to StartableToolSet retry path
fix: add bounded jittered backoff to StartableToolSet retry path
fix: add bounded jittered backoff to StartableToolSet retry path
fix: add bounded jittered backoff to StartableToolSet retry path
fix: add bounded jittered backoff to StartableToolSet retry path
fix: add bounded jittered backoff to StartableToolSet retry path
fix: add bounded jittered backoff to StartableToolSet retry path
fix: pace retryable partial-start failures in code-mode composites