Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(threads): failed title regeneration now says why #15111

Closedshivamhwp(GitHub profile, opens in a new tab)wants to merge 5 commits intomain fromfix/v2-title-generation-failuresopened View on GitHub

Showing 21 changed files with 48 additions and 3 deletions (loading 18).

x
0 of 21 viewed, 21 left
13 additions and 1 deletionapps/mobile/src/features/home/useThreadListActions.test.tsModified
View file
@@ -46,6 +46,12 @@
impactAsync: async () => {},
ImpactFeedbackStyle: { Light: "light" },
}));
+// The failure watcher has its own tests in client-runtime.
+vi.mock("@t3tools/client-runtime/state/title-regeneration", () => ({
+ waitForTitleRegenerationFailure: () => Promise.resolve(null),
+}));
+// The real helper loads expo-crypto, which needs the native Expo runtime.
+vi.mock("../../lib/uuid", () => ({ uuidv4: () => "00000000-0000-4000-8000-000000000000" }));
vi.mock("../../components/ui/Dialog", () => ({
alert: (title: string, _message: string, buttons?: { text: string; onPress?: () => void }[]) =>
state.alerts.push({ title, buttons }),
@@ -113,8 +119,14 @@
}));
+vi.mock("../../state/shell", () => ({
+ environmentShell: { statusAtom: () => "shell-status" },
+}));
vi.mock("../../state/threads", () => ({
- environmentThreadShells: { threadShellsAtom: "thread-shells" },
+ environmentThreadShells: {
+ threadShellsAtom: "thread-shells",
+ threadShellAtom: () => "thread-shell",
+ },
threadEnvironment: Object.fromEntries(
"archive",