You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
现象
两个 dsh 进程共享同一个会话文件时(例如:IM bot 跑在独立 profile/进程,用户在 dsh web 里查看该会话):
session/end-seed——即 web 把它 resume/接管 了;session.history一直从 web 进程的内存快照提供,外部进程写入磁盘的新事件永远不出现;分析
historySourceFor优先 attached:只要ctx.sessions.get(sessionId)命中,就不再读盘;session.models等)走 agent resolver 的"冷会话 resume 一次"逻辑,把会话挂进本进程——只读浏览也产生了接管副作用;建议
session.models、重命名预览等只读查询应能在不 resume 的情况下从日志/头部读取;临时规避
把 IM 插件直接装进 web profile(
dsh plugin --profile web add …),让 bot 与 web 同进程、单写入者——显示即实时。已在 QQ bot 场景实测可行。All reactions