Commit Graph

929 Commits

Author SHA1 Message Date
Hao19911125
a0a52415a4 Merge branch 'Youzini-afk:main' into main 2026-04-03 15:54:25 +08:00
Youzini-afk
12f77e234d fix: harden recall card display takeover 2026-04-03 15:48:18 +08:00
Hao19911125
9429f5e139 Refresh recall card UI after immediate recall 2026-04-03 15:47:28 +08:00
youzini
3e6cfc2473 Merge pull request #3 from Hao19911125/main
显示框修正
2026-04-03 15:29:38 +08:00
Hao19911125
29906897ae Merge upstream/main: resolve format-only conflicts
Adopt upstream multi-line formatting for chat-history.js and
tests/chat-history.mjs. Also brings in upstream .gitignore,
settleExtractionStatusAfterHistoryRecovery null-safety fix,
and getSmartTriggerDecision index-aware extraction filtering.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-03 15:10:21 +08:00
Hao19911125
a9704789a4 Default recall card display to beautify only 2026-04-03 14:54:44 +08:00
Hao19911125
d91aa95069 Add recall card user input display modes 2026-04-03 14:44:01 +08:00
Youzini-afk
715ae0ca05 chore: stop tracking local claude plans 2026-04-03 14:43:03 +08:00
Youzini-afk
613e9f17fb chore: ignore local dependency artifacts 2026-04-03 14:41:30 +08:00
Youzini-afk
64188c2559 Restore extraction visibility for managed hidden messages 2026-04-03 14:27:28 +08:00
Hao19911125
a705b2e18d Merge branch 'Youzini-afk:main' into main 2026-04-03 13:51:46 +08:00
Youzini-afk
48c8a7169c Fix sync fallback, hide recovery, and planner roles 2026-04-03 13:17:29 +08:00
Hao19911125
4e43c0691b Support extraction visibility via managed hide range 2026-04-03 13:16:52 +08:00
youzini
820dc8c77e Merge pull request #2 from Hao19911125/main
剧情编排+修复
2026-04-03 12:59:25 +08:00
Hao19911125
97e454449b Preserve hidden context for extraction 2026-04-03 12:36:29 +08:00
Hao19911125
f48b84af9e Fix timer wrapper safety in event bindings 2026-04-03 11:50:52 +08:00
Hao19911125
6a91e5c958 Fix message received microtask scheduling 2026-04-03 11:14:25 +08:00
Hao19911125
da52869ae8 Fix processed message hash migration 2026-04-03 10:45:05 +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
Hao19911125
bff7ad8421 Remove tilde from sync filenames to fix upload 400 errors
The ST file upload API rejects '~' characters. Replace tilde separators
with hyphens and strip '~' from the filename sanitization allowlist.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-02 22:49:18 +08:00
Hao19911125
2fbc46d8a1 Fix manual hide apply and clear panel actions 2026-04-02 22:32:06 +08:00
Hao19911125
5a5f495536 Sanitize sync backup filenames for remote upload 2026-04-02 22:15:01 +08:00
Hao19911125
2d9718ddc6 Default Ena Planner to disabled for new users 2026-04-02 22:05:44 +08:00
Hao19911125
2f843fd443 Make clear hide unhide the full chat 2026-04-02 21:54:50 +08:00
Hao19911125
2e3d08cfa2 Ignore managed hide flag in history hashes 2026-04-02 21:49:59 +08:00
Hao19911125
6ad234cd06 Fix hide scheduler timer binding 2026-04-02 21:42:00 +08:00
Hao19911125
e77233f020 Merge branch 'Youzini-afk:main' into main 2026-04-02 21:34:36 +08:00
Hao19911125
56d342fd45 Add native hide support for old-message hiding 2026-04-02 21:33:20 +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
Hao19911125
59a0014df0 Merge pull request #3 from Hao19911125/codex/planner-recall-handoff-reuse
Add planner recall handoff reuse
2026-04-02 19:08:19 +08:00
Hao19911125
f7255d1418 Add planner recall handoff reuse 2026-04-02 19:06:24 +08:00
Hao19911125
ee7f13523b Merge pull request #2 from Hao19911125/codex/ena-planner-bme
Expose Ena Planner settings in panel
2026-04-02 16:14:10 +08:00
Hao19911125
c63081eb3e Merge branch 'Youzini-afk:main' into main 2026-04-02 16:12:32 +08:00
Hao19911125
69844e0693 Expose Ena Planner settings in panel 2026-04-02 16:10:54 +08:00
Youzini-afk
03ec52d4c5 feat: add message hiding assistant 2026-04-02 16:05:29 +08:00
Hao19911125
fc8a5ffaec Merge pull request #1 from Hao19911125/codex/ena-planner-bme
Add Ena Planner integration for ST-BME
2026-04-02 16:01:08 +08:00
Hao19911125
c75083a456 Add Ena Planner integration for ST-BME 2026-04-02 15:56:24 +08:00
Youzini-afk
c711ff17f7 fix: harden auto extraction trigger flow 2026-04-02 14:46:09 +08:00
Youzini-afk
6f8554e11a feat: improve retrieval recall and maintenance undo 2026-04-01 22:37:29 +08:00
Youzini-afk
1dc87245a7 fix: 修复图谱可读性检查在ST插件环境下误判
1. isGraphReadableForRecall: 移除loadState!==LOADING时的硬性阻断,
   改为始终检查运行时图谱结构。持久化状态机可能因getCurrentChatId()
   返回空而卡在NO_CHAT,但图谱数据已通过IndexedDB probe加载

2. hasReadableRuntimeGraphForRecall: 放宽chatId匹配要求,
   当chatId不可用时(ST插件环境),只要图谱有节点/边就允许召回
2026-04-01 17:05:47 +08:00
Youzini-afk
3790f26082 diag+fix: 添加recall诊断日志 + 修复用户输入获取
诊断:recall-controller.js 添加图谱/设置/可读性状态日志
修复:buildGenerationAfterCommandsRecallInput 允许normal类型在chat中有用户消息时继续
修复:buildNormalGenerationRecallInput 添加 getLatestUserChatMessage 兜底
2026-04-01 16:55:52 +08:00
Youzini-afk
b75203d6c8 fix: 修复GENERATION_AFTER_COMMANDS无法获取用户输入的两个关键bug
1. buildGenerationAfterCommandsRecallInput: 对normal类型不再因targetUserMessageIndex
   非有限值而提前返回,改为检查chat中是否存在任何用户消息后决定是否执行

2. buildNormalGenerationRecallInput: 新增getLatestUserChatMessage兜底——
   当GENERATION_AFTER_COMMANDS触发时ST可能已追加空assistant消息导致
   getLastNonSystemChatMessage返回assistant,现在通过反向扫描找到真正的用户消息
   (与shujuku参考实现一致)
2026-04-01 16:44:19 +08:00
Youzini-afk
d8aa795867 diag: 添加召回管线诊断日志 [ST-BME:DIAG] 2026-04-01 16:33:28 +08:00
Youzini-afk
ddc654eb1a fix: 修复召回拦截管线三个致命bug
1. recordRecallSentUserMessage 不再在 MESSAGE_SENT 阶段清空
   pendingRecallSendIntent/pendingHostGenerationInputSnapshot/transactions,
   避免 GENERATION_AFTER_COMMANDS 找不到用户输入而跳过召回

2. resolveGenerationRecallDeliveryMode 将 GENERATION_AFTER_COMMANDS
   从 deferred 改为 immediate,使召回完成后通过 setExtensionPrompt 即时注入

3. onGenerationAfterCommandsController 在 immediate 模式下完成
   runRecall 后直接返回(注入已在 applyRecallInjection 内完成),
   GENERATE_BEFORE_COMBINE_PROMPTS 保留 deferred rewrite 兜底
2026-04-01 16:16:31 +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