Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

Merge remote-tracking branch 'origin/main' into feat/mobile-ios-android

Dev jacobab73095e618e
diff --cc cli/src/backendSocket.ts
index 47650b0df,e6ace3d02..438e59236
--- a/cli/src/backendSocket.ts
+++ b/cli/src/backendSocket.ts
@@@ -1255,13 -1274,9 +1274,13 @@@ export class BackendSocket
this.sendTo(connId, { type: resultType, payload: { requestId, ...payload } })
return
}
- if (connId && this.e2ee.hasSession(connId) && (ENCRYPTED_RPC_RESULT_TYPES.has(resultType) || SHARE_RESULT_TYPES.has(resultType))) {
+ if (connId && this.e2ee.hasSession(connId) && encryptRpcResult(resultType)) {
let replyPayload = payload
- if (resultType === 'agent_recent_result') {
+ // ⚠️ The DIAL's frame budget, so only a dial's reply is fitted to it. The phone app and a remote
+ // desktop are `web` sessions and search this reply for the agent's latest answer: fitted, a reply
+ // over ~15KB dropped to one event without its `fullText`, so any agent doing real work — long
+ // answers — could not be found by what it had just said.
+ if (resultType === 'agent_recent_result' && this.e2ee.sessionRole(connId) === 'device') {
const trim = fitRecentReplyPayloadForDevice(
payload,
(candidate) => this.e2ee.rpcReplyFrameBytes(connId, resultType, requestId, candidate),