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 — chore(sync): merge upstream main through 61c3794c by yvesoddly · Pull Request #28 · issuelt/t3code

chore(sync): merge upstream main through 61c3794c #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Sign up for GitHub

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
yvesoddly merged 37 commits into main from sync/upstream-main-20261102c
Nov 3, 2026

Uh oh!

There was an error while loading. Please reload this page.

Merged

chore(sync): merge upstream main through 61c3794c #28

Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
84547b9
fix(server): Codex usage keeps requests from interrupted turns (#29415)
juliusmarminge Nov 3, 2026
1436c45
fix(client-runtime): connect to the primary environment while the bro…
juliusmarminge Nov 3, 2026
48c8cf7
fix(server): a failed worktree add no longer leaves its new branch be…
juliusmarminge Nov 3, 2026
8c9945d
fix(provider-acp): Kiro's html_render pages show in the thread (#28253)
juliusmarminge Nov 3, 2026
f80be8e
fix(server): streamed Browser clicks no longer wait behind queued whe…
juliusmarminge Nov 3, 2026
997e3f3
fix(server): Codex turns that fail with an unlisted error code no lon…
juliusmarminge Nov 3, 2026
503488d
fix(opencode): sessions open through OpenCode 2 after an in-place upg…
juliusmarminge Nov 3, 2026
607e373
fix(server): T3 Connect not-linked fix no longer tells Desktop users …
juliusmarminge Nov 3, 2026
371e945
fix(server): anchor Claude wake cooldowns to result arrival (#25061)
juliusmarminge Nov 3, 2026
16fd1a4
fix(web): match new-thread hero to selected checkout (#25064)
juliusmarminge Nov 3, 2026
d3d7f03
fix(server): stop PR lookups in emptied worktree folders (#24803)
juliusmarminge Nov 3, 2026
71a7bf9
fix(server): agent session scans no longer hang the server on an unre…
juliusmarminge Nov 3, 2026
371c9a9
docs(connect): held webhooks are kept per managed link (#23612)
juliusmarminge Nov 3, 2026
0ad3dc1
fix(server): delegated children keep replies after their parent settl…
juliusmarminge Nov 3, 2026
6e58094
fix(preview): explain invalid URLs and locators (#23396)
juliusmarminge Nov 3, 2026
296b089
fix(web): terminal controls no longer cover the first line (#23373)
juliusmarminge Nov 3, 2026
93a3e8f
fix(server): stop maintaining the unused event correlation index (#23…
juliusmarminge Nov 3, 2026
46212dd
docs(mcp): document existing recurring-task tools (#23199)
juliusmarminge Nov 3, 2026
c0ec87a
fix(server): release the previous session when sending to another ins…
juliusmarminge Nov 3, 2026
692dd9c
fix(claude): a background-task wake run no longer hangs after a user …
maria-rcks Nov 3, 2026
78aee8a
fix(server): OpenCode no longer drops a $skill read before its direct…
juliusmarminge Nov 3, 2026
b492e28
fix(server): coalesced webhook runs use the prompt saved before dispa…
juliusmarminge Nov 3, 2026
d5afb1a
fix(server): slow forge CLI calls no longer delay checkpoints and tur…
juliusmarminge Nov 3, 2026
0c863d6
fix(relay): T3 Connect repairs tunnel ingress that drifted from a mat…
juliusmarminge Nov 3, 2026
6f4bc77
fix(provider-core): npm-installed Claude in ~/.local gets npm updates…
juliusmarminge Nov 3, 2026
acd2db9
fix(server): git hooks keep the user's locale (#27778)
juliusmarminge Nov 3, 2026
18ac394
fix(pi): hold messages until compaction ends (#24388)
juliusmarminge Nov 3, 2026
fd63914
fix(server): show why Claude refuses full access as root (#23804)
juliusmarminge Nov 3, 2026
10f3657
fix(server): preview click timeouts identify the target (#23489)
juliusmarminge Nov 3, 2026
30767c2
fix(cursor): supporting files no longer hide sibling skills (#23326)
juliusmarminge Nov 3, 2026
689bdb8
fix(web): usage-limit retry notice shows the timezone (#23029)
juliusmarminge Nov 3, 2026
bb221f0
fix(server): preserve nested Claude subagent completion across turns …
juliusmarminge Nov 3, 2026
c3e1e0a
fix(opencode): publish ordered pending-work snapshots (#21460)
juliusmarminge Nov 3, 2026
53e168f
fix(opencode): decode compaction history from OpenCode 2.1 (#22661)
juliusmarminge Nov 3, 2026
3e1e776
fix(server): import valid conversations within each transcript record…
juliusmarminge Nov 3, 2026
61c3794
fix(server): imported Claude sessions resume on their first turn (#23…
juliusmarminge Nov 3, 2026
519f74c
Merge upstream pingdotgg/t3code main into fork (through 61c3794c)
yvesoddly Nov 3, 2026
File filter
Filter by extension

Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view
Prev Previous commit
Next Next commit
fix(server): preview click timeouts identify the target (pingdotgg#23489
)

Co-authored-by: Claude Opus 5.5 <[email protected]>
  • Loading branch information

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge @claude
juliusmarminge and claude authored Nov 3, 2026
commit 10f365703af1c2755745a1ebf986826f4948f4b8

There are no files selected for viewing

37 changes: 37 additions & 0 deletions 37 apps/server/src/mcp/PreviewAutomationBroker.test.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,43 @@ it.effect.each([
),
);

it.effect("names the click target that matched nothing when the server browser times out", () =>
Effect.scoped(
Effect.gen(function* () {
const broker = yield* makeBroker;
const clientId = SERVER_BROWSER_AUTOMATION_CLIENT_ID;
const requests = requestsFrom(yield* broker.connect(makeHost({ clientId })));
yield* Stream.runForEach(requests, (request) =>
broker.respond({
clientId,
connectionId: request.connectionId,
requestId: request.requestId,
ok: false,
error: {
_tag: "PreviewAutomationTimeoutError",
message: "No element matches the target.",
detail: { reason: 'No element matches ".definitely-no-such-t3-target".' },
},
}),
).pipe(Effect.forkScoped);
yield* Effect.yieldNow;

const error = yield* broker
.invoke<void>({
scope,
operation: "click",
input: { selector: ".definitely-no-such-t3-target", timeoutMs: 15_000 },
})
.pipe(Effect.flip);

expect(error._tag).toBe("PreviewAutomationTimeoutError");
expect(error.message).toBe(
'Preview automation click timed out after 15000ms. No element matches ".definitely-no-such-t3-target".',
);
}),
),
);

it.effect("distinguishes malformed remote failures", () =>
Effect.scoped(
Effect.gen(function* () {
Expand Down
12 changes: 12 additions & 0 deletions 12 apps/server/src/mcp/PreviewAutomationBroker.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,14 @@ const readRemoteTimeoutMs = (detail: unknown): number | undefined => {
: undefined;
};

const readRemoteReason = (detail: unknown): string | undefined =>
typeof detail === "object" &&
detail !== null &&
"reason" in detail &&
typeof detail.reason === "string"
? detail.reason
: undefined;

const MAX_REASON_CHARS = 500;

const classifyResponseError = (
Expand Down Expand Up @@ -255,9 +263,13 @@ const classifyResponseError = (
});
case "PreviewAutomationTimeoutError": {
const remoteTimeoutMs = readRemoteTimeoutMs(error.detail);
const remoteReason = readRemoteReason(error.detail);
return new PreviewAutomationTimeoutError({
...context,
...remoteDiagnostics,
...(context.clientId === SERVER_BROWSER_AUTOMATION_CLIENT_ID && remoteReason !== undefined
? { reason: remoteReason.slice(0, MAX_REASON_CHARS) }
: {}),
...(remoteTimeoutMs === undefined
? {}
: { timeoutMs: Math.min(context.timeoutMs, remoteTimeoutMs) }),
Expand Down
21 changes: 21 additions & 0 deletions 21 apps/server/src/preview/ServerBrowserPage.test.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,27 @@ describe("server browser element refs", () => {
expect(await page.locator("li").count()).toBe(5);
});

it("tells a click target that matches nothing from one that never becomes clickable", async () => {
await page.setContent(`<button hidden>hidden</button>`);
const failure = (selector: string) =>
ServerBrowserPage.click(page, { selector, timeoutMs: 500 }).then(
() => expect.unreachable(),
ServerBrowserPage.toOperationError,
);

const absent = await failure(".definitely-no-such-t3-target");
expect(absent.tag).toBe("PreviewAutomationTimeoutError");
expect(absent.message).toBe(
'The click may have happened and removed its target or navigated; check the page before retrying. No element matches ".definitely-no-such-t3-target" after the timeout; take a fresh snapshot and use its locator.',
);
expect(absent.cause).toMatchObject({ name: "TimeoutError" });
const hidden = await failure("button");
expect(hidden.tag).toBe("PreviewAutomationTimeoutError");
expect(hidden.message).toBe(
'The click may have happened; check the page before retrying. "button" still matches an element after the timeout.',
);
});

it("does not retarget a removed ref to a replacement node", async () => {
await page.setContent("<button onclick=\"this.textContent='clicked'\">original</button>");
const locator = buttonLocator((await takeSnapshot()).accessibilityTree, "original");
Expand Down
58 changes: 56 additions & 2 deletions 58 apps/server/src/preview/ServerBrowserPage.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ export class ServerBrowserOperationError extends Error {
readonly tag: string;
readonly detail: unknown;

constructor(tag: string, message: string, detail?: unknown) {
super(message);
constructor(tag: string, message: string, detail?: unknown, options?: ErrorOptions) {
super(message, options);
this.tag = tag;
this.detail = detail;
}
Expand Down Expand Up @@ -72,6 +72,8 @@ export const toOperationError = (
};

const DEFAULT_TIMEOUT_MS = 15_000;
const TARGET_COUNT_MS = 250;
const MAX_TARGET_CHARS = 200;

const pageRefs = new WeakMap<Page, { generation: string; refs: Map<string, string> }>();
// A compact runtime namespace prevents old refs from aliasing after a server restart.
Expand Down Expand Up @@ -634,6 +636,58 @@ export const click = async (
): Promise<{ readonly x: number; readonly y: number }> => {
const timeout = input.timeoutMs ?? DEFAULT_TIMEOUT_MS;
const locator = targetLocator(page, input);
try {
return await clickTarget(page, locator, input, timeout, pointer);
} catch (cause) {
throw locator === null ? cause : await namedTargetTimeout(locator, input, cause);
}
};

/**
* Playwright's timeout names neither the target nor why it waited. Counting only after the
* wait failed keeps auto-wait intact, but the count describes the page after the timeout, not
* what the click did: Playwright can dispatch the click and then time out waiting for the
* navigation it started.
*/
const namedTargetTimeout = async (
locator: Locator,
input: { readonly locator?: string | undefined; readonly selector?: string | undefined },
cause: unknown,
) => {
if (!(cause instanceof Error && cause.name === "TimeoutError")) return cause;
const selector = JSON.stringify(input.locator ?? input.selector);
// The warning leads and the target is capped, so a reply cut short still carries the warning.
const target =
selector.length > MAX_TARGET_CHARS ? `${selector.slice(0, MAX_TARGET_CHARS)}...` : selector;
// The host's reply must still beat the broker's short grace after the operation timeout.
let timer: ReturnType<typeof setTimeout> | undefined;
const matches = await Promise.race([
locator.count().catch(() => undefined),
new Promise<undefined>((resolve) => {
timer = setTimeout(() => resolve(undefined), TARGET_COUNT_MS);
}),
]).finally(() => clearTimeout(timer));
const reason =
matches === undefined
? `The click may have happened; check the page before retrying. Whether ${target} still matches an element is unknown.`
: matches === 0
? `The click may have happened and removed its target or navigated; check the page before retrying. No element matches ${target} after the timeout; take a fresh snapshot and use its locator.`
: `The click may have happened; check the page before retrying. ${target} still matches an element after the timeout.`;
return new ServerBrowserOperationError(
"PreviewAutomationTimeoutError",
reason,
{ reason },
{ cause },
);
};

const clickTarget = async (
page: Page,
locator: Locator | null,
input: PreviewAutomationClickInput,
timeout: number,
pointer: PointerReporter,
) => {
const point = await targetPoint(page, locator, input, timeout);
await pointer(point, "click");
const options = { button: input.button ?? "left", clickCount: input.clickCount ?? 1 } as const;
Expand Down
3 changes: 2 additions & 1 deletion 3 packages/contracts/src/previewAutomation.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -766,11 +766,12 @@ export class PreviewAutomationTimeoutError extends Schema.TaggedError<PreviewAut
{
...PreviewAutomationRequestErrorFields,
...PreviewAutomationOptionalRemoteDiagnosticFields,
reason: Schema.optional(Schema.String),
},
) {
override get message(): string {
const summary = `Preview automation ${this.operation} timed out after ${this.timeoutMs}ms.`;
return summary;
return this.reason === undefined ? summary : `${summary} ${this.reason}`;
}
}

Expand Down
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
You are visitor 01402860 — 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.