Repository navigation
Conversation
Before-change triggers run before a create or update is written. Their actions may set fields (new setField step), check conditions, read queries and fail, so a rejection never leaves a partial write. Deleted triggers run after a delete, sync or async. Both fire on action-query writes: deletes and replaces report removed rows, and before-change triggers decide on pending rows through a two-call flow with a fingerprint. Config version 5. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012iLZgQTvMnEZufP6GdoWy2
Ziinc
marked this pull request as ready for review
October 10, 2026 21:41
Show only the before-change help text on a before-change trigger. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012iLZgQTvMnEZufP6GdoWy2
This branch has not been deployed
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.
Requested by Zn · project thread
Before: triggers fired only after a record was created or updated, and nothing could check or adjust a record before it was saved.
After: a "Before a record is saved" trigger can set fields (new Set field step) or reject the save with a message, and a "Record deleted" trigger runs after deletes. Both fire on action-query writes too.
How: before-change actions are limited to setField, condition, fail, read queries and runAction, so a rejection never leaves a partial write. Action queries take two calls: Rust returns the pending rows, TS runs the triggers, and Rust reruns with the fields set and a fingerprint check. Config version 5. Records:
async-trigger-queue.md,action-queries.md.🤖 Generated with Claude Code
https://claude.ai/code/session_012iLZgQTvMnEZufP6GdoWy2
Generated by Claude Code