Repository navigation
Resolve references in copied Journal blocks - #222
Conversation
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0d28beea78
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| | Reference_block (refs, target), Block_result block when Graph.Uuid.equal target.uuid block.uuid -> | ||
| settle_reference t refs target (Some block.title) |
There was a problem hiding this comment.
Preserve property-backed labels when resolving block references
When a referenced block has a blank title and stores its label in logseq.property/value, this branch replaces the reference with an empty string or whitespace, silently dropping its content from the clipboard. Static inspection shows that the existing presentation path handles this case in Journal_graph_reference_plan.block_source, called through capture_block_label by journal_graph_runtime.ml, whereas the copy path discards properties in block_text and uses only block.title. Preserve the block's property-backed label when resolving references so copying does not erase text that is visible in the app.
Useful? React with 👍 / 👎.
| (match Journal_model.render_copy_references ~lookup ~maximum_bytes:maximum_text_bytes | ||
| fragment.title with |
There was a problem hiding this comment.
Exclude Markdown code from copied reference expansion
When copied text contains a live UUID token inside inline code or a fenced code block, the new renderer replaces that literal token with the target's title, changing the code sample rather than preserving it. Static inspection shows that both reference collection and expansion use fold_references, which recognizes tokens without accounting for Markdown code boundaries; the existing Journal_model.Title parser deliberately treats code as literal, with inline-code behavior covered by test_rich_title_boundaries and test_ast_reference_discovery in test/journal_model_test.ml. Make collection and replacement respect those boundaries while preserving the original Markdown source.
Useful? React with 👍 / 👎.
Summary
Link to Devin session: https://app.devin.ai/sessions/98b65457efb54db3804df2af276c8d02
Open in Devin Desktop: https://app.devin.ai/desktop/session/98b65457efb54db3804df2af276c8d02?variant=devin
Requested by: @RCmerci
🟢 Devin Review found nothing to fix · View findings · Follow Devin's work