Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): bound Codex subagent progress events #5682

ClosedAndrey170170(GitHub profile, opens in a new tab)wants to merge 4 commits intomain fromrefs/pull/5682/headopened View on GitHub

Showing 4 changed files with 138 additions and 19 deletions (loading 2).

x
0 of 4 viewed, 4 left
70 additions and 2 deletionsapps/server/src/provider/Layers/CodexCollabRuntime.integration.test.tsModified
View file
@@ -34,6 +34,30 @@
*/
function buildScript() {
const captured = wireFixture.notifications;
+ const progressBurst = captured.flatMap((entry) => {
+ const item = (entry.params as { item?: { type?: string } }).item;
+ const threadId = (entry.params as { threadId?: string }).threadId;
+ if (entry.method === "thread/tokenUsage/updated" && threadId === CHILD_A) {
+ return [entry, entry, entry];
+ }
+ if (
+ (entry.method === "item/started" || entry.method === "item/completed") &&
+ item?.type === "collabAgentToolCall"
+ ) {
+ return [
+ entry,
+ {
+ ...entry,
+ params: {
+ ...entry.params,
+ threadId: CHILD_A,
+ turnId: `${CHILD_A}-turn-1`,
+ },
+ },
+ ];
+ }
+ return [entry];
+ });
const extras = [