Merge 99d4bedb08 into ae614d919f
commit
dd0a0a7d65
|
|
@ -532,6 +532,26 @@ export namespace ACP {
|
|||
}
|
||||
return
|
||||
}
|
||||
|
||||
case "session.updated": {
|
||||
const props = event.properties
|
||||
const session = this.sessionManager.tryGet(props.sessionID)
|
||||
if (!session) return
|
||||
if (!props.info.title) return
|
||||
await this.connection
|
||||
.sessionUpdate({
|
||||
sessionId: session.id,
|
||||
update: {
|
||||
sessionUpdate: "session_info_update",
|
||||
title: props.info.title,
|
||||
updatedAt: new Date(props.info.time.updated).toISOString(),
|
||||
},
|
||||
})
|
||||
.catch((error) => {
|
||||
log.error("failed to send session_info_update to ACP", { error })
|
||||
})
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue