AIAgent init latency and blocking I/O fixes
Cluster 32221 · agent. Data as of
Nothing open on GitHub. Fix merged in #57229 on 28 Jul 2026. Check it covers your case.
The short answer
- Known?
- Yes. 3 related items grouped here, 1 issue already closed.
- Fix event
- A fix was merged to main in PR #57229. Check it covers your case. No release data is tracked.
- Tracker
- The maintainers' tracker marks this
resolved, deciding PR #57229. That is separate from the fix event. - Still open
- Nothing open on GitHub.
These items address synchronous blocking network calls and unnecessary work performed during AIAgent construction, with related caching and lazy-initialization improvements to reduce startup overhead.
Open issues0
Open PRs0
Fixes on record
-
#57229 perf(agent): AIAgent hot-path salvage — prompt-cache copy, reasoning-timeout precompute, lazy compressor init
files:
agent/context_compressor.py,agent/conversation_compression.py,agent/prompt_caching.py,agent/reasoning_timeouts.py,contributors/emails/[redacted:email],tests/agent/test_cjk_token_estimation.py,tests/agent/test_compress_focus.py,tests/agent/test_compression_small_ctx_threshold_floor.py,tests/agent/test_context_compressor.py,tests/agent/test_pre_compress_memory_context.py,tests/agent/test_prompt_caching.py,tests/agent/test_turn_context_overflow_warning.py,tests/run_agent/test_image_shrink_recovery.py,tests/run_agent/test_per_model_compression_threshold.py
1 PR closed without merging
From the close comments: merged via another change 1
-
#38991 perf(agent): defer synchronous httpx.post out of AIAgent.__init__ (#32221) · merged via another change →
#57229,#32221
Closed issues · 1
- Closed#32221[Bug]: AIAgent.init performs synchronous blocking network I/O (httpx.post) during construction
How this cluster was grouped
-
Link evidence (
structural links throughout): every member is connected by structural evidence: shared changed files, or a closing/superseded reference. -
Pairwise link density
0.67: the share of item pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36.1.00means every pair is linked.
Pick up a Lab task
Check whether a fix covers the open issues here, with your own agent. Bring back evidence for maintainers.
Open the LabAt a glance
- Subsystem
- agent
- Merged PRs
- #57229
- Closed issues
- 1
- Attempts
- 1 PR closed without merging
- Fix link checked
- 28 Jul 2026