Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
c5d7309
feat(mobile): replace custom Markdown rendering with Enriched (#16979)
juliusmarminge Oct 12, 2026
07993f3
chore(mobile): sync Screens fork with upstream v5 fixes (#18396)
juliusmarminge Oct 12, 2026
6ec6376
docs(mobile): point fork links to pingdotgg (#18433)
juliusmarminge Oct 12, 2026
7ab28a3
perf(web): reuse the collator when sorting diff files (#18420)
saphid Oct 12, 2026
8569ce9
perf(web): avoid quadratic markdown link scans (#18387)
saphid Oct 12, 2026
499a53c
perf(server): expired PR diffs no longer stay in memory until restart…
tris203 Oct 12, 2026
7f02b84
perf(usage): the first usage scan skips decoding transcript lines tha…
tris203 Oct 12, 2026
aa2bfc6
fix(mobile): preserve browser prompt replies across control updates (…
saphid Oct 12, 2026
f570294
fix(web): closed popovers no longer stay on screen and click-through …
akbarakma Oct 12, 2026
821a6d7
fix(web): keybinding settings label Focus URL with a capitalized acro…
RakshithBhat03 Oct 12, 2026
0fd7d2d
fix(web): long commands no longer overflow the Add Action dialog (#18…
fixfon Oct 12, 2026
fded2ca
fix(web): provider Runtime controls follow the settings row layout (#…
ScottN-PV Oct 12, 2026
6bbb72c
perf(web): Thinking shimmer steps instead of drawing every frame (#18…
realhasanshoaib Oct 12, 2026
808bee7
chore(typecheck): typecheck with tsc-rs (#16704)
t3dotgg Oct 12, 2026
9b9792e
test(server): finish workflow reads before changing transcripts (#18192)
lastobelus Oct 12, 2026
6a99eb3
test(server): Claude sign-in message test passes on Windows hosts (#1…
AdEx-Partners-DE Oct 12, 2026
63eaa79
fix(web): context menus no longer scroll when they fit the window (#1…
kacigaya Oct 12, 2026
a5331e4
fix(server): checkpoint restore keeps a nested workspace on Windows (…
JonasFocus Oct 12, 2026
ee2763e
Reject unknown params in t3_thread_read (#17823)
mfazekas Oct 12, 2026
d45d1a1
fix(desktop): Option-click on a chat link opens the system browser (#…
whoisaldo Oct 12, 2026
b8d03ba
fix(mobile): new thread draft names its repo and says it is a new thr…
kaovilai Oct 12, 2026
4a90c1c
fix(web): keep queued threads subscribed (#15293)
ANSHSINGH050404 Oct 12, 2026
4ff8b07
test(server): Claude reset tests are skipped on Windows hosts, where …
AdEx-Partners-DE Oct 12, 2026
fd6d9dd
fix(web): hide stash menu behind maximized panel (#18115)
Saikrishna1876 Oct 12, 2026
df78114
fix(web): sidebar toggle no longer sits under the macOS window button…
realhasanshoaib Oct 12, 2026
f79f37a
fix(server): missing agent binaries report launch failure
Moinax Oct 12, 2026
397a461
feat(android): add Pull Requests tab (#18372)
PixPMusic Oct 12, 2026
12b34e8
fix(mobile): Forgejo change requests ask for the summary they require…
flamboh Oct 12, 2026
b9ad3da
fix(server): cap automatic thread continuations and turn them on by d…
t3dotgg Oct 12, 2026
c32ade4
feat(mobile): stock tab bar, glass filter pills, and saved list filte…
juliusmarminge Oct 12, 2026
52f9046
fix(mobile): keep PR surfaces and Android tab selection visible acros…
PixPMusic Oct 12, 2026
4ab4cdf
fix(mobile): keep preview count badges inside the working pill (#18449)
RVZO6 Oct 12, 2026
2e24ec4
fix(mobile): show rounded pull request selection in the sidebar (#18480)
PixPMusic Oct 12, 2026
e688034
feat(web): model options for source control writer and review guide m…
juliusmarminge Oct 12, 2026
19bef8c
ci(mobile): cut a store build when the native fingerprint has no buil…
juliusmarminge Oct 12, 2026
37e2acd
fix(web): terminal colors no longer look washed out (#17168)
psv2522 Oct 12, 2026
d514a8c
refactor(settings): centralize schema-declared secrets and inputs (#1…
juliusmarminge Oct 12, 2026
6f6197c
fix(mobile): restore native scroll-edge effects on forms and PRs (#18…
juliusmarminge Oct 12, 2026
462e7f4
feat(mobile): native-sized pull request action bar (#18527)
juliusmarminge Oct 12, 2026
679b03e
fix(mobile): preserve theme contrast across surfaces and actions (#18…
juliusmarminge Oct 12, 2026
a39fd7b
refactor(mobile): share themed list rows and sections (#18510)
juliusmarminge Oct 12, 2026
9a2b9a2
refactor(mobile): share themed toggle rows in settings (#18511)
juliusmarminge Oct 12, 2026
abc80c8
refactor(mobile): share themed choice rows in settings (#18516)
juliusmarminge Oct 12, 2026
48595c7
fix(server): consolidate browser credential handling (#18509)
juliusmarminge Oct 12, 2026
5fe7568
feat: open T3 Code from a link with a prompt ready to send (#18454)
t3dotgg Oct 12, 2026
8f25cf9
fix(release): drop placeholder allowBuilds entry that broke nightly b…
t3dotgg Oct 12, 2026
eac6ba5
ci: fail PRs on invalid allowBuilds entries in pnpm-workspace.yaml (#…
t3dotgg Oct 12, 2026
f498b35
fix(mobile): menu dismiss taps no longer press the view underneath (#…
juliusmarminge Oct 12, 2026
d83929a
feat(web): one sidebar click updates every machine and provider (#18053)
t3dotgg Oct 12, 2026
5d59e71
fix(release): avoid PowerShell crashes on Windows ARM (#18573)
t3dotgg Oct 12, 2026
b3871d5
fix(server): Forgejo pull requests report their head commit (#18463)
flamboh Oct 12, 2026
a27cf8a
test(provider-acp): terminal kill test passes on Windows hosts (#18450)
AdEx-Partners-DE Oct 12, 2026
58d2532
fix(web): context meter no longer reads 1000k just under a million to…
luke2x Oct 12, 2026
5753207
fix(desktop): avoid Hyprland 0.48–0.50 Wayland color-manager startup …
krankos Oct 12, 2026
7b6d907
fix(mobile): iPhones on iOS 27.2 beta no longer open to a black scree…
shivamhwp Oct 12, 2026
701fc83
fix(mobile): installs skip the Enriched math download again (#18679)
juliusmarminge Oct 12, 2026
9e55228
fix(web): setup wizards follow custom themes (#18725)
SunkenInTime Oct 12, 2026
b821fa0
fix(server): resolve configured PR bases to branch names (#18754)
Yash-Singh1 Oct 12, 2026
0e7346c
fix: expose running terminals and prevent setup install stalls (#18740)
Yash-Singh1 Oct 12, 2026
511d20c
fix(mobile): hide Claude Read image placeholders when previews exist …
Yash-Singh1 Oct 12, 2026
941538b
chore(sync): merge upstream main into Fold
BreakTheBeta Oct 12, 2026
f926e50
refactor(mobile): use upstream's Android Pull Requests tab
BreakTheBeta Oct 12, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
109 changes: 62 additions & 47 deletions .github/workflows/mobile-eas-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ name: Mobile EAS Production
# runner, with corepack pinning pnpm 10.24 in eas.json, local == build.
#
# Every merge to main that touches the mobile app reconciles, per platform:
# 1. Store builds: if the latest production build's version differs from
# app.config.ts, cut a new build and submit it (TestFlight + Play internal
# track). Bumping `version` is therefore all it takes to
# start the next release train — the first build of a version enters
# 1. Store builds: when no production build matches the current native
# fingerprint, or the latest build's version differs from app.config.ts,
# cut a new build and submit it (TestFlight + Play internal track). Native
# changes therefore ship a binary on merge, and bumping `version` is all
# it takes to start the next release train — the first build of a version enters
# external-TestFlight beta review immediately, and later builds of the
# same version auto-approve until that version is released. After App
# Store approval, Apple closes the release train and `version` must be
Expand All @@ -21,10 +22,11 @@ name: Mobile EAS Production
# fingerprint. Older binaries of the same major version with a matching
# fingerprint receive it too; the major version is part of the
# fingerprint (apps/mobile/fingerprint.config.js), so a new major never
# reaches the previous major's store binaries over the air. When native
# drift means no binary could install the update,
# it is skipped and flagged in the job summary instead of published
# into the void.
# reaches the previous major's store binaries over the air. Until a
# build for the new fingerprint finishes, the OTA is skipped rather than
# published into the void.
# Hold native-change PRs (the "📱 Native Change" label) and merge them as a
# batch to avoid a store build per PR.
# workflow_dispatch remains as a manual override for both modes (e.g. to
# retry an errored build or force an OTA).
# Manual v2-preview builds keep the production app identity and disable OTA.
Expand Down Expand Up @@ -263,61 +265,74 @@ jobs:
--message "${{ inputs.message || format('Production OTA ({0})', github.sha) }}" \
--non-interactive

# No --status filter on build:list: an in-queue/in-progress build must
# count as existing, or every merge during the build window would cut a
# duplicate. After an errored build, retry via workflow_dispatch
# mode=build — pushes won't re-trigger it until the app version changes.
- id: store_builds
name: Ensure store builds exist for the current app version
# One pass per platform. The fingerprint decides OTA vs store build:
# - a finished build matches → publish the OTA;
# - a queued/in-progress build matches → wait, the next merge after it
# finishes publishes the OTA (no duplicate build per merge);
# - no build matches → native drift, so cut and submit a new build.
# A version bump also cuts a build even when native code is unchanged,
# because only the major version is part of the fingerprint.
# An errored build for this fingerprint is not retried on push (it would
# rebuild on every merge); retry via workflow_dispatch mode=build.
- id: reconcile
name: Publish OTA or cut store build
if: steps.expo-token.outputs.present == 'true' && github.event_name == 'push'
continue-on-error: true
working-directory: apps/mobile
env:
EXPO_TOKEN: ${{ secrets.EXPO_TOKEN }}
run: |
failed=0
version="$(npx expo config --json --type public | jq -r '.version')"
for platform in ios android; do
latest="$(eas build:list --platform "$platform" --build-profile production --limit 1 --json --non-interactive | jq -r '.[0].appVersion // "none"')"
if [ "$latest" = "$version" ]; then
echo "$platform: production build for $version already exists (or is in progress)"
continue
fi
echo "$platform: latest production build is $latest, app.config.ts says $version — building"
if eas build --platform "$platform" --profile production --auto-submit --non-interactive --no-wait; then
echo ":building_construction: $platform: scheduled production build and submission for $version" >> "$GITHUB_STEP_SUMMARY"
else
failed=1
echo ":x: $platform: production build or submission failed for $version" >> "$GITHUB_STEP_SUMMARY"
fi
done
exit "$failed"

- name: Publish fingerprint-gated OTA
if: steps.expo-token.outputs.present == 'true' && github.event_name == 'push'
working-directory: apps/mobile
env:
EXPO_TOKEN: ${{ secrets.EXPO_TOKEN }}
run: |
message="$(git log -1 --pretty=%s | head -c 120) ($(git rev-parse --short=9 HEAD))"
for platform in ios android; do
# eas-cli prints an environment-loaded notice to stdout before the
# JSON even with --json, so discard everything before the document.
hash="$(eas fingerprint:generate --platform "$platform" --environment production --json --non-interactive | sed -n '/^{/,$p' | jq -er '.hash | select(type == "string" and length > 0)')"
matching="$(eas build:list --platform "$platform" --build-profile production --status finished --fingerprint-hash "$hash" --limit 1 --json --non-interactive | jq 'length')"
if [ "$matching" -gt 0 ]; then
eas update \
matches="$(eas build:list --platform "$platform" --build-profile production --fingerprint-hash "$hash" --limit 20 --json --non-interactive)"
finished="$(jq '[.[] | select(.status == "FINISHED")] | length' <<<"$matches")"
active="$(jq '[.[] | select(.status == "NEW" or .status == "IN_QUEUE" or .status == "IN_PROGRESS")] | length' <<<"$matches")"
errored="$(jq '[.[] | select(.status == "ERRORED")] | length' <<<"$matches")"
latest_version="$(eas build:list --platform "$platform" --build-profile production --limit 1 --json --non-interactive | jq -r '.[0].appVersion // "none"')"

if [ "$finished" -gt 0 ]; then
if eas update \
--channel production \
--environment production \
--platform "$platform" \
--message "$message" \
--non-interactive
echo ":white_check_mark: $platform: OTA published to production (fingerprint \`$hash\`)" >> "$GITHUB_STEP_SUMMARY"
--non-interactive; then
echo ":white_check_mark: $platform: OTA published to production (fingerprint \`$hash\`)" >> "$GITHUB_STEP_SUMMARY"
else
failed=1
echo ":x: $platform: OTA publish failed (fingerprint \`$hash\`)" >> "$GITHUB_STEP_SUMMARY"
fi
fi

reason=""
if [ "$finished" -eq 0 ] && [ "$active" -eq 0 ]; then
if [ "$errored" -gt 0 ]; then
echo ":x: $platform: the production build for fingerprint \`$hash\` errored — retry with workflow_dispatch mode=build" >> "$GITHUB_STEP_SUMMARY"
failed=1
continue
fi
reason="native fingerprint \`$hash\` has no build"
elif [ "$latest_version" != "$version" ] && [ "$active" -eq 0 ]; then
reason="latest production build is $latest_version, app.config.ts says $version"
fi

if [ -z "$reason" ]; then
if [ "$finished" -eq 0 ]; then
echo ":hourglass: $platform: production build for fingerprint \`$hash\` is in progress — OTA resumes on the next merge after it finishes" >> "$GITHUB_STEP_SUMMARY"
fi
continue
fi

echo "$platform: $reason — building"
if eas build --platform "$platform" --profile production --auto-submit --non-interactive --no-wait; then
echo ":building_construction: $platform: scheduled production build and submission for $version ($reason)" >> "$GITHUB_STEP_SUMMARY"
else
echo ":warning: $platform: no finished production build matches fingerprint \`$hash\` — OTA skipped; JS changes reach $platform only once a matching build ships" >> "$GITHUB_STEP_SUMMARY"
failed=1
echo ":x: $platform: production build or submission failed for $version" >> "$GITHUB_STEP_SUMMARY"
fi
done

- name: Propagate store build failure
if: steps.store_builds.outcome == 'failure'
run: exit 1
exit "$failed"
33 changes: 33 additions & 0 deletions .github/workflows/release-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,39 @@ jobs:
git sparse-checkout set --no-cone '/*' '!/.repos/'
git -c checkout.workers=0 checkout --detach FETCH_HEAD

# The runner's PowerShell 7.6/.NET 10 intermittently crashes during signing:
# https://github.com/dotnet/runtime/issues/131636
# Put the .NET 8 release first for both workflow shells and electron-builder.
- name: Use PowerShell 7.4 for Windows ARM builds
if: inputs.platform == 'win' && inputs.arch == 'arm64'
shell: powershell
run: |
$ErrorActionPreference = "Stop"
$ProgressPreference = "SilentlyContinue"
$version = "7.4.20"
$archive = Join-Path $env:RUNNER_TEMP "PowerShell-$version-win-arm64.zip"
$installDir = Join-Path $env:RUNNER_TEMP "powershell-$version-arm64"
Invoke-WebRequest -UseBasicParsing `
-Uri "https://github.com/PowerShell/PowerShell/releases/download/v$version/PowerShell-$version-win-arm64.zip" `
-OutFile $archive
$expectedHash = "67eff749d5dae357501c95a3eec1dcd93f669824e3ca2b1d2adcdecdebf04f35"
if ((Get-FileHash $archive -Algorithm SHA256).Hash -ne $expectedHash) {
throw "PowerShell archive checksum mismatch"
}
Expand-Archive -Path $archive -DestinationPath $installDir
$installDir | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
& "$installDir\pwsh.exe" -NoProfile -NonInteractive -Command '$PSVersionTable; [System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture'
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }

- name: Verify Windows ARM PowerShell selection
if: inputs.platform == 'win' && inputs.arch == 'arm64'
shell: pwsh
run: |
$expectedPath = Join-Path $env:RUNNER_TEMP "powershell-7.4.20-arm64\pwsh.exe"
if ((Get-Command pwsh.exe).Source -ne $expectedPath -or $PSVersionTable.PSVersion -ne [version]"7.4.20") {
throw "Windows ARM builds must use the pinned PowerShell runtime"
}

# Windows installs straight from the registry. There, linking the packages
# takes the time, not downloading them, so a ~700 MB package cache did not
# pay for its own restore. Across recent nightlies, restore plus install
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Paint splatter across the chat canvas in your theme's colours, on the unfolded p

## More than upstream

Compared with upstream `main` at [6ba6a0daf4](https://github.com/pingdotgg/t3code/commit/6ba6a0daf4), synced **11 October 2026**, Fold adds the features below. They describe the code on Fold's `main`; an older published installer may not include every change.
Compared with upstream `main` at [511d20c6f2](https://github.com/pingdotgg/t3code/commit/511d20c6f2), synced **13 October 2026**, Fold adds the features below. They describe the code on Fold's `main`; an older published installer may not include every change.

| Feature | What you get | Available in |
| ------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------- |
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"scripts": {
"ensure:electron": "node scripts/ensure-electron-runtime.mjs",
"start": "node scripts/start-electron.mjs",
"typecheck": "tsc --noEmit",
"typecheck": "tsc-rs --noEmit",
"test": "vp test run --passWithNoTests",
"smoke-test": "node scripts/smoke-test.mjs"
},
Expand Down
13 changes: 11 additions & 2 deletions apps/desktop/src/app/DesktopClerk.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ it.effect.each(["startup", "open-url"] as const)(
}).pipe(Effect.scoped),
);

it.effect("hands a web link to the renderer and leaves other links alone", () =>
it.effect("hands web and app links to the renderer and leaves other links alone", () =>
Effect.gen(function* () {
storageMock.mockReturnValue(storageAdapter);
createClerkBridgeMock.mockReturnValue({ cleanup: vi.fn(), isPrimaryInstance: true });
Expand All @@ -420,10 +420,19 @@ it.effect("hands a web link to the renderer and leaves other links alone", () =>
// macOS hands the default browser every web link.
assert.strictEqual(open("https://example.com/page"), 1);
assert.strictEqual(open("http://localhost:3000/"), 1);
// Prompt and thread links ride the same queue; the renderer routes them in the app.
assert.strictEqual(open("t3code://new?prompt=hi"), 1);
assert.strictEqual(open("t3code://threads/env-1/thread-1"), 1);
// Anything else is not a web page; Electron keeps its own handling.
assert.strictEqual(open("mailto:hello@example.com"), 0);
assert.strictEqual(open("t3code://somewhere-else"), 0);
yield* Effect.yieldNow;
assert.deepStrictEqual(received, ["https://example.com/page", "http://localhost:3000/"]);
assert.deepStrictEqual(received, [
"https://example.com/page",
"http://localhost:3000/",
"t3code://new?prompt=hi",
"t3code://threads/env-1/thread-1",
]);
}).pipe(
Effect.provide(layerDesktopClerk(true, [], "darwin")),
Effect.provideService(HostProcess.Arguments, ["t3"]),
Expand Down
24 changes: 21 additions & 3 deletions apps/desktop/src/app/DesktopClerk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { codexAuthDeliveryUrl, readCodexAuthHandoff } from "@t3tools/shared/code
import { receiveCodexAuthCallback, CodexAuthCallbackError } from "./CodexAuthCallback.ts";
import * as ElectronShell from "../electron/ElectronShell.ts";
import { providerAuthReturnUrl } from "@t3tools/shared/providerAuthReturnUrl";
import { promptLinkAppPath } from "@t3tools/shared/promptLinks";
import * as HostProcess from "@t3tools/shared/HostProcess";
import { clerkFrontendApiHostnameFromPublishableKey } from "@t3tools/shared/relayAuth";
import * as ElectronApp from "../electron/ElectronApp.ts";
Expand Down Expand Up @@ -188,16 +189,28 @@ export const make = Effect.gen(function* () {
);
return true;
};
// Prompt links and thread links (`t3code://new?…`, `t3code://threads/…`) reach the
// renderer through the same queue as web links; it routes them in the app.
const openAppLink = (value: string | undefined) => {
if (!value || promptLinkAppPath(value) === null) return false;
void runPromise(webLinks.receive(value));
return true;
};
const args = yield* HostProcess.Arguments;
args.some((value) => startProviderAuthHandoff(value));
args.some((value) => startProviderAuthHandoff(value) || openAppLink(value));
// As the default browser, macOS hands T3 Code every web link through the same event.
const openWebLink = (url: string) => {
if (!DesktopWebLinks.isWebLink(url)) return false;
void runPromise(webLinks.receive(url));
return true;
};
yield* electronApp.on("open-url", (event: { preventDefault: () => void }, url: string) => {
if (startProviderAuthHandoff(url) || resumeProviderAuth(url) || openWebLink(url))
if (
startProviderAuthHandoff(url) ||
resumeProviderAuth(url) ||
openWebLink(url) ||
openAppLink(url)
)
event.preventDefault();
});
// A browser opens HTML files too, which macOS hands over by path.
Expand All @@ -207,7 +220,12 @@ export const make = Effect.gen(function* () {
void runPromise(webLinks.receive(NodeURL.pathToFileURL(path).href));
});
yield* electronApp.on("second-instance", (_event: unknown, argv: readonly string[]) => {
if (argv?.some((value) => startProviderAuthHandoff(value) || resumeProviderAuth(value)))
if (
argv?.some(
(value) =>
startProviderAuthHandoff(value) || resumeProviderAuth(value) || openAppLink(value),
)
)
return;
void runPromise(
Effect.gen(function* () {
Expand Down
Loading