Skip to content

A desktop coding agent with free access to frontier models.

TypeScript

fix: claude chats keep their package steps

ogsamrate5b7b0bf76bd
diff --git a/apps/server/src/context/PARITY.sha256 b/apps/server/src/context/PARITY.sha256
index 0356e78f..62b39974 100644
--- a/apps/server/src/context/PARITY.sha256
+++ b/apps/server/src/context/PARITY.sha256
@@ -5,7 +5,7 @@ b7d4fad94c133cb4303db934a5bb8e84dcb09dcc6720dc9cc7245d7c8205fa11 commands.ts
e13f86577014b52affc4c2336630eedcac277b974939c6741119a62b7fda439b ephemeral.ts
1bd9abb65af931b6f32d0334c97fbfedba7ab70c9a86351dfbc92ef208ec1f33 exec-witness.ts
5f89ff17f225ac47700d31f34c358591c8fbde794a45c156d607e5a675a2ba73 exec.ts
-053a500ff6397c5594affed67ea04da79560c74a8010c353ba3a1596a57fc86f index.ts
+dabba3712994e5daffe3ccc342e45a2b547bdc9bcb3e40a7592ed234b5556fac index.ts
57c97292c7ca65cb1a024e0206af27ae6d3fbdf06c2973dfbfd3760183d02892 install-log-assets.ts
4a76b51a64d76074af205e34f2b24df214b11f651988cf08cf47ef04c9f72de9 install-log.ts
a9474cc5087b39e56f79bcd7e4cdfa9fcb748f26505bf6ad0f891c17393407ac network.ts
diff --git a/apps/server/src/context/index.ts b/apps/server/src/context/index.ts
index c56122d7..ba7f9e23 100644
--- a/apps/server/src/context/index.ts
+++ b/apps/server/src/context/index.ts
@@ -437,10 +437,12 @@ export class ContextCapture {
for (const call of calls) {
let match = matchCall(call, windows, now);
if (!match) {
- if (!final && now - call.start < UNMATCHED_INSTALL_MS) continue;
// The session its wrapper names (OMNIRUSH_SESSION), when it is one of these.
const named = call.meta.session ?? call.hooks[0]?.meta.session;
const own = named ? this.sessions.get(named) : undefined;
+ // A call that names its chat but no engine call never gets a window to wait for: Claude Code's own
+ // commands, its sub-agents' among them (the Claude provider names the chat, not each call).
+ if (!final && !(own && !notedCallId(call)) && now - call.start < UNMATCHED_INSTALL_MS) continue;
match = own ? { sessionId: own.id, callId: null, start: call.start, end: null, cwd: null, command: null, turn: own.turn } : active.length === 1 ? { sessionId: active[0]!.id, callId: null, start: call.start, end: null, cwd: null, command: null, turn: active[0]!.turn } : null;
}
const state = match ? this.sessions.get(match.sessionId) : undefined;