Resuming Task agents re-runs work instead of returning cached results
Resolved 💬 3 comments Opened Jan 27, 2026 by kjh91-sam Closed Feb 28, 2026
Description
When Task agents hit rate limits and return with an agentId, resuming them with the resume parameter causes them to re-run the entire research instead of returning the cached/completed results.
Steps to Reproduce
- Launch Task agents (Explore type) for research
- Agents complete their work (e.g., 14.2k tokens, 23.8k tokens)
- Hit rate limit before results are returned to user
- Wait for rate limit to reset
- Resume agents using the provided
agentId - Expected: Return the cached results from the completed work
- Actual: Agents re-run the entire research, consuming additional tokens
Example
# First run - agents completed work
⏺ 2 Explore agents finished (ctrl+o to expand)
├─ Research product-category linking patterns · 8 tool uses · 14.2k tokens
│ ⎿ Done
└─ Research product options fetching patterns · 17 tool uses · 23.8k tokens
⎿ Done
⎿ You've hit your limit · resets 3pm (Asia/Seoul)
# After limit reset - resume caused re-run
<Task resume="aabfa1f">...</Task>
# Result: Agent ran again, consuming more tokens
Impact
- Users lose tokens due to duplicate work
- Poor user experience when waiting for rate limits to reset
- Research work that was already completed gets discarded
Expected Behavior
When resuming an agent that has already completed its work, it should return the cached results without re-running the research.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗