GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: older servers' thread reads still decode, and mobile's failure a… · pingdotgg/t3code@15be9a5

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • apps/mobile/src/features/home
    • useThreadListActions.test.ts
  • packages/contracts/src
    • orchestratorMcp.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎apps/mobile/src/features/home/useThreadListActions.test.ts‎

Copy file name to clipboardExpand all lines: apps/mobile/src/features/home/useThreadListActions.test.ts
+35-4Lines changed: 35 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,22 @@ const state = vi.hoisted(() => ({
2323
requests: [] as {
2424
action: string;
2525
environmentId: string;
26-
input: { threadId: string; orderKey?: string; snoozedUntil?: string; reason?: string };
26+
input: {
27+
threadId: string;
28+
orderKey?: string;
29+
snoozedUntil?: string;
30+
reason?: string;
31+
commandId?: string;
32+
};
2733
}[],
2834
dialogs: [] as { onConfirm: () => void }[],
2935
alerts: [] as {
3036
title: string;
37+
message?: string;
3138
buttons?: { text: string; onPress?: () => void }[];
3239
}[],
40+
titleFailure: null as string | null,
41+
watchedTitleRequests: [] as string[],
3342
afterRequest: undefined as (() => void) | undefined,
3443
}));
3544

@@ -48,8 +57,8 @@ vi.mock("expo-haptics", () => ({
4857
ImpactFeedbackStyle: { Light: "light" },
4958
}));
5059
vi.mock("../../components/ui/Dialog", () => ({
51-
alert: (title: string, _message: string, buttons?: { text: string; onPress?: () => void }[]) =>
52-
state.alerts.push({ title, buttons }),
60+
alert: (title: string, message: string, buttons?: { text: string; onPress?: () => void }[]) =>
61+
state.alerts.push({ title, message, buttons }),
5362
confirm: (dialog: { onConfirm: () => void }) => state.dialogs.push(dialog),
5463
}));
5564
vi.mock("../archive/useArchivedThreadSnapshots", () => ({
@@ -121,7 +130,10 @@ vi.mock("../../state/thread-order", () => ({
121130
}));
122131
vi.mock("../../lib/uuid", () => ({ uuidv4: () => "command" }));
123132
vi.mock("../../state/threads", () => ({
124-
watchThreadTitleRegeneration: () => ({ failure: Promise.resolve(null), cancel: () => {} }),
133+
watchThreadTitleRegeneration: (_ref: unknown, requestId: string) => {
134+
state.watchedTitleRequests.push(requestId);
135+
return { failure: Promise.resolve(state.titleFailure), cancel: () => {} };
136+
},
125137
environmentThreadShells: {
126138
threadShellsAtom: "thread-shells",
127139
navigationThreadShellsAtom: "thread-shells",
@@ -201,6 +213,8 @@ beforeEach(() => {
201213
state.shells = [];
202214
state.dialogs = [];
203215
state.alerts = [];
216+
state.titleFailure = null;
217+
state.watchedTitleRequests = [];
204218
state.afterRequest = undefined;
205219
});
206220

@@ -244,6 +258,23 @@ describe("thread list operation permissions", () => {
244258
});
245259
});
246260

261+
describe("thread title regeneration", () => {
262+
it("alerts why the request it dispatched kept the title", async () => {
263+
state.titleFailure = "Claude CLI command failed: OAuth session expired";
264+
265+
await useThreadListActions().regenerateThreadTitle(makeThread());
266+
await Promise.resolve();
267+
268+
expect(state.watchedTitleRequests).toEqual([state.requests[0]?.input.commandId]);
269+
expect(state.alerts).toEqual([
270+
expect.objectContaining({
271+
title: "Could not regenerate title",
272+
message: "Claude CLI command failed: OAuth session expired",
273+
}),
274+
]);
275+
});
276+
});
277+
247278
describe("pinned thread operation permissions", () => {
248279
it("checks every materialization target before writing any keys", async () => {
249280
const moved = makeThread({ pinnedAt: "2026-09-02T00:00:00.000Z" });
Collapse file

‎packages/contracts/src/orchestratorMcp.ts‎

Copy file name to clipboardExpand all lines: packages/contracts/src/orchestratorMcp.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ export const OrchestratorMcpThreadDetail = Schema.Struct({
439439
linkedPullRequest: Schema.NullOr(ThreadLinkedPullRequest),
440440
pullRequests: Schema.optional(Schema.Array(OrchestratorMcpThreadPullRequest)),
441441
titleRegeneration: Schema.NullOr(ThreadTitleRegeneration),
442-
titleRegenerationFailure: Schema.NullOr(ThreadTitleRegenerationFailure),
442+
titleRegenerationFailure: Schema.optional(Schema.NullOr(ThreadTitleRegenerationFailure)),
443443
branch: Schema.NullOr(Schema.String),
444444
worktreePath: Schema.NullOr(Schema.String),
445445
parentThreadId: Schema.NullOr(ThreadId),

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.