feat: add patch-style draft updates for agents#5732
Merged
Conversation
|
👋 Commands for maintainers:
|
|
Risk: 45/100 (medium) SummaryReplaces the full-YAML update_draft agent action with a structured patch_draft action that accepts ordered graph operations (add/update/delete nodes and edges), applies them through the internal canvas changeset patcher, and defaults auto-layout to affected connected components. Concerns
Recommended reviewers: lucaspin, re-pixel |
fb67dfd to
dd40e47
Compare
Contributor
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit dd40e47. Configure here.
b923eb5 to
06fef2f
Compare
Signed-off-by: Pedro F. Leao <pedroforestileao@gmail.com>
06fef2f to
87f5013
Compare
23af32e to
299f27b
Compare
Signed-off-by: Pedro F. Leao <pedroforestileao@gmail.com>
299f27b to
baf74c3
Compare
Collaborator
Author
|
👍 |
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.

Summary
patch_drafttosuperplane_appso agents can send small graph operations instead of fullcanvas_yamlpatch_draftauto-layouts affected connected components, with explicitauto_layoutoverrides for full canvas or custom seedsCloses #5726
Validation
make test PKG_TEST_PACKAGES=./pkg/agents/...make format.gomake lint && make check.build.app