Repository navigation
test(think): completes #3447: the recovery-work wait is per callback and also wakes on Tasks' events - #3471
Merged
Conversation
…and also wakes on Tasks' events
agents
@cloudflare/ai-chat
@cloudflare/codemode
hono-agents
@cloudflare/shell
@cloudflare/think
@cloudflare/voice
@cloudflare/worker-bundler
commit: |
Contributor
|
✅ agents import sizes: no significant changes ( |
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.
Completes #3447. Test only: two tightenings of the fixture that #3447 carried for Think's recovery tests (
recoveryAttemptOwedForTestintests/agents/think-session.ts), both found in review of that PR.runRecoveryWorkForTest(agent, callback)then found nothing to run for its own callback and waited until the test timed out. It now says so only when its own callback has work, and returns at once when only the other has.agents:taskevents (a run accepted, a run waiting).Neither could make a test pass wrongly: the first failed by timeout, the second cost a few seconds.
Checked: Think's "error handling" tests (68) and
channel-recovery,origin-message-ids,action-pause-recovery,run-turn-recoveryandsubmissions(160) pass on the class config.