Repository navigation
Correct the mention-linking comment and pin a Play action's create linking its mentions - #4352
Merged
Merged
Conversation
Contributor
Author
|
APPROVE (head b5188a2) Findings:
Follow-up recommended (not blocking): the comment now documents that nodes created by invariant actions are NOT mention-linked at creation. That looks like a real behavioral gap (content with nodespace:// mentions created by an invariant action has no Not run: |
…e linking its mentions Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
mstomar125
force-pushed
the
issue-4307-comment
branch
from
November 25, 2026 09:10
b5188a2 to
3879bfd
Compare
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.
The doc comment on
sync_created_mentionssaid a node a Play's action creates is linked when its content is next edited. A reaction action creates throughcreate_node, which links at creation; the comment now says that.The comment also records what the code shows for the other path: an invariant action inserts its node inside its own transaction through
insert_node_in_tx_no_invariant_dispatch, which does not callsync_created_mentions, so such a node is not linked at creation. That behaviour is unchanged and untested here; a follow-up issue may be wanted (see below).Test added:
create_node_action_links_the_mentions_of_its_content(a reaction action creates a node whose content mentions an existing node;get_mentionsreturns it right after). Mutation: removing thesync_created_mentionscall fromcreate_nodefails it (verified).bun run test:changedpassed.Closes #4307
🤖 Generated with Claude Code