feat(ai): experimental callbacks in ToolLoopAgent#12717
Merged
aayush-kapoor merged 14 commits intomainfrom Feb 20, 2026
Merged
Conversation
lgrammel
approved these changes
Feb 20, 2026
Collaborator
lgrammel
left a comment
There was a problem hiding this comment.
the tests use a lot of the expect behavior that is standard use by agents. ideally we would use inline snapshots or real snapshot. it would be great if we could update agents.md or skills accordingly to enforce this. cc @dancer
lgrammel
reviewed
Feb 20, 2026
packages/ai/src/agent/tool-loop-agent-on-step-start-callback.ts
Outdated
Show resolved
Hide resolved
4 tasks
aayush-kapoor
added a commit
that referenced
this pull request
Mar 23, 2026
## Background the changes from #12717 were applied directly in v6 when main was pointing towards v6 ## Summary cherry pick and revert all the changes ## Manual Verification na ## Checklist - [x] Tests have been added / updated (for bug fixes / features) - [x] Documentation has been added / updated (for bug fixes / features) - [x] A _patch_ changeset for relevant packages has been added (for bug fixes / features - run `pnpm changeset` in the project root) - [x] I have reviewed this pull request (self-review)
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
as a follow up to #12654, we will introduce the same callbacks for the
ToolLoopAgentSummary
experimental_onStartthat exposes the data/events that happen at the very beginningexperimental_onStepStartexperimental_onToolCallStartexperimental_onToolCallFinishManual Verification
Future Work
Checklist
pnpm changesetin the project root)