Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(threads): show a usage-limit stop as Limited instead of Failed #10550

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

Showing 27 changed files with 30 additions and 4 deletions (loading 24).

x
0 of 27 viewed, 27 left
6 additions and 2 deletionsapps/mobile/src/features/threads/thread-list-v2-items.tsxModified
View file
@@ -67,6 +67,8 @@
input: { label: "Input", className: "text-adaptive-indigo-600-300" },
working: { label: "Working", className: "text-adaptive-sky-600-400" },
failed: { label: "Failed", className: "text-danger-foreground" },
+ // A usage limit is a wait, not a break, so it takes the approval tone.
+ limited: { label: "Limited", className: "text-warning-foreground" },
};
​
function threadTimeLabel(thread: EnvironmentThreadShell): string {
@@ -890,13 +892,15 @@
</View>
) : null}
<View className="mt-1 flex-row items-center gap-2">
- {status === "failed" && thread.session?.lastError ? (
+ {(status === "failed" || status === "limited") && thread.session?.lastError ? (
<Text
className={cn(
"flex-1 text-xs",
selected
? selectedThreadRowColors.mutedForegroundClassName
- : "text-danger-foreground",
+ : status === "limited"
+ ? "text-warning-foreground"
+ : "text-danger-foreground",
numberOfLines={1}