Commit Graph

20 Commits

Author SHA1 Message Date
Youzini-afk
7d827f80b7 fix(recall): prefer user-floor cache on reroll 2026-04-30 03:58:08 +08:00
Youzini-afk
a9f575d98a fix(recall): reuse persisted recall on reroll 2026-04-30 03:30:06 +08:00
Youzini-afk
a070e04e56 fix(panel): prevent UI freeze when opening panel during extraction
Root cause: onStreamProgress callback fires 20-50x/sec during LLM streaming,
each calling setLastExtractionStatus with syncRuntime=true (default), which
triggers setRuntimeStatus -> refreshPanelLiveState() -> _refreshDashboard().
_refreshDashboard iterates all graph nodes (.filter x2) and performs heavy
DOM updates each time. When the panel is open, this blocks the main thread.

Fixes:
1. panel.js: Add requestAnimationFrame throttle to refreshLiveState() with
   minimum 80ms gap between actual DOM refreshes. Rapid calls are collapsed
   into a single animation frame, preventing main thread saturation.
2. extraction-controller.js: Change onStreamProgress to use syncRuntime=false
   so streaming updates no longer trigger setRuntimeStatus (which would also
   update the floating ball on each chunk).
3. recall-controller.js: Same fix for recall onStreamProgress which had
   the identical syncRuntime=true issue.
2026-04-29 17:03:49 +08:00
Youzini-afk
899774d636 feat: add maintenance concurrency modes 2026-04-29 14:25:16 +08:00
Youzini-afk
a7e2edac88 refactor(authority): complete v0.6-only sql/blob/jobs rollout 2026-04-28 21:45:59 +08:00
Youzini-afk
6c8c56df62 feat(authority): add recall candidate provider 2026-04-28 15:01:34 +08:00
Youzini-afk
d2c3d1f5dd Add persistence and retrieval observability with native delta gating 2026-04-21 20:32:20 +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
dc5051f2ef feat: shared ranking core + prompt node references; recall reuses shared core for base query/vector/diffusion; remove retriever-local duplicate helpers; add regression tests 2026-04-12 14:59:37 +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
322752bb43 feat: improve shujuku-compatible extraction and recall input 2026-04-11 16:05:34 +08:00
Youzini-afk
6882087c67 Refactor recall LLM selection protocol 2026-04-10 16:24:53 +08:00
Youzini-afk
ef154b5950 Fix hidden-message leakage into plugin prompts 2026-04-10 14:06:26 +08:00
Youzini-afk
23624122f3 Fix stable CI regressions 2026-04-09 15:17:01 +08:00
Youzini-afk
e4feda5471 Add hierarchical summary frontier system 2026-04-09 14:50:52 +08:00
Youzini-afk
323e1fd5b0 feat: add story timeline layer 2026-04-08 22:41:49 +08:00
Youzini-afk
d7989303d9 feat: support multi-owner scene recall anchors 2026-04-08 21:29:36 +08:00
Youzini-afk
a4fed87e6e feat(cognition): finish multi-character knowledge and monitor workflow 2026-04-08 18:21:38 +08:00
Youzini-afk
feec17f3e3 Reorganize modules into layered directories 2026-04-08 01:17:57 +08:00