Commit Graph

24271 Commits

Author SHA1 Message Date
Tienson Qin
971ccf21f1 update AGENTS.md 2026-05-06 19:04:08 +08:00
Tienson Qin
7c339462d0 fix: keep latest title sync conflict
Store only the latest non-empty server :block/title conflict for a block, clearing previous title conflict candidates before inserting the new one.

Add a regression test covering previous title candidates, empty server titles, and the latest non-empty title.
2026-05-06 19:02:39 +08:00
Tienson Qin
1ed14885cd doc: move old adr to archive 2026-05-06 17:57:40 +08:00
Tienson Qin
aeacf2ad8e fix: shouldn't use catch for promise 2026-05-06 17:42:49 +08:00
Tienson Qin
0980e63711 fix: improve rtc asset sync status
Normalize browser asset paths through the same memory URL flow used by renderer asset IO so graph names with spaces resolve correctly during RTC upload.

Handle async asset read failures in upload as read-asset failures, and surface queued asset uploads plus active asset upload/download counts in the RTC indicator.

Tests cover browser asset path normalization and RTC asset transfer summaries.
2026-05-06 17:40:49 +08:00
Tienson Qin
a111602d7b chore: add debug log for pending txs not push when ws reconnect 2026-05-06 17:00:42 +08:00
rcmerci
7a731c6044 enhance(cli): render block/link in show 2026-05-06 15:29:01 +08:00
PlunderStruck
3b7bc2e5d8 dev: remove developer command cycle 2026-05-06 08:15:04 +08:00
rcmerci
8a7ba2f665 fix(import): preserve emails in quote blocks 2026-05-05 21:13:39 +08:00
Tienson Qin
20c7930727 fix: clear sync inflight on reconnect
Summary:
- Clear pending inflight tx ids when a db-sync websocket closes or is detected stale closed.
- Cover websocket close and stale-loop cleanup so reconnect can flush pending local txs again.

Tests:
- bb dev:test -v frontend.worker.sync.restart-test/ws-close-clears-inflight-before-reconnect-test
- bb dev:test -v frontend.worker.sync.restart-test/stale-loop-marks-non-open-ws-closed-test
- bb dev:test -v frontend.worker.sync.restart-test
2026-05-05 17:50:39 +08:00
Tienson Qin
a544e7f407 fix: guard focused root block indent/outdent and move ops 2026-05-05 16:56:19 +08:00
Will Wu
79f55b978a fix: prevent blocks from being outdented past zoom root in focused view
When viewing a page in zoom/focus mode, pressing Shift+Tab could outdent
blocks past the zoom root boundary, causing them to disappear from the
focused view. This adds a guard in both single-block (indent-outdent) and
multi-block (on-tab) code paths to check for the zoom boundary.

Fixes #12582
2026-05-05 16:56:19 +08:00
rcmerci
882694e4f4 fix(ci): random fails when parallel execution of cli-e2e test
so we are switching it to --jobs 1 for now
2026-05-05 16:24:57 +08:00
rcmerci
0b55e03110 enhance(skill): update logseq-repl 2026-05-05 16:07:12 +08:00
Tienson Qin
619be47fe2 add missing thread api tests for db core 2026-05-05 15:30:41 +08:00
hoellen
797635e349 fix: scope RSA key pair cache by server URL (#12586) 2026-05-05 14:58:16 +08:00
Tienson Qin
6439791230 fix: no unlinked references 2026-05-05 13:44:10 +08:00
Tienson Qin
13779a4047 fix: don't update local tx to 0 except for two cases
1. creating a remote graph
2. uploading a local graph
2026-05-05 13:35:45 +08:00
rcmerci
47407a3d8d fix(import): property value has custom format journal page ref 2026-05-05 12:46:41 +08:00
rcmerci
ca08579d47 enhance(cli): increase timeout for 'sync upload' 2026-05-04 22:43:49 +08:00
rcmerci
ebb0732f45 dev: remove ns logseq.cli.integration-test 2026-05-04 21:54:47 +08:00
rcmerci
0d9fa816c0 fix test 2026-05-04 21:46:39 +08:00
rcmerci
caaf8f4a6b enhance(skill): update logseq-cli 2026-05-04 21:29:45 +08:00
rcmerci
f5b122ddd5 enhance(cli): add --enable-sync to 'graph create' 2026-05-04 21:13:13 +08:00
rcmerci
7488b92407 fix: switch graph if db-worker-node server unreachable 2026-05-04 14:07:03 +08:00
rcmerci
137dd7fefd enhance: unify build-version 2026-05-04 12:31:54 +08:00
rcmerci
2f0a4f37e5 enhance(db-worker-node): restart server on version mismatch 2026-05-04 10:36:20 +08:00
charlie
8b510ea034 fix(marketplace): enhance image tag handling in Markdown content 2026-05-04 08:45:24 +08:00
Tienson Qin
a7672eb69c add server usage skills 2026-05-04 08:18:39 +08:00
Tienson Qin
b8ebdd575c add server usage stats script (#12557)
* enhance(db-sync): add usage stats script

* fix(db-sync): use --local for local D1 scripts

* fix(db-sync): record activity only on successful sync requests

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-05-04 07:59:15 +08:00
Tienson Qin
9bdfa5655d fix: plugins e2e tests 2026-05-04 07:24:56 +08:00
Tienson Qin
7843ac1c81 fix: e2e tests 2026-05-04 00:08:43 +08:00
Tienson Qin
3f78f3a3d2 chore: remove warning on path join with empty dir 2026-05-04 00:02:59 +08:00
Victor239
8b20877f7f fix(electron): repair custom URI scheme links
The npm `open` package (v8.4.2) is CommonJS with `module.exports = open;`
and no `.default` property, so importing it as `["open" :default open-external]`
left `open-external` undefined. Every custom-scheme click (freetube://, tg://,
etc.) reached `open-default-app!`, showed the confirmation dialog, and then
threw `TypeError: ...default is not a function` from inside (default-open url),
which Electron logged as an uncaughtException with no user-visible feedback.

Switch to `:as open-external` so the symbol binds to module.exports itself
(the open function). The neighboring node-fetch import is left as `:default`
because node-fetch v2.7.0 explicitly sets `exports.default = exports` for
ESM-interop, so it actually has a default export.

Regression from d6403b7746 (#12460), which replaced the prior working
`(defonce open (js/require "open"))` with the shadow-cljs ESM-style import.
2026-05-03 23:48:57 +08:00
Tienson Qin
3be77b6bfb remove outdated tests 2026-05-03 23:46:55 +08:00
Tienson Qin
63fab0ca86 Recommmend nightly instead of non-release action artifact 2026-05-03 23:28:11 +08:00
Tienson Qin
c326dbf4e3 fix: lint 2026-05-03 23:24:52 +08:00
Tienson Qin
843dfc78d4 fix: support flat client-ops sqlite export path 2026-05-03 23:23:25 +08:00
Tienson Qin
e8de3cc104 fix: sqlite import 2026-05-03 23:16:37 +08:00
Tienson Qin
c647326d86 fix: remove sqlite file header format check 2026-05-03 22:58:10 +08:00
Tienson Qin
ac102e70fe fix: correct db-worker ui request response args 2026-05-03 22:22:45 +08:00
Tienson Qin
74c2cc9393 fix: Android compile 2026-05-03 21:50:33 +08:00
Tienson Qin
c6ac84cd28 fix: can't export db on browser 2026-05-03 21:24:24 +08:00
Tienson Qin
9145dd41db remove agent session artifact 2026-05-03 20:34:43 +08:00
Tienson Qin
a8a7fdf512 Restored fix 0ca9fe5e64 and added regression test. All 5 client-op tests pass. The test documents that gc-kvs-table! crashes on client-ops db (empty kvs, no schema at addr 0), which is why gc-sqlite-dbs! must exclude client-ops db.
Result: {"status":"keep","metric":0}
2026-05-03 20:28:13 +08:00
Tienson Qin
29f0cb1310 Reverted fix 0ca9fe5e64 and reproduced GC crash on client-ops db. gc-kvs-table! crashes with 'Expected first argument to be a string' because client-ops kvs table is empty (no Datascript schema at addr 0).
Result: {"status":"keep","metric":0}
2026-05-03 20:27:33 +08:00
Tienson Qin
d619745d30 fix: no need to gc client-ops db 2026-05-03 20:18:02 +08:00
Tienson Qin
d8fd169899 fix: duplicated fields in table view
related to https://github.com/logseq/db-test/issues/837
2026-05-03 20:18:02 +08:00
rcmerci
1274db05c4 fix lint 2026-05-03 20:13:42 +08:00
rcmerci
17ae997013 enhance(db-worker): remove direct-pass in thread-api calling 2026-05-03 20:01:16 +08:00