Skip to content

feat(agent-toolkit): use batch_undo mutation for undo_action tool#245

Merged
dinportnoy1 merged 8 commits intomasterfrom
feat/agent-toolkit-batch-undo
Mar 26, 2026
Merged

feat(agent-toolkit): use batch_undo mutation for undo_action tool#245
dinportnoy1 merged 8 commits intomasterfrom
feat/agent-toolkit-batch-undo

Conversation

@dinportnoy1
Copy link
Collaborator

@dinportnoy1 dinportnoy1 commented Mar 19, 2026

Summary

  • Depends on: dapulse batch_undo mutation being deployed (introduced in 2026-04)

Test plan

  • npm test — all 523 tests pass
  • npm run build — builds successfully

🤖 Generated with Claude Code

dinportnoy1 and others added 5 commits March 19, 2026 12:05
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>
dinportnoy1 and others added 2 commits March 26, 2026 16:02
…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>
title: 'Undo Action',
readOnlyHint: false,
destructiveHint: true,
idempotentHint: false,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what happens if we run it twice? wndering aboout this

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In case of running twice it will return "action already reverted" (implementation in the gql).

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
@dinportnoy1 dinportnoy1 merged commit f22d23e into master Mar 26, 2026
1 check passed
@dinportnoy1 dinportnoy1 deleted the feat/agent-toolkit-batch-undo branch March 26, 2026 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants