Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(app): show threads from unreachable environments as offline #8935

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

Showing 12 changed files with 57 additions and 1 deletion (loading 9).

x
0 of 12 viewed, 12 left
1 addition and 0 deletionsapps/mobile/src/features/threads/thread-list-v2-items.tsxModified
View file
@@ -65,6 +65,7 @@
approval: { label: "Approval", className: "text-warning-foreground" },
input: { label: "Input", className: "text-adaptive-indigo-600-300" },
working: { label: "Working", className: "text-adaptive-sky-600-400" },
+ offline: { label: "Offline", className: "text-foreground-muted" },
failed: { label: "Failed", className: "text-danger-foreground" },
};
​
38 additions and 0 deletionsapps/mobile/src/features/threads/threadListV2.test.tsModified
View file
@@ -148,6 +148,44 @@
"ready",
});
+​
+ it("reads live states as offline while the environment is unavailable", () => {
+ const running = makeThread({
+ id: ThreadId.make("t"),
+ title: "t",
+ session: {
+ threadId: ThreadId.make("t"),
+ status: "running",
+ providerName: "Codex",
+ providerInstanceId: ProviderInstanceId.make("codex"),
+ runtimeMode: "full-access",
+ activeTurnId: null,
+ lastError: null,
+ updatedAt: NOW,