Skip to content
Source
Sign inSign up
pingdotgg/t3code

perf(server): cut idle CPU use and stop provider event leaks #8187

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 5 commits intomain fromrefs/pull/8187/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

Showing 19 changed files with 122 additions and 3 deletions (loading 16).

x
0 of 19 viewed, 19 left
23 additions and 0 deletionsapps/server/src/orchestration/Layers/ProviderRuntimeIngestion.test.tsModified
View file
@@ -973,6 +973,29 @@
});
​
+ it("ignores provider content deltas that cannot change thread state", async () => {
+ const harness = await createHarness();
+ const initial = await harness.readModel();
+​
+ for (const streamKind of ["reasoning_text", "command_output", "file_change_output"] as const) {
+ harness.emit({
+ type: "content.delta",
+ eventId: asEventId(`evt-ignored-${streamKind}`),
+ provider: ProviderDriverKind.make("codex"),
+ createdAt: "2026-01-01T00:00:00.000Z",
+ threadId: asThreadId("thread-1"),
+ turnId: asTurnId("turn-ignored"),
+ payload: {
+ streamKind,
+ delta: "ignored output",
+ },
+ });
+ }
+​
+ await harness.drain();
+ expect(await harness.readModel()).toEqual(initial);
+ });
+​
it("maps canonical content delta/item completed into finalized assistant messages", async () => {
const harness = await createHarness();
const now = "2026-01-01T00:00:00.000Z";