Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
e1e520c
fix(web): show the project pin before the remote badge (#29704)
maria-rcks Nov 3, 2026
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
d2b6b16
Merge remote-tracking branch 'upstream/main' into yordis/chore-sync-u…
yordis Nov 3, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions apps/mobile/src/features/threads/thread-work-log.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -937,13 +937,14 @@ const ThreadWorkLogRow = function ThreadWorkLogRow(
const warning = failureItem.failure.class === "usage_limit";
const timestamp = new Date(row.createdAt);
const resetAt = failureItem.failure.resetAt;
// The reset time is the viewer's local time; naming the zone keeps it unambiguous.
const resetTime = resetAt
? new Date(resetAt).toLocaleString(undefined, {
? `${new Date(resetAt).toLocaleString(undefined, {
month: "short",
day: "numeric",
hour: "numeric",
minute: "2-digit",
})
})} (${new Intl.DateTimeFormat().resolvedOptions().timeZone})`
: null;
const label = warning
? `Usage limit reached.${resetTime ? ` Retry after ${resetTime}.` : ""}`
Expand Down
56 changes: 55 additions & 1 deletion apps/server/src/cloud/CloudLink.lifecycle.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ describe("releaseManagedTunnelOnShutdown", () => {
readonly address?: HttpServer.HttpServer["Service"]["address"];
readonly respondEffect?: Effect.Effect<Response>;
readonly getExisting?: CliTokenManager.CloudCliTokenManager["Service"]["getExisting"];
readonly latestReachability?: ConnectReachability.ConnectReachability["Service"]["latest"];
}

const writeLauncherState = (update: ServiceUpdateRecord) =>
Expand All @@ -165,7 +166,7 @@ describe("releaseManagedTunnelOnShutdown", () => {
ConnectReachability.ConnectReachability,
ConnectReachability.ConnectReachability.of({
check: Effect.die("unused"),
latest: Effect.succeedNone,
latest: harness.latestReachability ?? Effect.succeedNone,
}),
),
Effect.provideService(HttpServer.HttpServer, {
Expand Down Expand Up @@ -1050,4 +1051,57 @@ describe("releaseManagedTunnelOnShutdown", () => {
expect(values.has(CLOUD_ENDPOINT_RUNTIME_CONFIG)).toBe(false);
}).pipe(provideReleaseHarness({ store: failingStore, applyConfigCalls, requests }));
});

it.effect("does not report a not-linked check once the managed tunnel config is stored", () => {
const { store } = makeMemorySecretStore(managedLinkSecrets);
const notLinked = ConnectReachability.classifyReachability(
{
managedTunnelConfigured: false,
connector: null,
endpoint: null,
edgeReachable: null,
exitNode: null,
},
"2026-10-29T00:00:00.000Z",
);

return Effect.gen(function* () {
const state = yield* (yield* CloudLink.CloudLink).linkState();

expect(state.managedTunnelActive).toBe(true);
expect(state.reachability?.status === "unreachable" && state.reachability.cause).not.toBe(
"not_linked",
);
}).pipe(
provideReleaseHarness({
store,
applyConfigCalls: [],
requests: [],
latestReachability: Effect.succeedSome(notLinked),
}),
);
});

it.effect("reports a check that ran after the managed tunnel config was stored", () => {
const { store } = makeMemorySecretStore(managedLinkSecrets);
const reachable = {
status: "reachable" as const,
checkedAt: "2026-10-29T00:00:00.000Z",
readyConnections: 4,
protocol: "quic",
};

return Effect.gen(function* () {
const state = yield* (yield* CloudLink.CloudLink).linkState();

expect(state.reachability).toEqual(reachable);
}).pipe(
provideReleaseHarness({
store,
applyConfigCalls: [],
requests: [],
latestReachability: Effect.succeedSome(reachable),
}),
);
});
});
9 changes: 8 additions & 1 deletion apps/server/src/cloud/CloudLink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1290,6 +1290,13 @@ const make = Effect.gen(function* () {
],
{ concurrency: 8 },
);
// A not-linked check predates the stored tunnel config; the next check replaces it.
const currentReachability = Option.filter(
latestReachability,
(result) =>
Option.isNone(endpointRuntimeConfig) ||
!(result.status === "unreachable" && result.cause === "not_linked"),
);
return {
linked: Option.isSome(cloudUserId),
linkRevoked: Option.isSome(cloudUserId) && Option.isSome(revoked),
Expand All @@ -1302,7 +1309,7 @@ const make = Effect.gen(function* () {
: false,
holdWebhooksWhileOffline:
Option.isSome(holdWebhooks) && bytesToString(holdWebhooks.value) === "true",
...(Option.isSome(latestReachability) ? { reachability: latestReachability.value } : {}),
...(Option.isSome(currentReachability) ? { reachability: currentReachability.value } : {}),
} satisfies EnvironmentCloudLinkStateResult;
});

Expand Down
7 changes: 7 additions & 0 deletions apps/server/src/cloud/ConnectReachability.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,13 @@ describe("classifyReachability", () => {
classifyReachability(facts({ connector: notConnected, edgeReachable: true }), checkedAt),
).toMatchObject({ cause: "connector_not_ready" });
});

it("does not point an unlinked server at a background service it may not have", () => {
// Desktop and `t3 serve` run the server without a background service.
const result = classifyReachability(facts({ managedTunnelConfigured: false }), checkedAt);
expect(result).toMatchObject({ cause: "not_linked" });
expect(result.status === "unreachable" && result.fix).not.toContain("t3 service");
});
});

describe("T3 Connect troubleshooting links", () => {
Expand Down
3 changes: 2 additions & 1 deletion apps/server/src/cloud/ConnectReachability.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,11 @@ export function classifyReachability(
const restart = "Restart T3 Code. If it stays, run `t3 connect` again.";

if (!facts.managedTunnelConfigured) {
// A running server reads the link `t3 connect` stores only at startup.
return fail(
"not_linked",
"The server has not set up a T3 Connect tunnel.",
"Run `t3 connect`, then restart the server (`t3 service restart`) so it applies the link.",
"Run `t3 connect`, then restart T3 Code so it applies the link.",
);
}
if (connector === null) {
Expand Down
37 changes: 37 additions & 0 deletions apps/server/src/mcp/PreviewAutomationBroker.test.ts
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 apps/server/src/mcp/PreviewAutomationBroker.ts
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
Loading
Loading