Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(goals): track native provider goals across clients #11516

Closedmaria-rckswants to merge 19 commits intomain fromrefs/pull/11516/headopened View on GitHub

Showing 75 changed files with 100 additions and 0 deletions (loading 72).

x
0 of 75 viewed, 75 left
92 additions and 0 deletionsapps/mobile/src/features/threads/ThreadComposer.tsxModified
View file
@@ -7,6 +7,8 @@
PROVIDER_SEND_TURN_MAX_ATTACHMENTS,
PROVIDER_SEND_TURN_MAX_INPUT_CHARS,
type EnvironmentId,
+ type ThreadGoal,
+ type ThreadId,
type MessageId,
type ModelSelection,
type OrchestrationThreadShell,
@@ -59,6 +61,9 @@
import { useProject } from "../../state/entities";
import { scopeProjectRef } from "@t3tools/client-runtime/environment";
​
+import { useAtomCommand } from "../../state/use-atom-command";
+import { threadEnvironment } from "../../state/threads";
+​
import { AppText as Text } from "../../components/AppText";
import { ComposerAttachmentButton } from "../../components/ComposerAttachmentButton";
import {
@@ -275,6 +280,82 @@
​
+const goalStatusLabels: Record<ThreadGoal["status"], string> = {
+ active: "Goaling",
+ paused: "Goal paused",
+ blocked: "Goal blocked",
+ usageLimited: "Usage limit",