fix: 过滤子进程内部合成消息(model switch breadcrumb)不转发给前端
This commit is contained in:
parent
0393ce927d
commit
6274c0e2be
|
|
@ -462,6 +462,13 @@ export class SessionHandle {
|
||||||
this.emitEvent('message', msg)
|
this.emitEvent('message', msg)
|
||||||
break
|
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': {
|
case 'result': {
|
||||||
this.lastActiveAt = Date.now()
|
this.lastActiveAt = Date.now()
|
||||||
this._status = 'running'
|
this._status = 'running'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user