Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
180 commits
Select commit Hold shift + click to select a range
d0e427d
fix(server): storage cleanup no longer counts pnpm clones as freed sp…
t3dotgg Oct 21, 2026
a1dc856
build: upgrade Vite+ to 1.3 and cache typecheck (#22716)
t3dotgg Oct 21, 2026
8f66e67
test: local test runs use package configs and a clean env (#22714)
t3dotgg Oct 21, 2026
ca049dc
fix(mobile): restore low-latency decoding for simulator streams (#22733)
Yash-Singh1 Oct 21, 2026
ea1c494
fix(marketing): typecheck cache no longer misses when the shell env c…
t3dotgg Oct 21, 2026
618761a
build(setup): leaner installs on Mac and Linux, cross-device store wa…
t3dotgg Oct 21, 2026
f4a3843
build: upgrade pnpm to 12 for 4x faster installs (#22738)
t3dotgg Oct 21, 2026
76e4aac
refactor(web): the timeline minimap lives in its own file (#22662)
juliusmarminge Oct 21, 2026
bea8790
refactor(web): timeline work entry rows and tool icons live in their …
juliusmarminge Oct 21, 2026
9e672d0
refactor(web): timeline work group and live activity rows live in the…
juliusmarminge Oct 21, 2026
3e36c5e
refactor(web): timeline user message rows and context chips live in t…
juliusmarminge Oct 21, 2026
476e2c3
refactor(web): timeline assistant and orchestration event rows live i…
juliusmarminge Oct 21, 2026
bef9142
refactor(web): timeline row derivation, position restore and find rea…
juliusmarminge Oct 21, 2026
9ff8cdc
refactor(web): the command palette's theme items live in their own fi…
juliusmarminge Oct 21, 2026
767134a
refactor(web): the command palette's thread items come from their own…
juliusmarminge Oct 21, 2026
0b7c902
refactor(web): the command palette's project items and pure helpers l…
juliusmarminge Oct 21, 2026
28a8d2b
refactor(web): the command palette's add-project views are components…
juliusmarminge Oct 21, 2026
955b4cc
feat(cli): start, message, and read threads from the terminal with t3…
t3dotgg Oct 21, 2026
7781e52
refactor(web): composer attachment tiles live in their own component …
juliusmarminge Oct 21, 2026
9576c45
refactor(web): resting image previews and queued attachments are thei…
juliusmarminge Oct 21, 2026
94bce7f
refactor(web): composer mode controls and footer actions live in Comp…
juliusmarminge Oct 21, 2026
17e62e7
refactor(web): typing no longer re-renders the composer model picker …
juliusmarminge Oct 21, 2026
b7b905d
refactor(web): composer suggestion lists are built by useComposerMenu…
juliusmarminge Oct 21, 2026
00ceb2d
refactor(web): the sidebar's thread rows live in their own file (#22696)
juliusmarminge Oct 21, 2026
e7f62ef
refactor(web): sidebar list markers and draft rows live in their own …
juliusmarminge Oct 21, 2026
ad4f18d
feat(dev): first dev start seeds real data and warms deps (#22744)
t3dotgg Oct 21, 2026
09bd654
refactor(web): the pull requests column lives in its own component (#…
juliusmarminge Oct 21, 2026
b302290
refactor(web): the pull request header's crumbs, title editor and bas…
juliusmarminge Oct 21, 2026
8f7de11
refactor(web): the pull request header's actions live in their own co…
juliusmarminge Oct 21, 2026
5db0045
refactor(web): the pull request detail loader lives in its own hook (…
juliusmarminge Oct 21, 2026
787e0e4
refactor(web): the pull request list's rows read the speed-mode modif…
juliusmarminge Oct 21, 2026
5a31f4c
refactor(web): the pull requests page's scope and grouping hooks live…
juliusmarminge Oct 21, 2026
35b0566
refactor(web): the pull requests route only validates its search; the…
juliusmarminge Oct 21, 2026
57d7844
perf(web): Shift re-renders only each row's quick-action group (#22726)
juliusmarminge Oct 21, 2026
a003b73
refactor(web): the pull request list's grouping helper lives in a log…
juliusmarminge Oct 21, 2026
5f0a0d1
refactor(web): chat markdown code blocks live in their own module (#2…
juliusmarminge Oct 21, 2026
36bda3c
refactor(web): the Mermaid code block lives in its own component file…
juliusmarminge Oct 21, 2026
5c5d6ed
refactor(web): chat markdown tables and details live in their own com…
juliusmarminge Oct 21, 2026
827f6d4
refactor(web): chat markdown links and file chips live in their own m…
juliusmarminge Oct 21, 2026
7ffc3bb
refactor(web): chat markdown images and videos live in their own modu…
juliusmarminge Oct 21, 2026
9c3e743
refactor(web): ChatView's module-level helpers live in their own file…
juliusmarminge Oct 21, 2026
a97f7f8
refactor(web): ChatView's persistent terminal drawers live in their o…
juliusmarminge Oct 21, 2026
8da8f61
refactor(web): ChatView's right panel lives in its own component (#22…
juliusmarminge Oct 21, 2026
6b13e8f
refactor(web): ChatView's timeline follow and anchoring lives in useT…
juliusmarminge Oct 21, 2026
030be16
refactor(web): ChatView's machine and server-update banners live in u…
juliusmarminge Oct 21, 2026
bd7aab2
refactor(web): ChatView's subagent, goal, background-work and branch …
juliusmarminge Oct 21, 2026
91a0a29
refactor(web): ChatView's draft machine routing lives in useDraftEnvi…
juliusmarminge Oct 21, 2026
38b13e9
refactor(web): ChatView's send preparation is pure functions in ChatV…
juliusmarminge Oct 21, 2026
0b91504
refactor(web): the archived threads settings page lives in its own fi…
juliusmarminge Oct 21, 2026
568cbb4
refactor(web): the typography settings section lives in its own file …
juliusmarminge Oct 21, 2026
501f5c5
refactor(web): the appearance settings page lives in its own file (#2…
juliusmarminge Oct 21, 2026
381514e
refactor(web): the background activity setting and its dialog live in…
juliusmarminge Oct 21, 2026
9dc28a1
refactor(web): the connections page's pure helpers live in Connection…
juliusmarminge Oct 21, 2026
263eef2
refactor(web): authorized clients and endpoint rows live in their own…
juliusmarminge Oct 21, 2026
848e352
refactor(web): saved and T3 Connect environment rows live in their ow…
juliusmarminge Oct 21, 2026
efdda5e
perf(server): skip the macOS xcrun git shim (#22759)
t3dotgg Oct 21, 2026
6490a9e
docs(agents): read vendored .repos with git show when sparse-excluded…
t3dotgg Oct 21, 2026
21da306
fix(web): ⌘Z undoes a settle even when the composer has focus (#22607)
t3dotgg Oct 21, 2026
74541ba
feat(scripts): one command checks what the branch changed (#22767)
t3dotgg Oct 21, 2026
1f4eae7
fix(scripts): check:changed no longer skips knip after a removed impo…
t3dotgg Oct 21, 2026
1dfb572
perf(dev): faster first load for shared dev servers (#22776)
t3dotgg Oct 21, 2026
8fe4206
fix(server): stalled clones say "Stalled" instead of a frozen speed (…
t3dotgg Oct 21, 2026
a8bb769
fix(web): steers split a finished turn's work instead of stacking und…
t3dotgg Oct 21, 2026
e27a03e
fix(web): images on their own line no longer sit beside their label (…
t3dotgg Oct 21, 2026
688ee52
fix(release): include pnpm hook in Vercel uploads (#22813)
t3dotgg Oct 21, 2026
1688f96
fix(release): keep Vercel warnings out of deployment URLs (#22817)
t3dotgg Oct 21, 2026
96f09c6
fix(queue): send selected held messages when a thread is stopped (#22…
Yash-Singh1 Oct 21, 2026
066c8fc
fix(server): delegated Claude children follow your subagent cache TTL…
t3dotgg Oct 21, 2026
448b8a9
fix(server): t3 pair in a worktree no longer falls back to the live i…
t3dotgg Oct 21, 2026
370b9ae
fix(server): avoid expensive diff minimization in status refreshes (#…
voltcrash Oct 21, 2026
aacd1ee
fix(codex): keep every path of a multi-file patch (#22541)
only21mil Oct 21, 2026
588150e
fix(gitlab): merge request diffs page 30 files at a time so GitLab 15…
Mnigos Oct 21, 2026
2d40894
fix(server): keep Antigravity question options and no-custom-answer f…
fixfon Oct 21, 2026
1d9060b
fix(server): commit prompts no longer repeat CLAUDE.md when it matche…
t3dotgg Oct 21, 2026
b260a7c
fix(mcp): point a bare thread uuid at its mcp: thread in thread_not_f…
fixfon Oct 21, 2026
2f021ee
fix(opencode): out-of-funds failures show OpenCode's message instead …
fixfon Oct 21, 2026
35e5d62
fix(shared): accept a pasted ChatGPT callback URL that is missing htt…
Project516 Oct 21, 2026
a7c22f1
fix(server): the background service picks up JAVA_HOME from the login…
t3dotgg Oct 21, 2026
e822ba7
fix(server): answered questions say "already answered" instead of "no…
t3dotgg Oct 21, 2026
810e8f6
fix(desktop): an abandoned browser sign-in no longer blocks T3 Connec…
t3dotgg Oct 21, 2026
680152e
fix(server): agents get a short, current model list instead of a 55k-…
t3dotgg Oct 21, 2026
9179178
docs(agents): proof for a bug fix depends on the bug (#23008)
juliusmarminge Oct 21, 2026
fa42465
fix(server): removing a worktree on Windows no longer deletes what it…
SunkenInTime Oct 21, 2026
5a0d159
perf(web): a streaming thread re-renders only its own sidebar row (#2…
juliusmarminge Oct 21, 2026
0bdf33a
refactor(web): the add environment dialog owns its form state (#22686)
juliusmarminge Oct 21, 2026
4196708
fix(desktop): use Clerk's upstream fix for abandoned browser sign-ins…
wobsoriano Oct 21, 2026
d27c606
feat: show automation messages as compact timeline rows (#22638)
juliusmarminge Oct 21, 2026
e749245
feat(server,web,mobile): approvals in full access say why Claude aske…
juliusmarminge Oct 21, 2026
d13fc84
feat(claude): idle compaction has a global default and per-instance o…
juliusmarminge Oct 21, 2026
c19d997
perf(web): typing no longer re-renders the traits picker or attach bu…
juliusmarminge Oct 21, 2026
22fd2ac
refactor(web): the composer's layout and provider hooks live in their…
juliusmarminge Oct 21, 2026
0755f98
refactor(web): the prompt stash lives in useComposerStash (#23046)
juliusmarminge Oct 21, 2026
fa37002
refactor(web): composer context imports live in useComposerContextImp…
juliusmarminge Oct 21, 2026
98c494e
refactor(web): composer file intake lives in useComposerAttachmentInt…
juliusmarminge Oct 21, 2026
1444b3f
refactor(web): the composer's footer controls render in ComposerContr…
juliusmarminge Oct 21, 2026
e78f580
refactor(web): composer key handling lives in useComposerCommandKey (…
juliusmarminge Oct 21, 2026
f136d5a
refactor(web): ChatView's send paths live in useComposerSend (#23062)
juliusmarminge Oct 21, 2026
379a391
refactor(web): ChatView's terminal actions live in useChatTerminalAct…
juliusmarminge Oct 21, 2026
ebe828c
refactor(web): ChatView's right panel actions live in useRightPanelAc…
juliusmarminge Oct 21, 2026
92105d4
refactor(web): ChatView's snooze, settle, and checkout actions live i…
juliusmarminge Oct 21, 2026
9f087f7
refactor(web): ChatView's revert, rollback, and fork live in useTimel…
juliusmarminge Oct 21, 2026
5b8298c
refactor(web): ChatView's attachment preview handoff lives in useAtta…
juliusmarminge Oct 21, 2026
7be791c
refactor(web): ChatView's project clone banner lives in useProjectClo…
juliusmarminge Oct 21, 2026
976a601
refactor(web): ChatView's model, mode, and workspace choices live in …
juliusmarminge Oct 21, 2026
114f77f
refactor(web): ChatView's pull request checkout lives in usePullReque…
juliusmarminge Oct 21, 2026
9952a7a
refactor(web): ChatView's thread derivations are tested functions in …
juliusmarminge Oct 21, 2026
322d08d
refactor(web): ChatView's paste-to-focus, titlebar controls, and time…
juliusmarminge Oct 21, 2026
f54dfc0
fix(cursor): a closed-stream write in the Cursor SDK no longer stops …
t3dotgg Oct 21, 2026
c25ba72
fix(server): Codex no longer offers a one-click update for installs i…
koushikxd Oct 21, 2026
9892aca
fix(pi): declare properties on MCP tool schemas that omit them (#21822)
tlconde Oct 21, 2026
2936b90
fix(server): a desktop backend whose launcher died shuts down cleanly…
SunkenInTime Oct 21, 2026
71b8670
fix(mobile): chat feed no longer re-derives on every render (#22913)
t3dotgg Oct 21, 2026
9c6523d
docs(user): the outside agents guide says which addresses agents can …
Gourav224 Oct 21, 2026
60dc0a0
fix(server): HTML preview reports a browser start error instead of an…
t3dotgg Oct 21, 2026
0d876e0
fix(tailscale): a timed-out tailscale probe no longer outlives its ca…
t3dotgg Oct 21, 2026
8541f86
docs(composer): queued messages follow the Follow-up behavior setting…
t3dotgg Oct 21, 2026
f087810
fix(server): failed provider updates say why (#22506)
koushikxd Oct 21, 2026
da46db6
test(telemetry): keep fixture PIDs from colliding with the test worke…
only21mil Oct 21, 2026
2a27e15
fix(server): server tests resolve the macOS temp dir symlink (#21442)
nabettu Oct 21, 2026
aef8b6f
fix(scripts): mobile lint fails instead of passing when ktlint or det…
t3dotgg Oct 21, 2026
ee11fbd
fix(server): t3_thread_read clamps oversized page sizes instead of fa…
t3dotgg Oct 21, 2026
d0c5d7c
fix(mobile): opening a pull request no longer crashes with "Maximum u…
nabettu Oct 21, 2026
b9c1293
fix(web): PR Code tab keeps its files after a refresh with an unchang…
t3dotgg Oct 21, 2026
38d993f
fix(web): finished provider updates no longer leave a hidden spinner …
t3dotgg Oct 21, 2026
5c3721e
fix(composer): mentions of files like `posts.$postId.tsx` or `[id].ts…
t3dotgg Oct 21, 2026
5b715cc
refactor(web): resuming an interrupted run lives in its own hook (#23…
juliusmarminge Oct 21, 2026
36d1e2f
refactor(web): proposed-plan follow-ups and implement-in-new-thread l…
juliusmarminge Oct 21, 2026
ac23b74
refactor(web): multiple-model sends live in their own hook (#23094)
juliusmarminge Oct 21, 2026
beec3c8
refactor(web): the composer send reads its own settings and draft ins…
juliusmarminge Oct 21, 2026
b34f74c
refactor(web): ComposerControlsBar renders without a memo() wrapper (…
juliusmarminge Oct 21, 2026
764fff2
refactor(web): chat shortcuts live with the hooks that own their acti…
juliusmarminge Oct 21, 2026
a642ab2
refactor(web): ChatView's timeline banners render in ChatBannerLane (…
juliusmarminge Oct 21, 2026
968dd51
fix(web): the branch toolbar and thread details panel stay cached whi…
juliusmarminge Oct 21, 2026
1b22228
fix(server): scheduled tasks no longer jump to the top when toggled (…
t3dotgg Oct 21, 2026
22b89ef
fix(server): Forgejo and GitCafe pull requests link to their threads …
MarcoDotIO Oct 21, 2026
fb7f087
fix(server): pushes the remote refuses say why instead of a generic f…
t3dotgg Oct 21, 2026
1ee0241
fix(composer): typing a price no longer opens the skill menu (#21519)
MarcoDotIO Oct 21, 2026
a35066d
fix(web): thread details PR merge uses the last selected merge method…
tris203 Oct 21, 2026
bee9ce8
fix(web): a Usage toggle shortcut now goes back instead of staying on…
t3dotgg Oct 21, 2026
159f2b8
fix(web): quote comment box stays on screen for long code lines (#22149)
EtanHey Oct 21, 2026
86fa9e0
fix(web): right panel launcher letters open their surface instead of …
t3dotgg Oct 21, 2026
edce5f0
fix(web): ../ file links outside the workspace open as host files (#2…
t3dotgg Oct 21, 2026
6de7da5
fix(shared): recognize relative folder links with trailing slash (#22…
macodev00 Oct 21, 2026
1a44c40
fix(client): usage limits skip disabled connections (#22936)
M4NU5 Oct 21, 2026
7845898
fix(web): imported VS Code themes keep destructive buttons red (#21924)
lgollut Oct 21, 2026
855db96
fix(shared): Azure DevOps repositories with a space in the name list …
Tabonx Oct 21, 2026
2333f16
fix(opencode): cancelled todos no longer keep the todo list running (…
MarcoDotIO Oct 21, 2026
0f74ff8
fix(web): copy to machine clones the fork, not its upstream (#22492)
AKolenda Oct 21, 2026
1befc71
fix(server): JetBrains IDEs open file links at the right column (#22826)
levochkaa Oct 21, 2026
70e5e38
fix(server): sync pull request draft status changes (#22832)
Yash-Singh1 Oct 21, 2026
bd6940b
test(web): chat shortcut test types through the composer handle (#23126)
juliusmarminge Oct 21, 2026
a12d6ed
Merge commit from fork
juliusmarminge Oct 21, 2026
b5a226e
fix(source-control): merge messages drop Claude Code's current claude…
MarcoDotIO Oct 21, 2026
ed9b7ca
fix(build): pin Node 26.12.1 for development and standalone releases …
PixPMusic Oct 22, 2026
9cdd059
fix(mobile): keep Duo toolbar actions clear of workspace tabs (#22976)
juliusmarminge Oct 22, 2026
ec2fd4d
fix(mobile): respect Duo safe areas in overlays (#22977)
juliusmarminge Oct 22, 2026
eec07b6
fix(mobile): retain resting scroll offsets through Duo inset changes …
juliusmarminge Oct 22, 2026
61bdec0
fix(mobile): deliver the first tab selection after Duo folding (#22979)
juliusmarminge Oct 22, 2026
13eea3f
fix(mobile): use native full-width sheets on iPhone Duo (#22980)
juliusmarminge Oct 22, 2026
added62
fix(mobile): the pull requests tab's empty detail asks for a pull req…
juliusmarminge Oct 22, 2026
801701d
fix(mobile): the iPhone Duo keeps list titles through folds and unfol…
juliusmarminge Oct 22, 2026
9fa551a
fix(mobile): the iPhone Duo searches from a field at the bottom of it…
juliusmarminge Oct 22, 2026
37d6fce
fix(mobile): a closed search no longer risks freezing the app (#23146)
juliusmarminge Oct 22, 2026
5ed2ea2
fix(mobile): folding the Duo keeps the thread's end or the reader's l…
juliusmarminge Oct 22, 2026
e6c2aeb
fix(mobile): the iPhone Duo's search field and composer line up with …
juliusmarminge Oct 22, 2026
83a8501
fix(mobile): Screens 5.0.0-t3.36 stops an iPhone Duo unfold crash (#2…
juliusmarminge Oct 22, 2026
89fe509
fix(mobile): the iPhone Duo's inspector panes use the full column (#2…
juliusmarminge Oct 22, 2026
8acbefe
fix(gitcafe): show line counts on linked and listed pull requests (#2…
maria-rcks Oct 22, 2026
49e97d4
docs(import): correct conversation size and batch limits (#23226)
only21mil Oct 22, 2026
6f6f68a
fix(server): stop abandoned turns before continuing threads (#23169)
Yash-Singh1 Oct 22, 2026
f8e4834
feat(server): export how long runs take and how they end (#22094)
juliusmarminge Oct 22, 2026
6318bfc
fix(mobile): new-thread heading clears the iPad header (#23206)
juliusmarminge Oct 22, 2026
aa0158d
fix(pi): fork completed turns while the next turn is running (#23052)
juliusmarminge Oct 22, 2026
b295dd8
fix(mobile): drafts swipe to discard and every row move animates (#23…
juliusmarminge Oct 22, 2026
defb7e6
feat(server): webhook filters fan out over arrays with a [] path wild…
juliusmarminge Oct 22, 2026
3690c86
fix(web): Arabic and Hebrew text reads and navigates right to left (#…
yzn-h Oct 22, 2026
a98ebde
fix(client-runtime): refresh Git refs when the RPC session changes (#…
Yash-Singh1 Oct 22, 2026
05b697f
fix(web): cap list layout passes to prevent React error 185 (#23315)
Yash-Singh1 Oct 22, 2026
7147721
Merge upstream pingdotgg/t3code main (05b697f6a2) into stage
bk-agent-01 Oct 22, 2026
9d606b2
fix: repair fork seams after the upstream 2026-10-22 merge
bk-agent-01 Oct 22, 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
  •  
  •  
  •  
6 changes: 5 additions & 1 deletion .github/scripts/ci-changes.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// node ci-changes.cjs --paths <file> --full run every Linux job, gate only the macOS lint
// node ci-changes.cjs changed paths unknown: run everything
//
// scripts/check-changed.ts requires the same decisions so local runs match CI.
//
// Every changed path maps to workspace packages, which then pull in their
// dependents from package.json. A path this file does not recognize runs
// everything, so a new root file or directory can only cost minutes.
Expand Down Expand Up @@ -201,4 +203,6 @@ function main() {
for (const [key, value] of Object.entries(outputs)) console.log(`${key}=${value}`);
}

main();
module.exports = { readWorkspace, decide };

if (require.main === module) main();
27 changes: 27 additions & 0 deletions .github/scripts/ci-changes.d.cts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
interface WorkspacePackage {
readonly name: string;
readonly dir: string;
readonly hasTest: boolean;
readonly deps: ReadonlyArray<string>;
}

export function readWorkspace(): Array<WorkspacePackage>;

export function decide(
files: ReadonlyArray<string> | null,
packages: ReadonlyArray<WorkspacePackage>,
full: boolean,
): {
affected: Array<string>;
outputs: {
typecheck: boolean;
build: boolean;
test: boolean;
test_packages: string;
test_web: boolean;
test_server: boolean;
rust: boolean;
release_smoke: boolean;
mobile_native: boolean;
};
};
87 changes: 87 additions & 0 deletions .github/scripts/vercel-deployment-output.test.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
const assert = require("node:assert/strict");
const { spawnSync } = require("node:child_process");
const { mkdtempSync, readFileSync, rmSync, existsSync } = require("node:fs");
const { tmpdir } = require("node:os");
const { join } = require("node:path");
const { test } = require("node:test");

const release = readFileSync(join(__dirname, "../workflows/release.yml"), "utf8");
const preview = readFileSync(join(__dirname, "../workflows/web-preview.yml"), "utf8");
const stepPattern =
/ name: (?:Build staged deployment|Deploy preview)\n shell: bash\n run: \|\n((?: .*\n|\n)+)/g;
const steps = [
...Array.from(release.matchAll(stepPattern), (match, index) => [
index === 0 ? "hosted web" : "marketing",
match[1],
]),
...Array.from(preview.matchAll(stepPattern), (match) => ["web preview", match[1]]),
];
assert.equal(steps.length, 3, "Expected both release steps and the preview step");

const url = "https://t3code-fixture-pinglabs.vercel.app";
const warning = 'Error while parsing config file: "/runner/t3code/pnpm-lock.yaml"';

function runStep(script, stdout, exitCode = 0) {
const directory = mkdtempSync(join(tmpdir(), "t3-vercel-output-"));
const outputFile = join(directory, "output");
try {
const result = spawnSync(
"bash",
[
"-c",
'vp() { printf "%s\\n" "$FIXTURE_STDOUT"; return "$FIXTURE_EXIT"; }\n' +
'curl() { printf \'{"id":"fixture-project"}\\n\'; }\n' +
script.replace(/^ /gm, "").replace(/\$\{\{.*?\}\}/g, "fixture"),
],
{
encoding: "utf8",
env: {
PATH: process.env.PATH,
VERCEL_TOKEN: "fixture-token",
VERCEL_ORG_ID: "fixture-org",
VERCEL_PROJECT_ID: "fixture-project",
GITHUB_OUTPUT: outputFile,
FIXTURE_STDOUT: stdout,
FIXTURE_EXIT: String(exitCode),
},
},
);
assert.ifError(result.error);
return {
...result,
output: existsSync(outputFile) ? readFileSync(outputFile, "utf8") : "",
};
} finally {
rmSync(directory, { recursive: true, force: true });
}
}

for (const [name, script] of steps) {
for (const [label, stdout] of [
["plain URL", url],
["lockfile warning", `${warning}\n${url}`],
["trailing diagnostic", `${url}\nDone`],
]) {
test(`${name}: saves one deployment URL after ${label}`, () => {
const result = runStep(script, stdout);
assert.equal(result.status, 0, result.stderr);
assert.deepEqual(
result.output.split("\n").filter((line) => !line.startsWith("project_id=")),
[`deployment_url=${url}`, ""],
);
});
}

for (const [label, stdout, exitCode] of [
["missing URL", warning, 0],
["invalid URL", "https://example.invalid/deployment", 0],
["multiple URLs", `${url}\nhttps://other.vercel.app`, 0],
["failed deployment", url, 1],
]) {
test(`${name}: rejects ${label} without saving output`, () => {
const result = runStep(script, stdout, exitCode);
assert.notEqual(result.status, 0);
assert.equal(result.output, "");
});
}
}
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ jobs:
run: python3 -B .github/scripts/stage-preview-bundle.test.py

- name: Test release checks
run: node --test .github/scripts/check-nightly-release.test.cjs
run: node --test .github/scripts/check-nightly-release.test.cjs .github/scripts/vercel-deployment-output.test.cjs

- name: Finish installing browser secret helper build libraries
timeout-minutes: 5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-bkt3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Set up pnpm
uses: pnpm/action-setup@v6
with:
version: 11.10.0
version: 12.14.0

- name: Set up Node.js
uses: actions/setup-node@v7
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-expbkt3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Set up pnpm
uses: pnpm/action-setup@v6
with:
version: 11.10.0
version: 12.14.0

- name: Set up Node.js
uses: actions/setup-node@v7
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Set up pnpm
uses: pnpm/action-setup@v6
with:
version: 11.10.0
version: 12.14.0

- name: Set up Node.js
uses: actions/setup-node@v7
Expand Down
11 changes: 3 additions & 8 deletions .github/workflows/release-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,18 +253,13 @@ jobs:
if [[ "${{ inputs.version }}" =~ -nightly\.[0-9]{8}\.[0-9]+$ ]]; then brand=nightly; fi
node scripts/apply-web-brand-assets.ts "$brand" apps/server/dist/client

# The single-executable is built with a Node that supports --build-sea
# (25.7+); the repo itself stays on the engines.node version. A native
# build injects into the runner's own Node; a Windows target downloads its
# node.exe.
# Setup Vite+ selects the exact engines.node version from package.json.
# Native builds embed that executable; cross-target builds download the
# same version for their target.
- name: Build CLI single-executable
if: inputs.cli_archive
shell: bash
env:
# The exact version, not a major: vp downloads it from nodejs.org/dist on
# the runner, and only exact versions have a dist directory. Keep in
# step with SEA_NODE_VERSION in apps/server/vite.config.ts.
VP_NODE_VERSION: "26.8.2"
# The executable bundles the server again, so it needs the same stamp
# as release.yml's JS bundle.
T3CODE_TELEMETRY_CHANNEL: ${{ github.repository == 'pingdotgg/t3code' && inputs.release_channel || 'dev' }}
Expand Down
18 changes: 16 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1072,7 +1072,7 @@ jobs:
fi

echo "Building hosted web app for $channel_name channel."
deployment_url="$(
deployment_output="$(
vp dlx vercel@53.1.1 deploy \
--archive=tgz \
--prod \
Expand All @@ -1091,6 +1091,13 @@ jobs:
--build-env "VITE_HOSTED_APP_URL=$router_url" \
--build-env "VITE_HOSTED_APP_CHANNEL=$channel_name"
)"
printf '%s\n' "$deployment_output"
# Vercel can print lockfile warnings to stdout before the deployment URL.
deployment_url="$(printf '%s\n' "$deployment_output" | grep -E '^https://[[:alnum:].-]+\.vercel\.app$')"
if [[ "$deployment_url" == *$'\n'* ]]; then
echo "Vercel returned multiple deployment URLs." >&2
exit 1
fi
echo "Staged $deployment_url."
echo "deployment_url=$deployment_url" >> "$GITHUB_OUTPUT"

Expand Down Expand Up @@ -1219,7 +1226,7 @@ jobs:
)"
export VERCEL_PROJECT_ID

deployment_url="$(
deployment_output="$(
vp dlx vercel@53.1.1 deploy \
--archive=tgz \
--prod \
Expand All @@ -1228,6 +1235,13 @@ jobs:
--token "$VERCEL_TOKEN" \
--scope "${VERCEL_TEAM_SLUG:-$VERCEL_ORG_ID}"
)"
printf '%s\n' "$deployment_output"
# Vercel can print lockfile warnings to stdout before the deployment URL.
deployment_url="$(printf '%s\n' "$deployment_output" | grep -E '^https://[[:alnum:].-]+\.vercel\.app$')"
if [[ "$deployment_url" == *$'\n'* ]]; then
echo "Vercel returned multiple deployment URLs." >&2
exit 1
fi
echo "Staged $deployment_url."
echo "deployment_url=$deployment_url" >> "$GITHUB_OUTPUT"
echo "project_id=$VERCEL_PROJECT_ID" >> "$GITHUB_OUTPUT"
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/web-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,20 @@ jobs:

vercel_scope="${VERCEL_TEAM_SLUG:-$VERCEL_ORG_ID}"

deployment_url="$(
deployment_output="$(
vp dlx vercel@53.1.1 deploy \
--archive=tgz \
--yes \
--token "$VERCEL_TOKEN" \
--scope "$vercel_scope"
)"
printf '%s\n' "$deployment_output"
# Vercel can print lockfile warnings to stdout before the deployment URL.
deployment_url="$(printf '%s\n' "$deployment_output" | grep -E '^https://[[:alnum:].-]+\.vercel\.app$')"
if [[ "$deployment_url" == *$'\n'* ]]; then
echo "Vercel returned multiple deployment URLs." >&2
exit 1
fi

echo "Deployed $deployment_url"
echo "deployment_url=$deployment_url" >> "$GITHUB_OUTPUT"
Expand Down
21 changes: 21 additions & 0 deletions .pnpmfile.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Windows WSL dev mode runs the server under Linux from the same node_modules
// as the Windows client, so Windows installs also need Linux x64 glibc native
// modules. Other platforms install only their own binaries; setting this
// everywhere added ~2.2 GB of foreign binaries to every macOS install.
// Release scripts stage their own installs with explicit architectures.
module.exports = {
hooks: {
updateConfig(config) {
// oxlint-disable-next-line t3code/no-global-process-runtime -- pnpm loads this file before any Effect runtime exists.
if (process.platform !== "win32") return config;
return {
...config,
supportedArchitectures: {
os: ["current", "linux"],
cpu: ["current", "x64"],
libc: ["current", "glibc"],
},
};
},
},
};
2 changes: 2 additions & 0 deletions .vercelignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Vercel's default .pnp* rule also excludes pnpm's hook, whose checksum is in the lockfile.
!/.pnpmfile.cjs
12 changes: 8 additions & 4 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ The most common defect in this repo is a change that works on the path you teste
## Dev servers

- `vp i` installs. Worktrees get this from the t3.json setup script; if module resolution looks broken, it probably did not run.
- Setup runs in the background. While `.t3/setup-running` names a live PID, wait for it and do not run `vp i`. It ends with `.t3/setup-done` or `.t3/setup-failed` (with the error tail). With no marker at all, setup never ran here, so run `vp i` yourself.
- `vp run dev` starts server and web. In a worktree, state defaults to that worktree's gitignored `.t3`, which deliberately outranks an ambient `T3CODE_HOME` so you cannot land on shared state by accident. An explicit `--home-dir` still wins.
- Ports derive from the worktree path and are stable across restarts, but read the real ones from the `[dev-runner]` line since occupied ports shift.
- Sharing over the tailnet is three steps: run `vp run dev --share` in the background, wait for the `pairingUrl:` line in its output, then give that full URL to an unpaired browser. Do not wire up `tailscale serve` by hand, open the URL yourself, or consume the user's pairing link. A browser with the reusable dev cookie can use the bare origin. If a normal one-time token was consumed, mint a fresh one with `node apps/server/src/bin.ts pair`. It carries standard scopes, while the startup URL carries admin scopes needed for Connections settings.
Expand All @@ -168,22 +169,25 @@ The most common defect in this repo is a change that works on the path you teste

An empty database is a bad test. Seed your worktree's `.t3` with a copy of real data instead of pointing at live state:

- Run `vp run migrate-dev-db` with your dev server stopped. It rebuilds `<worktree>/.t3/userdata/statev2.sqlite` from a read-only snapshot of `~/.t3/userdata/statev2.sqlite`, the developer's real data. It keeps recent projects and their stopped threads, and drops scheduled tasks, pending work, and auth sessions, so your dev server never runs the developer's agents. Raise `--projects` and `--threads-per-project` for more data.
- The first `vp run dev` in a worktree does this for you when its database is missing. `--no-seed` or `T3CODE_DEV_SEED=0` skips it.
- Run `vp run migrate-dev-db` with your dev server stopped to refresh. It rebuilds `<worktree>/.t3/userdata/statev2.sqlite` from a read-only snapshot of `~/.t3/userdata/statev2.sqlite`, the developer's real data. It keeps recent projects and their stopped threads, and drops scheduled tasks, pending work, and auth sessions, so your dev server never runs the developer's agents. Raise `--projects` and `--threads-per-project` for more data.
- Refresh `statev2.sqlite`, not `state.sqlite`. The server copies the V1 `state.sqlite` only when `statev2.sqlite` is missing.
- Bring `secrets` and `settings.json` only if the flow under test needs them.
- Copy in, never symlink. Data flows one way: into your sandbox, never back out.

## Verifying

- Smallest proof that the change works. `vp test run <files>` for the tests you touched (`-t "<name>"` in big files), `vp lint <files>`, and `vp run typecheck` in the package you changed. Not `npx tsc`; it is 3x slower than tsc-rs.
- Run `vp run knip:check` (about 35 s) when you add, remove, or rename exports, files, or dependencies.
- Before you push, run `vp run check:changed`. It runs CI's fast checks for changed files: format, lint, knip, typecheck of affected packages and dependents, and tests beside changes. CI still runs the full test suites.
- While you iterate, run `vp test run <files>`. For big files, add `-t "<name>"`.
- Do not use `npx tsc`. Use `vp run typecheck`; it uses tsc-rs, which is 3x faster.
- Run `node -e` snippets from `apps/server` or the owning package. `effect` does not resolve from the repo root.
- Test meaningful logic or observable behavior. Do not render components to static markup to assert props or attributes, or add tests that merely assert callback wiring or mirror the implementation.
- **Do not run repo-wide checks.** No `vp check`, no `vp run -r test`, no `vp run -r typecheck` unless I ask. CI owns the full suite.
- In the Beknown fork this is a hard rule, not a preference: the dev server is shared by both T3 Code deployments, every agent session, branch databases, and self-hosted runners, and full-suite runs have OOM-crashed it. Never run a repo-wide build either — deployments install GitHub-built artifacts, so nothing needs building here.
- The loop is: push the branch, open the PR, watch CI remotely with `gh pr checks <n> --watch` and `gh run view <id> --log-failed`, then push fixes from this box. The fork's deploy workflows run on GitHub-hosted `ubuntu-latest`, so they are real offload.
- Check headroom with `free -g` and `uptime` before anything long. Under ~6G available or load above ~12, move the work to CI instead.
- Backend behavior changes ship with focused tests for that behavior.
- Proof for a bug fix depends on the bug. Logic, data, state, and protocol bugs get a failing test first (the fewest that fail on `main` for that reason, in the module's existing test file), then the fix. Purely visual bugs (spacing, colour, alignment, a layout shift) get before/after captures as their proof and no test: do not add UI tests for nitpicks, and do not ask for one in review when a capture already shows it. A server-only fix with no visible surface ships the test plus a short runtime transcript.
- The server is event-sourced, and side effects run after the command commits. In tests, drain the effect worker (`OrchestrationEffectWorkerV2.drain`) or await the specific persisted event or `Deferred` that marks the milestone. Never wait on sleeps or polling. A test that needs a timeout to pass is wrong. Concretely:
- `it.effect` runs on a `TestClock`; `Effect.sleep` only advances through `TestClock.adjust`. `it.live` is wall-clock and only for subprocess or network fixtures.
- No `yieldNow` or `sleep` polling loops. Await the `Deferred`, take from the `Queue`, or drain the worker.
Expand Down Expand Up @@ -258,7 +262,7 @@ Architecture and its constraints: `docs/internals/overview.md`. Glossary: `docs/
- `packages/contracts` - Effect/Schema contracts plus small derived helpers. No heavy runtime logic.
- `packages/shared` - shared runtime utils, subpath exports, no barrel.
- `packages/client-runtime` - client code shared by web and mobile.
- `.repos/` - vendored read-only references. Prefer their patterns over invented ones. Never edit or import from them. Sync with `vpr sync:repos` when bumping the matching dependency.
- `.repos/` - vendored read-only references. Prefer their patterns over invented ones. Never edit or import from them. Sync with `vpr sync:repos` when bumping the matching dependency. If it is missing (sparse checkout), read a file with `git show origin/main:.repos/<path>`.

## Taste

Expand Down
1 change: 0 additions & 1 deletion apps/desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"scripts": {
"ensure:electron": "node scripts/ensure-electron-runtime.mjs",
"start": "node scripts/start-electron.mjs",
"typecheck": "tsc-rs --noEmit",
"test": "vp test run --passWithNoTests",
"smoke-test": "node scripts/smoke-test.mjs"
},
Expand Down
10 changes: 9 additions & 1 deletion apps/desktop/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ export default defineConfig({
dependsOn: ["t3#build"],
cache: false,
},
// tsc-rs rewrites the tsbuildinfo it reads, which keeps a task out of the cache.
typecheck: {
command: "tsc-rs --noEmit",
cache: { input: [{ auto: true }, "!*.tsbuildinfo"] },
},
},
},
pack: [
Expand Down Expand Up @@ -165,6 +170,9 @@ export default defineConfig({
// The Windows lane runs workspace suites concurrently; filesystem-heavy
// desktop integration tests can exceed Vitest's 5 second default there.
testTimeout: 15_000,
setupFiles: ["../../packages/shared/src/testing/longTempDir.ts"],
setupFiles: [
"../../packages/shared/src/testing/longTempDir.ts",
"../../packages/shared/src/testing/providerEnv.ts",
],
},
});
6 changes: 6 additions & 0 deletions apps/marketing/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import { defineConfig } from "astro/config";

// Astro loads env with an empty prefix, and under `vp run` Vite+'s loadEnv then reports every
// variable to the task cache. Any env difference (TERM, VP_RAW_SUBCOMMAND, an agent's session
// vars) would rerun `astro check`. Without the runner client, loadEnv reads process.env directly;
// file tracking does not use this client.
delete process.env.VP_RUN_NODE_CLIENT_PATH;

export default defineConfig({
site: "https://t3.codes",
server: {
Expand Down
3 changes: 1 addition & 2 deletions apps/marketing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
"stage:install-scripts": "node scripts/stage-install-scripts.mjs",
"dev": "node scripts/stage-install-scripts.mjs && astro dev",
"build": "node scripts/stage-install-scripts.mjs && astro build",
"preview": "astro preview",
"typecheck": "astro check"
"preview": "astro preview"
},
"dependencies": {
"@t3tools/shared": "workspace:*",
Expand Down
15 changes: 15 additions & 0 deletions apps/marketing/vite.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { defineConfig } from "vite-plus";

// Astro reads astro.config.mjs. This file only configures `vp run` tasks.
export default defineConfig({
run: {
tasks: {
// `astro check` regenerates .astro/*.d.ts and then reads them, which
// keeps a task out of the cache. Its real inputs are tracked as usual.
typecheck: {
command: "astro check",
cache: { input: [{ auto: true }, "!.astro/**"] },
},
},
},
});
Binary file not shown.
Binary file not shown.
Loading
Loading