simin-yuan
simin-yuan
Thanks for the independent repro — it matches `master` (`d9caf08`), and it isn't chain-only: `on_tool_start`, `on_retriever_start`, `on_llm_start` and `on_chat_model_start` are the same shape. The manager is the right level. One...
Design note for the fix on my branch (fix/tool-callback-shield, 1303b44): - `@shielded` on `AsyncCallbackManagerForToolRun.on_tool_end` / `on_tool_error`, the same wrapper the llm, chain and retriever managers already use. I kept to...
Thanks @Shanmukh-l33t — good to have the root cause confirmed independently, and appreciated the point about #41660: that is exactly why the failure only became observable after it landed, since...
core: agent action/finish callbacks are dropped when the run is cancelled from an anyio cancel scope
Fix is ready on fix/agent-callback-shield @ 000554b5, with a parametrized test that fails on master (2 failed) and passes with the change (2 passed).
core: agent action/finish callbacks are dropped when the run is cancelled from an anyio cancel scope
Reporter here. The two-decorator change on on_agent_action / on_agent_finish is right. One correction for the record: on current master (c6ec96a) AsyncCallbackManagerForToolRun.on_tool_end / on_tool_error are still unshielded — that gap is...
core: agent action/finish callbacks are dropped when the run is cancelled from an anyio cancel scope
Update for triage: I opened #41794 with both gaps fixed (agent pair + tool pair) and deterministic regression tests, but the `Require Issue Link` check closed it because neither issue...
core: agent action/finish callbacks are dropped when the run is cancelled from an anyio cancel scope
To keep this scoped: #41788 covers only the agent pair (`on_agent_action` / `on_agent_finish`), so the tool pair is still uncovered. On current master, `AsyncCallbackManagerForToolRun.on_tool_end` and `on_tool_error` are the remaining async...
Thanks for taking a look. As the reporter I'd like to keep this one. The fix and its regression tests are in #9536; the bot closed it pending assignment and...
@eliornl both #9536 (for this issue) and #9538 (for #9537) carry tests that fail on main and pass with the fix, and both merge cleanly on current main. Happy to...
Correction to my earlier comment: #9536 was **closed by the `require-issue-link` bot** on 2026-11-01 (external contributors must be assigned before opening a PR). The PR was closed by require-issue-link; once...