-
Notifications
You must be signed in to change notification settings - Fork 802
feat(core): implement cache execution fallback to AI planning #1685
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for midscene ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
2d32c61 to
f9986e3
Compare
|
close #1640 |
…ext and error handling
…ext and improved error handling
2e89b18 to
1a78457
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR implements a cache execution fallback mechanism that gracefully handles failures when executing cached YAML workflows. When a cached workflow fails, the system now automatically falls back to AI planning with detailed failure context, enabling smarter retry strategies.
Key Changes:
- Added fallback logic to catch cache execution errors and retry with AI planning
- Implemented detailed execution context tracking with completed, failed, and pending task information
- Enhanced error messages with structured failure context for better AI decision-making
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
| packages/core/tests/unit-test/agent-cache-fallback.test.ts | New comprehensive test suite covering cache fallback scenarios, context propagation, and edge cases |
| packages/core/src/yaml/player.ts | Added buildFailureContext() method to generate structured failure information for AI fallback |
| packages/core/src/yaml.ts | Extended ScriptPlayerTaskStatus interface with index field for task position tracking |
| packages/core/src/agent/agent.ts | Implemented try-catch around cached workflow execution with context-aware fallback to AI planning |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…fter successful execution
No description provided.