refactor(context): support assign response channel while running flow context creating

This commit is contained in:
2026-05-02 16:32:25 +08:00
parent 2b575df3f9
commit afb896e6db
6 changed files with 34 additions and 17 deletions

View File

@@ -46,7 +46,7 @@ public class OnebotGateway extends WebSocketServer implements AgentGateway<Input
@Override
public PartnerRunningFlowContext parseRunningFlowContext(InputData inputData) {
PartnerRunningFlowContext context = PartnerRunningFlowContext.fromUser(inputData.getSource(), inputData.getContent());
PartnerRunningFlowContext context = PartnerRunningFlowContext.fromUser(inputData.getSource(), inputData.getContent(),System.currentTimeMillis(), getChannelName());
inputData.getMeta().forEach(context::putUserInfo);
return context;
}