Repository navigation
Open
logseq/logseq
#13886Description
What happened
The command-palette action Export page EDN data does not copy EDN for the page currently displayed. It shows No page found, and the clipboard remains unchanged.
This reproduces on a native-created local DB page, without importing any data or enabling sync.
Minimal reproduction
- In a local DB graph, create a normal page named
QA-B-Sentinel. - Add one block:
Only in graph B. Save it and leave the page open. - Set a recognizable clipboard value without leaving Logseq: press Ctrl+K, type
QA-CLIPBOARD-CONTROL-20261001, press Ctrl+A then Ctrl+C, and Escape. Do not create that page. - Press Ctrl+K and type
Export page EDN data. - Select Export page EDN data in the Commands group, not the Create page result, and press Enter.
- Observe the No page found warning while
QA-B-Sentineland its block remain visibly open. - Press Ctrl+K and Ctrl+V. The input receives the original
QA-CLIPBOARD-CONTROL-20261001marker, not EDN. Escape without creating a page.
Expected
The command copies the visible page and its content as EDN to the clipboard. This command is a clipboard export; no file-download dialog is expected.
Actual and frequency
- The warning is No page found.
- No page EDN replaces the clipboard marker.
- Reproduced 2/2 times on the one-block native-created page, including a repeat after Ctrl+R.
- In the reload repeat, clicking into the block before Ctrl+K did not help.
- The same command also failed on an imported page, using both a mouse click and keyboard selection. Import is not required.
- Page content remained intact.
Environment
- Official
logseq/logseqmaster:3c27f1e875d524cfd76e0dc32687cb1f06a0f82e - Development build, Logseq 2.0.1
- Electron 42.3.0, Chromium 148.0.7778.180
- Debian GNU/Linux 13 (trixie), x86_64
- Renderer and Node DB worker both verified at revision
3c27f1e, build time 2026-10-01 08:58:50 UTC - Native GUI mouse/keyboard reproduction, separate synthetic local DB graphs, no added plugins or sync
- Web app not tested because the available browser could not access the local dev app
Runtime evidence and suspected cause
Read-only inspection of the live renderer, with a normal page visible after navigation, returned nil from frontend.util.page/get-current-page-id. The compiled export function and its command action were present.
The following source chain appears to explain the failure; this is a source-based diagnosis, not a tested fix:
- Ctrl+K opens search after escaping editing and clearing editor state.
- get-current-page-id reads only the last editor arguments. It does not consult the current route, despite its docstring.
- export-page-data takes the No page found path when that ID is nil.
- Command-palette execution invokes the registered action.
Related reports checked
- Error when trying to import exported block #1004 concerns importing an already-exported single block. This failure occurs before producing page EDN and does not involve import.
- logseq/logseq#12929 preserves context for Import EDN, but its current diff does not change this page-export handler or page-ID lookup.
- Export multiple highlighted blocks as EDN data #232 and Export Page as EDN not including nodes #699 concern EDN that was produced but omitted content. Here the visible page cannot be resolved and the clipboard remains unchanged.
Metadata
Metadata
Assignees
Labels
No labels
Activity
yuxi-liu-wired commentedon Oct 27, 2026
Fixed in logseq/logseq#13886 (fix(import): EDN export and import keep pages, history, search and the target block). Its description has the cause and the test that pins it; it fails on current master and passes with the fix.
fix(export): export the page of a block that was opened as a page
fix(export): resolve the current page from the route for page EDN export
fix(export): export the page of a block that was opened as a page
fix(export): resolve the current page from the route for page EDN export
fix(export): export the page of a block that was opened as a page
fix(export): resolve the current page from the route for page EDN export
fix(export): export the page of a block that was opened as a page
fix(export): resolve the current page from the route for page EDN export
fix(export): export the page of a block that was opened as a page
fix(export): resolve the current page from the route for page EDN export
fix(export): export the page of a block that was opened as a page
fix(export): resolve the current page from the route for page EDN export
fix(export): export the page of a block that was opened as a page
fix(export): resolve the current page from the route for page EDN export
fix(export): export the page of a block that was opened as a page
fix(export): resolve the current page from the route for page EDN export
fix(export): export the page of a block that was opened as a page
fix(export): resolve the current page from the route for page EDN export
fix(export): export the page of a block that was opened as a page
fix(export): resolve the current page from the route for page EDN export
fix(export): export the page of a block that was opened as a page
fix(export): resolve the current page from the route for page EDN export
fix(export): export the page of a block that was opened as a page
fix(export): resolve the current page from the route for page EDN export
fix(export): export the page of a block that was opened as a page
fix(export): resolve the current page from the route for page EDN export
fix(export): export the page of a block that was opened as a page