Commit Graph

65 Commits

Author SHA1 Message Date
Youzini-afk
05083ef5f0 fix: clear stale accepted commit marker after deleting local IndexedDB caches
When users delete local BME IndexedDB via UI actions (delete current/all
IDB), the chat metadata's st_bme_commit_marker was not cleared. This left
an accepted high-revision promise with no local DB backing, causing
persist-mismatch:indexeddb-behind-commit-marker and blocking graph load
indefinitely.

- index.js: add clearCurrentChatCommitMarker() helper and expose via runtime
- ui-actions-controller.js: call clearCurrentChatCommitMarker before
  syncGraphLoadFromLiveContext after IDB deletion
- p0-regressions.mjs: regression test asserting marker is cleared before
  reload after current-IDB deletion
2026-04-12 20:07:05 +08:00
Youzini-afk
913a102b39 fix: backend vector state marked dirty on sync/restore import and query failure
- sync/bme-sync.js: conservatively clear backend hash mappings and mark
  vectorIndexState dirty before importing remote snapshots via download,
  merge, and cloud backup restore, preventing stale clean-looking state
  after cross-device sync or restore
- vector/vector-index.js: mark backend vector state dirty on real backend
  query failures (HTTP/network) instead of silently returning empty results
- regression: indexeddb-sync.mjs covers download/restore/merge import
  dirty marking; p0-regressions.mjs covers backend query failure dirtying
2026-04-12 19:42:45 +08:00
Youzini-afk
47ffd5413d refactor(terminology): 层级总结为主路径,synopsis 标记为旧式全局概要
- README: 明确 summaryState 为主总结体系,legacy synopsis 为兼容兜底
- prompt-profiles: synopsis 任务标签改为「小总结」
- schema/task-graph-stats/panel: synopsis 节点显示为「全局概要(旧)」
- index.js: fallback 状态文案改为「旧式全局概要生成/更新中」
- p0-regressions: 同步更新断言字符串
2026-04-12 17:58:05 +08:00
Youzini-afk
64dec0df2b recall: sectioned recentMessages with context/target split for LLM prompt
- prompt-builder.js: add RECALL_TARGET_CONTENT_HEADER, update splitSectionedTranscriptPayloadMessage to recognize recall-specific target header
- retriever.js: add buildRecallSectionedTranscript helper, format recentMessages as sectioned transcript with context-review and recall-target headers for prompt building while keeping flat string[] for ranking
- p0-regressions.mjs: add testRecallUsesSectionedPromptMessagesForContextAndTarget regression asserting two system messages with correct transcriptSection and headers
2026-04-12 16:07:38 +08:00
Youzini-afk
96b43c7860 feat: migrate compress/consolidation/reflection graphStats to shared ranking core + prompt node refs
- New maintenance/task-graph-stats.js: shared helper wrapping rankNodesForTaskContext + createPromptNodeReferenceMap
- extractor.js: extract and reflection graphStats now use buildTaskGraphStats
- compressor.js: compression graphStats uses shared helper, excludes current batch from relevant ranking
- consolidator.js: consolidation graphStats uses shared helper, excludes new nodes from relevant ranking
- index.js: passes schema + embeddingConfig into generateReflection
- p0-regressions.mjs: added graphStats assertions for compress/consolidation/reflection (prompt-facing refs, no raw UUIDs)
2026-04-12 15:27:22 +08:00
Youzini-afk
9becc23526 fix(ux): quiet expected history recovery toasts 2026-04-11 20:36:26 +08:00
Youzini-afk
42bd85b0aa fix(recall): reuse persisted recall on history rerolls 2026-04-11 20:02:52 +08:00
Youzini-afk
0cb95c4f2b phase2-4 recall prompt-flow hardening 2026-04-11 18:51:59 +08:00
Youzini-afk
1834bc1d24 refactor: stabilize persistence delta commit flow 2026-04-11 13:57:03 +08:00
Youzini-afk
eaac52473e Fix CI test compatibility on Node 20 2026-04-10 15:14:19 +08:00
Youzini-afk
3be915ba7a Fix host import paths after directory reorganization 2026-04-08 01:39:45 +08:00
Youzini-afk
feec17f3e3 Reorganize modules into layered directories 2026-04-08 01:17:57 +08:00
Youzini-afk
d8cff92434 Refactor host regex reuse and injection sanitization 2026-04-08 00:10:20 +08:00
Youzini-afk
c8af45bd35 Add delayed auto extraction mode and fix AGPL license 2026-04-07 22:24:04 +08:00
Youzini-afk
854e3a7a79 Harden graph recovery and shadow persistence 2026-04-07 17:18:18 +08:00
Youzini-afk
aa1d194c28 Fix manual action UI status and compression result guards 2026-04-07 12:32:02 +08:00
Youzini-afk
935e1d7839 Refine extraction stage notices for post-processing 2026-04-06 21:26:47 +08:00
Hao19911125
97fb8e4e2b Merge branch 'Youzini-afk:main' into main 2026-04-05 22:18:26 +08:00
Hao19911125
08f82f2195 Skip trivial user input recall flows 2026-04-05 22:17:39 +08:00
Youzini-afk
89754abc2d Fix prompt payload fallback for synopsis tasks 2026-04-05 21:38:07 +08:00
Youzini-afk
28049d89bc Fix manual maintenance action execution feedback 2026-04-05 19:11:15 +08:00
Youzini-afk
3446a44387 Fix recall card refresh after rendered messages 2026-04-05 18:53:33 +08:00
Youzini-afk
782d7fb3cd Fix recall card mounting for current user messages 2026-04-05 17:45:53 +08:00
Youzini-afk
f998553ab0 Revert "Merge PR #7: notice display and MVU diagnostics"
This reverts commit cdf6111482, reversing
changes made to 0d8dcb63d2.
2026-04-05 17:16:05 +08:00
Youzini-afk
cdf6111482 Merge PR #7: notice display and MVU diagnostics 2026-04-05 16:54:22 +08:00
Youzini-afk
0d8dcb63d2 Fix extraction payload normalization 2026-04-05 16:28:37 +08:00
Hao19911125
ca3fc8fc2f Harden legacy extraction and recall JSON parsing 2026-04-05 15:24:01 +08:00
Youzini-afk
5d11a736ee Add explicit auto compression toggle 2026-04-04 16:14:26 +08:00
Youzini-afk
f367b8989c Refine automatic consolidation and compression triggers 2026-04-04 15:54:39 +08:00
Youzini-afk
4bbbd4d09d fix recall card binding lag 2026-04-04 02:56:04 +08:00
Youzini-afk
0220609018 Fix recall card retry when newer message DOM lags 2026-04-04 01:52:32 +08:00
Youzini-afk
7bc6fda4f8 Fix delayed recall card mount on new user messages 2026-04-04 01:28:26 +08:00
Youzini-afk
746f8cf08b Fix recall card persistence backfill 2026-04-04 00:01:09 +08:00
Youzini-afk
f2c35b725a Stabilize recall UI persistence recovery 2026-04-03 23:04:06 +08:00
Youzini-afk
338a03aa1c Fix recall rerank stability and card binding 2026-04-03 16:37:23 +08:00
Youzini-afk
12f77e234d fix: harden recall card display takeover 2026-04-03 15:48:18 +08:00
Hao19911125
e505f6ac50 Guard auto extraction microtask scheduling 2026-04-03 07:10:01 +08:00
Hao19911125
2a6d15e036 Fix reroll history consistency 2026-04-03 00:22:53 +08:00
Youzini-afk
c5edbf6046 Fix extraction defer and dry-run recall guards 2026-04-02 19:46:18 +08:00
Youzini-afk
839cad7aff fix: advance extraction history after core success 2026-04-02 19:33:07 +08:00
Youzini-afk
c711ff17f7 fix: harden auto extraction trigger flow 2026-04-02 14:46:09 +08:00
Youzini-afk
83f8f24f1c fix: defer recall injection to pre-send rewrite 2026-04-01 15:24:42 +08:00
Youzini-afk
bf3a24261b fix: stabilize recall persistence regression coverage 2026-04-01 01:37:20 +08:00
Youzini-afk
7d71d1015e fix: harden history recovery and graph persistence regressions 2026-03-31 22:48:48 +08:00
Youzini-afk
1098c33a93 fix: finalize phase0 and phase1 persistence regressions 2026-03-31 20:04:42 +08:00
Youzini-afk
d5b4b7e1dc fix: freeze recall input from host lifecycle 2026-03-31 16:33:40 +08:00
Youzini-afk
d8710f45f1 fix: restore before-combine recall gating 2026-03-31 15:22:08 +08:00
Youzini-afk
4c58121cce fix: restore before-combine recall interception provisional binding 2026-03-31 13:55:26 +08:00
Youzini-afk
4925810064 fix: rerender expanded recall card content on persisted update 2026-03-31 13:13:16 +08:00
Youzini-afk
b0f9d191bd fix: finalize deepfix p2 recall binding and p3 validation matrix 2026-03-31 03:53:53 +08:00