feat: sync platform ai workspace services

This commit is contained in:
Codex
2026-06-13 11:34:40 +03:00
parent 5e0204b049
commit 385e2732e8
8 changed files with 2039 additions and 59 deletions
+2 -1
View File
@@ -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),
};
}