Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(clients): questions always move a thread out of Working #28515

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

Showing 7 changed files with 6 additions and 26 deletions (loading 4).

x
0 of 7 viewed, 7 left
3 additions and 13 deletionspackages/client-runtime/src/state/entities.test.tsModified
View file
@@ -22,7 +22,7 @@
const environmentId = EnvironmentId.make("environment-v2");
​
describe("V2 client presentation", () => {
- it("keeps async questions in Working until the run completes", () => {
+ it("an async question blocks snooze and wakes a snoozed thread", () => {
const runId = RunId.make("run-async-question");
const running = {
...v2ThreadShell,
@@ -39,22 +39,12 @@
},
};
const active = presentThreadShell(environmentId, running);
- expect(active.hasPendingUserInput).toBe(false);
- expect(isThreadWorking(active)).toBe(true);
expect(canSnooze(active, { now: "2026-06-20T00:05:00.000Z" })).toBe(false);
-​
- const completed = presentThreadShell(environmentId, {
- ...running,
- activeRunId: null,
- status: "completed",
- });
- expect(completed.hasPendingUserInput).toBe(true);
- expect(isThreadWorking(completed)).toBe(false);
expect(effectiveSnoozed(active, { now: "2026-06-20T00:05:00.000Z" })).toBe(false);
});
​
- it("keeps blocking and legacy questions out of Working", () => {
- for (const capability of [{ blocking: true }, {}]) {