feat: sync platform ai workspace services
This commit is contained in:
@@ -307,11 +307,12 @@ function readAgentEvents(pairingCodeRaw, options = {}) {
|
||||
|
||||
function requestMetaFromPayload(command, payload = {}) {
|
||||
const context = payload?.context && typeof payload.context === "object" ? payload.context : {};
|
||||
const publicUserMessage = payload?.displayMessage || payload?.publicUserMessage || payload?.message;
|
||||
return {
|
||||
command: cleanString(command, 80),
|
||||
threadId: cleanString(payload?.threadId, 160),
|
||||
threadTitle: cleanString(payload?.threadTitle, 240),
|
||||
userMessage: cleanString(payload?.message, 12000),
|
||||
userMessage: cleanString(publicUserMessage, 12000),
|
||||
remoteControlMode: cleanString(context.remoteControlMode, 40),
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user