fix(session): restore thread and legacy compatibility

This commit is contained in:
Hoshina
2026-04-08 00:32:53 +08:00
parent a827d01d7c
commit 296077eabf
18 changed files with 568 additions and 46 deletions
+4
View File
@@ -805,6 +805,8 @@ func outboundTurnMetadata(
func outboundMessageForTurn(ts *turnState, content string) bus.OutboundMessage {
agentID, sessionKey, scope := outboundTurnMetadata(ts.agent.ID, ts.sessionKey, ts.opts.Dispatch.SessionScope)
return bus.OutboundMessage{
Channel: ts.channel,
ChatID: ts.chatID,
Context: outboundContextFromInbound(
ts.opts.Dispatch.InboundContext,
ts.channel,
@@ -2827,6 +2829,8 @@ turnLoop:
parts = append(parts, part)
}
outboundMedia := bus.OutboundMediaMessage{
Channel: ts.channel,
ChatID: ts.chatID,
Context: outboundContextFromInbound(
ts.opts.Dispatch.InboundContext,
ts.channel,