fix: 过滤子进程内部合成消息(model switch breadcrumb)不转发给前端

This commit is contained in:
DoSun 2026-05-09 11:43:10 +08:00
parent 0393ce927d
commit 6274c0e2be

View File

@ -462,6 +462,13 @@ export class SessionHandle {
this.emitEvent('message', msg)
break
}
case 'user': {
if (msg.isReplay) break
const content = typeof msg.content === 'string' ? msg.content : ''
if (content.includes('<local-command-stdout>')) break
this.emitEvent('message', msg)
break
}
case 'result': {
this.lastActiveAt = Date.now()
this._status = 'running'