Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(clients): show Input for async questions while the agent works #24922

Closedesukram(GitHub profile, opens in a new tab)wants to merge 9 commits intomain fromrefs/pull/24922/headopened View on GitHub

Showing 15 changed files with 53 additions and 4 deletions (loading 12).

x
0 of 15 viewed, 15 left
2 additions and 1 deletionapps/mobile/src/features/home/useThreadListActions.tsModified
View file
@@ -1,5 +1,6 @@
import type { ThreadMoveDestination } from "../threads/threadOrder";
import type { EnvironmentThreadShell } from "@t3tools/client-runtime/state/shell";
+import { threadHasOpenQuestion } from "@t3tools/client-runtime/state/models";
import * as ThreadUndo from "@t3tools/client-runtime/state/thread-undo";
import { showThreadUndoNotice } from "./thread-undo-notice";
import { canSnooze, effectiveSnoozed } from "@t3tools/client-runtime/state/thread-settled";
@@ -342,7 +343,7 @@
Dialog.alert(
"Could not snooze thread",
thread.hasPendingApprovals ||
- thread.hasPendingUserInput ||
+ threadHasOpenQuestion(thread) ||
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.",
30 additions and 3 deletionsapps/mobile/src/features/threads/thread-list-v2-items.tsxModified
View file
@@ -24,6 +24,7 @@
import {
formatWorkingDurationLabel,
resolveThreadWorkingStartedAt,
+ threadWorksPastQuestion,
} from "@t3tools/client-runtime/state/models";
import { AuthOrchestrationOperateScope, type EnvironmentMachineKind } from "@t3tools/contracts";
import { canSnooze, resolveSnoozePresets } from "@t3tools/client-runtime/state/thread-settled";
@@ -680,6 +681,7 @@