The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 22, 08:15 UTC
perf(client): avoid temporary arrays in inbox snapshots (#27467)
Utkarsh Patil committed
Nov 2, 2026 at 03:15 UTC
a98b6245eb786854d178e241fdbab7333a5bc957
1 file changed
+2
-1
packages/client-runtime/src/state/threadInbox.ts
+2
-1
@@ -227,7 +227,8 @@ export function createInboxReturnTracker() {
227
}
228
}
229
schedule();
230
- const observedWorking = new Map([...states].map(([key, state]) => [key, state.working]));
230
+ const observedWorking = new Map<string, boolean>();
231
+ states.forEach((state, key) => observedWorking.set(key, state.working));
232
const observedReturns = new Map(returns);
233
return {
234
isWorking: (thread) => observedWorking.get(keyOf(thread)) ?? isThreadWorking(thread),