Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(threads): allow snoozing pending input requests #20058

Mergedsaphid(GitHub profile, opens in a new tab)merged 16 commits intomain fromrefs/pull/20058/headmerged by Yash-Singh1(GitHub profile, opens in a new tab) View on GitHub

Showing 19 changed files with 57 additions and 25 deletions (loading 16).

x
0 of 19 viewed, 19 left
1 addition and 3 deletionsapps/mobile/src/features/home/useThreadListActions.tsModified
View file
@@ -308,9 +308,7 @@
if (!canSnooze(thread, { now: new Date().toISOString() })) {
Dialog.alert(
"Could not snooze thread",
- thread.hasPendingApprovals ||
- thread.hasPendingUserInput ||
- thread.pendingSubagentRequest != null
+ thread.hasPendingApprovals || thread.pendingSubagentRequest != null
? "This thread is waiting on you. Respond to the pending request before snoozing it."
: "This thread is still starting a turn. Try again once it's running.",
55 additions and 21 deletionsapps/mobile/src/features/threads/threadListV2.test.tsModified
View file
@@ -14,7 +14,7 @@
type ThreadMoveAvailability,
} from "./threadOrder";
import type { EnvironmentThreadShell } from "@t3tools/client-runtime/state/shell";
-import { resolveSnoozePresets } from "@t3tools/client-runtime/state/thread-settled";
+import { canSnooze, resolveSnoozePresets } from "@t3tools/client-runtime/state/thread-settled";
import {
CommandId,
EnvironmentId,
@@ -23,6 +23,7 @@
ProjectId,
ProviderInstanceId,
RunId,
+ RuntimeRequestId,