feat(agent-toolkit): use batch_undo mutation for undo_action tool#245
Merged
dinportnoy1 merged 8 commits intomasterfrom Mar 26, 2026
Merged
feat(agent-toolkit): use batch_undo mutation for undo_action tool#245dinportnoy1 merged 8 commits intomasterfrom
dinportnoy1 merged 8 commits intomasterfrom
Conversation
Replace the fragile activity-log workaround (query + change_column_value) with a single batch_undo GraphQL mutation call. This supports undoing column changes, deletes, archives, moves, duplicates, and more. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Move batch_undo mutation to .graphql.dev.ts and use versionOverride: 'dev', matching the search-tool pattern for dev-schema mutations. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
RomKadria
reviewed
Mar 26, 2026
packages/agent-toolkit/src/core/tools/platform-api-tools/undo-action-tool/undo-action-tool.ts
Outdated
Show resolved
Hide resolved
…ev schema for codegen Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
RomKadria
reviewed
Mar 26, 2026
RomKadria
reviewed
Mar 26, 2026
| title: 'Undo Action', | ||
| readOnlyHint: false, | ||
| destructiveHint: true, | ||
| idempotentHint: false, |
Collaborator
There was a problem hiding this comment.
what happens if we run it twice? wndering aboout this
Collaborator
Author
There was a problem hiding this comment.
In case of running twice it will return "action already reverted" (implementation in the gql).
RomKadria
approved these changes
Mar 26, 2026
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
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
batch_undomutation being deployed (introduced in2026-04)Test plan
npm test— all 523 tests passnpm run build— builds successfully🤖 Generated with Claude Code