Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat: start queued prompts when provider capacity returns #10132

Closedsaphid(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/10132/headopened View on GitHub

Showing 49 changed files with 138 additions and 46 deletions (loading 48).

x
0 of 49 viewed, 49 left
138 additions and 46 deletionsapps/mobile/src/features/threads/ThreadComposer.tsxModified
View file
@@ -14,6 +14,7 @@
collectProviderUsageLimits,
hasProviderUsageLimits,
isUsageLimitsCommand,
+ modelUsageAvailability,
} from "@t3tools/shared/usageLimits";
import { StackActions, useFocusEffect, useNavigation } from "@react-navigation/native";
import type { ReactNode } from "react";
@@ -46,7 +47,7 @@
import { useUniwindTheme } from "../../lib/useUniwindTheme";
import { armAgentAwarenessLiveActivityForLocalWork } from "../agent-awareness/remoteRegistration";
import { scopedThreadKey } from "../../lib/scopedEntities";
-import { composerContextImportsAtom } from "../../state/use-composer-drafts";
+import { composerContextImportsAtom, composerDraftsAtom } from "../../state/use-composer-drafts";
import type { ComposerDocumentAttachment } from "../../lib/composerContext";
import { useProject } from "../../state/entities";
import { scopeProjectRef } from "@t3tools/client-runtime/environment";
@@ -137,7 +138,8 @@
readonly onNativePasteImages: (uris: ReadonlyArray<string>) => Promise<void>;
readonly onRemoveDraftImage: (imageId: string) => void;
readonly onStopThread: () => void;
- readonly onSendMessage: () => Promise<MessageId | null>;
+ readonly onSendMessage: (intent?: "when-available") => Promise<MessageId | null>;
Resolvedby saphid(GitHub profile, opens in a new tab)
+ readonly onCancelProviderWait: () => void;
/** `/usage-limits` resolves locally; the host decides where the report shows. Null clears it. */
readonly onShowUsageLimits: (report: UsageLimitsReport | null) => void;
readonly onUpdateModelSelection: (modelSelection: ModelSelection) => void;