Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
185 commits
Select commit Hold shift + click to select a range
64fafbd
perf(web): speed up folder menu sorting (#10190)
AksharP5 Sep 6, 2026
29d03ec
style(web): fix inconsistencies in new settings layouts (#10177)
extoci Sep 6, 2026
2d645df
feat(threads): persist manual active thread order (#9729)
juliusmarminge Sep 6, 2026
6766e68
feat(mobile): arrange active threads from both thread lists (#9730)
juliusmarminge Sep 6, 2026
4023d93
feat(web): drag threads across sections with consistent motion (#9731)
juliusmarminge Sep 6, 2026
9a47c7b
feat(web): simplify sidebar drag destination cues (#9750)
juliusmarminge Sep 6, 2026
36c48a6
fix(mobile): keep pending tasks queued when a send fails in flight (#…
juliusmarminge Sep 6, 2026
c0bf354
feat(mobile): show new-task drafts alongside pending tasks in the thr…
juliusmarminge Sep 6, 2026
8e129a0
feat(mobile): allow several new-task drafts per project (#10327)
juliusmarminge Sep 6, 2026
9846915
fix(mobile): slide settled threads out before collapsing (#10345)
StiensWout Sep 6, 2026
95d9937
fix(clients): show feedback results in composer banners (#10398)
juliusmarminge Sep 6, 2026
ea646c0
fix(server): stop Windows terminal polling from spiking CPU (#9476)
UtkarshUsername Sep 6, 2026
c2c4185
fix(web): onboarding installs agents without needing Node or npm (#10…
t3dotgg Sep 6, 2026
7ac93e3
fix(server): allow settling threads with unanswered async questions (…
t3dotgg Sep 6, 2026
001f06d
feat(ci): ship stable releases from the latest nightly commit (#10410)
t3dotgg Sep 6, 2026
075a86e
feat(marketing): add a nightly channel to the download page (#10408)
t3dotgg Sep 6, 2026
9c96ac2
fix(web): keep settings inputs focused during IME composition (#10262)
Lucenx9 Sep 6, 2026
f1a0811
fix(server): preserve Codex reset credits during usage updates (#10308)
yashranaway Sep 6, 2026
e15ffb9
docs: link the repository security reporting policy (#10303)
yashranaway Sep 6, 2026
2d6a379
fix(web): only show auto balance errors after failed checks (#10407)
maria-rcks Sep 6, 2026
3941c2a
fix(web): improve preview recording frame delivery (#10403)
maria-rcks Sep 6, 2026
3cd2cbb
Modify model and budget settings in ui-consistency.md
juliusmarminge Sep 6, 2026
f5a1ec5
Update model and effort in effect-service-conventions
juliusmarminge Sep 6, 2026
0032892
Fix duplicate maxBudgetPerRun entry in UI consistency
juliusmarminge Sep 6, 2026
ac4f1a2
fix(server): preserve inline provider secrets on redacted saves (#10054)
maxwellyoung Sep 6, 2026
d57bdf3
Fix formatting of maxBudgetPerPR in conventions file
juliusmarminge Sep 6, 2026
2108996
fix(web, mobile): replace Apple desktop machine labels (#10396)
extoci Sep 6, 2026
7e8ae6b
fix(web): hide browser when the right panel starts closing (#10385)
Neel2107 Sep 6, 2026
4538770
fix(web): keep settings section headings description-free (#10415)
maria-rcks Sep 6, 2026
0a89364
fix(usage): read and redeem hub reset credits through CLIProxyAPI (#1…
juliusmarminge Sep 6, 2026
7939415
fix(web): deduplicate expanded tool labels and keep errors expandable…
Yash-Singh1 Sep 6, 2026
86070cb
fix(server): skip git status scans while the index is locked (#9845)
Gigioxx Sep 6, 2026
29c5ecd
fix(mcp): allow text-only preview snapshots (#10232)
juliusmarminge Sep 6, 2026
3d00cfd
fix(claude): name the expired login or usage limit instead of a gener…
vitalyiegorov Sep 6, 2026
66a24d6
feat(mobile): queue a message while its attachment is still uploading…
juliusmarminge Sep 6, 2026
d6aa179
feat(mobile): show when an existing thread has a message waiting in t…
juliusmarminge Sep 6, 2026
9513925
fix(codex): accept misalignment policy errors on thread resume (#10373)
realbakari Sep 6, 2026
d3d4ea4
fix(server): skip disabled settlement lookups (#10424)
t3dotgg Sep 6, 2026
9ab0635
fix(server): run OpenCode CLI commands sequentially (#10427)
t3dotgg Sep 7, 2026
5b0c923
feat(web): name the drop action while dragging sidebar threads (#10378)
SunkenInTime Sep 7, 2026
252df77
perf(web): keep the sidebar responsive during bulk thread updates (#1…
t3dotgg Sep 7, 2026
ec36176
fix(web): onboarding wizard now supports light mode (#10432)
t3dotgg Sep 7, 2026
7112697
feat(threads): dismiss async questions without replying (#10431)
t3dotgg Sep 7, 2026
a12589d
fix(web): stop collapsing the composer when it loses focus (#10437)
t3dotgg Sep 7, 2026
1abc717
fix(server): keep interrupted threads resumable after restarts (#10421)
maria-rcks Sep 7, 2026
efeac14
fix(web): show load balancing note for a single machine (#10433)
maria-rcks Sep 7, 2026
1e740e4
fix(server): follow placeholder branches after checkout updates (#10441)
Yash-Singh1 Sep 7, 2026
8c9a49a
fix(mobile): expand single-line tool details in work logs (#10442)
Yash-Singh1 Sep 7, 2026
95f9b14
fix(server): import transcripts with oversized tool records (#10430)
Yash-Singh1 Sep 7, 2026
0860cea
fix(marketing): deploy site with nightly releases (#10443)
t3dotgg Sep 7, 2026
a07715c
fix(web): preserve multiline composer drafts during timeline scrollin…
Yash-Singh1 Sep 7, 2026
52b2bf7
fix(server): handle JSON-wrapped titles and verbose Claude output (#1…
Noojuno Sep 7, 2026
da976cf
fix(marketing): restore continuous endorsement scrolling (#10450)
t3dotgg Sep 7, 2026
bd280de
Revert "fix(marketing): restore continuous endorsement scrolling" (#1…
t3dotgg Sep 7, 2026
b22646c
fix(marketing): bring back the endorsement marquee (#10455)
t3dotgg Sep 7, 2026
de28fa1
chore: enable CodeRabbit automatic reviews (#10457)
t3dotgg Sep 7, 2026
1c1d38f
fix(codex): keep Spark limits from replacing the main allowance (#10458)
Yash-Singh1 Sep 7, 2026
7e03dcf
fix(marketing): send 95 nightly downloads to the downloads page (#10460)
t3dotgg Sep 7, 2026
ecf3716
fix(web): composer regains focus when you tab back into T3 Code (#10463)
t3dotgg Sep 7, 2026
4e969f3
fix(web): keep sidebar drag dividers clear and gestures smooth (#10453)
juliusmarminge Sep 7, 2026
6134b90
fix(server): mark Cursor transport error answers as failed (#10337)
shivamhwp Sep 7, 2026
f5fb056
fix(web): clear stuck panel resize cursor (#10461)
t3dotgg Sep 7, 2026
490eb17
fix(web): clarify sidebar drag dividers and empty targets (#10464)
juliusmarminge Sep 7, 2026
f729e8f
fix(web): make onboarding a shared multi-computer wizard (#10465)
juliusmarminge Sep 7, 2026
6abdf37
fix(shared): redeem reset credits through the hub when it holds the a…
juliusmarminge Sep 7, 2026
e1230d6
fix(mobile): keep pending messages in the chat timeline (#10449)
juliusmarminge Sep 7, 2026
bb5748b
fix(mobile): show connection status in the floating pill instead of a…
juliusmarminge Sep 7, 2026
a7028f1
fix: use Pierre icons consistently for attachments (#10475)
juliusmarminge Sep 7, 2026
08c715e
chore(release): prepare v0.0.39
t3-code[bot] Sep 7, 2026
5b68b2c
feat(mobile): open the thread screen as soon as a new task is submitt…
juliusmarminge Sep 7, 2026
7376536
fix(devcontainer): make repository setup work (#7875)
saphid Sep 7, 2026
d8bc683
fix(projects): prevent invalid script IDs from crashing threads (#10019)
saphid Sep 7, 2026
bc3dc26
fix(mobile): hide changed-files navigator and restore refresh in raw …
lnieuwenhuis Sep 7, 2026
e3b644c
fix(ios): scroll short source files from blank space (#10178)
juliusmarminge Sep 7, 2026
7dda0b1
feat(mobile): start a new thread on an existing branch (#10359)
StiensWout Sep 7, 2026
062987b
fix(mobile): improve font-size slider performance and prevent maximum…
bbernag Sep 7, 2026
b919d63
fix(web): keep composer toolbar controls anchored during transitions …
juliusmarminge Sep 7, 2026
f57d383
fix(web): resize the floating preview from any edge (#10467)
juliusmarminge Sep 7, 2026
7129797
fix(mobile): prevent chat from disappearing when scrolling (#10479)
juliusmarminge Sep 7, 2026
b248f5a
fix(mobile): smooth composer status pill resizing (#10484)
juliusmarminge Sep 7, 2026
c0d4e95
fix(mobile): release initial scroll target after dragging (#10483)
juliusmarminge Sep 7, 2026
e32dd42
fix(mobile): animate thread lifecycle transitions consistently (#10487)
juliusmarminge Sep 7, 2026
b717537
fix(mobile): restore assistant message bottom padding (#10491)
juliusmarminge Sep 7, 2026
dc39615
fix(mobile): preserve chat rows when toggling commands (#10492)
juliusmarminge Sep 7, 2026
8b2838e
feat(web): group onboarding project import by repository (#10493)
t3dotgg Sep 7, 2026
fe07ffe
fix(web): remove inserted citations on cancel (#10518)
extoci Sep 7, 2026
357b8d5
fix(mobile): match Working status color to desktop
baptisteArno Sep 7, 2026
8d7f781
fix(mobile): wait for native thread scroll before reveal (#10486)
juliusmarminge Sep 7, 2026
1d1bf50
chore(mobile): bump app version to 1.1.0
t3-code[bot] Sep 7, 2026
62fbbe0
fix(web): tolerate servers that predate git identity in project impor…
juliusmarminge Sep 7, 2026
72d9408
fix(web): restore settled PR colors on hover (#10023)
flamboh Sep 7, 2026
9cc9839
fix(web): keep popup triggers steady when pressed (#10468)
dominic-r Sep 7, 2026
0d34579
fix(web): keep project favicon shape consistent across sizes (#10502)
sameerr03 Sep 7, 2026
3bf74eb
fix(claude): report usage limits on retried turns (#10549)
StiensWout Sep 7, 2026
5b8a69c
refactor(desktop): classify backend exports (#10265)
juliusmarminge Sep 7, 2026
5a853a4
refactor(desktop): classify electron exports (#10266)
juliusmarminge Sep 7, 2026
89dd9ab
refactor(desktop): classify app exports (#10267)
juliusmarminge Sep 7, 2026
e279e40
refactor(desktop): classify preview exports (#10268)
juliusmarminge Sep 7, 2026
b491e41
ci(knip): enforce desktop exports (#10269)
juliusmarminge Sep 7, 2026
577b6cc
fix(web): remove excess sidebar thread spacing (#10569)
maria-rcks Sep 7, 2026
c8ec7df
fix(web): make settings project scopes searchable and scrollable (#10…
maria-rcks Sep 7, 2026
5ec6f77
fix(web): use `tabular-nums` with the ui font for sidebar timer (#10592)
extoci Sep 7, 2026
12f5604
fix(web): correct pending question attachment message (#10599)
dominic-r Sep 7, 2026
c0cad74
fix(mobile): restore brand artwork in the Android adaptive icon (#10598)
juliusmarminge Sep 7, 2026
0244333
fix(mobile): configure iOS Keychain access group (#3665)
VedankPurohit Sep 7, 2026
dadba6d
fix(web): remember Composer Fast mode across new chats (#2981)
aravhawk Sep 7, 2026
95834d6
fix(server): disable executable capabilities in Claude metadata gener…
maxwellyoung Sep 7, 2026
09e8de9
Add stop thread keybinding command (#4308)
jakeleventhal Sep 7, 2026
2c8e95a
fix(mobile): show the provider account badge on thread rows (#9899)
vitalyiegorov Sep 7, 2026
d64335b
fix(codex): name the usage limit and its reset instead of relaying "o…
vitalyiegorov Sep 7, 2026
ea2983a
fix(web): copy selected pull request link from PR page (#10615)
maria-rcks Sep 7, 2026
d67157a
fix(web): keep ref picker steady when opening (#9472)
Adamulek123 Sep 7, 2026
569a8cd
fix(web): play pull request videos inline (#10617)
maria-rcks Sep 7, 2026
8de9169
chore(release): prepare v0.0.40
t3-code[bot] Sep 8, 2026
e0e0bcb
fix(desktop): preserve browser editing shortcuts (#10621)
juliusmarminge Sep 8, 2026
d081ab7
fix(web): open pull request markdown links in the panel (#10623)
juliusmarminge Sep 8, 2026
892de47
fix(mobile): fit the Android splash icon to its circular mask (#10620)
juliusmarminge Sep 8, 2026
299404a
feat(desktop): add cross-platform window capture (#8103)
Bil0000 Sep 8, 2026
8588d7f
fix(web): open proactive panels when entering threads (#10610)
maria-rcks Sep 8, 2026
9fe4d65
fix(native): wait for the KDE feedback test listener (#10645)
juliusmarminge Sep 8, 2026
a01b227
fix(desktop): resolve local media linked from remote threads (#10619)
maria-rcks Sep 8, 2026
b7c002f
fix(web): add bottom padding to project actions header (#10634)
flamboh Sep 8, 2026
15193df
fix(web): update machines together in auto balance (#10596)
maria-rcks Sep 8, 2026
9e37f0c
fix(preview): transfer recordings to the agent environment (#10572)
maria-rcks Sep 8, 2026
f0bd43e
Add 'macroscope-review' label to conventions
juliusmarminge Sep 8, 2026
5a18fb9
Add 'macroscope-review' label to UI consistency
juliusmarminge Sep 8, 2026
6df0add
fix(web): navigate markdown images as galleries (#10625)
maria-rcks Sep 8, 2026
a37c664
chore: upgrade to TypeScript 7.0.2 (#10663)
juliusmarminge Sep 8, 2026
6ba15c0
fix: hide email-bearing account labels in usage limits (#10668)
juliusmarminge Sep 8, 2026
50a76ce
fix(web): keep scroll-to-end button close to composer (#10543)
Bil0000 Sep 8, 2026
bd56e92
chore(deps): upgrade Effect to rc.112 and Alchemy to beta.76 (#10652)
juliusmarminge Sep 8, 2026
458f502
chore(refs): sync Effect reference to rc.112 (#10653)
juliusmarminge Sep 8, 2026
9d345fa
chore(refs): sync Alchemy reference to beta.76 (#10654)
juliusmarminge Sep 8, 2026
bc4b006
fix: generate thread titles with the selected model across connection…
Bil0000 Sep 8, 2026
b5f7fa0
fix(desktop): enable context menus in the browser (#10670)
juliusmarminge Sep 8, 2026
bc88fdf
fix(desktop): stop generating declarations during bundling (#10679)
juliusmarminge Sep 8, 2026
349ce30
fix(desktop): restore layout control hit targets (#10673)
juliusmarminge Sep 8, 2026
7220dfe
feat(chat): attach files to question answers (#9871)
shivamhwp Sep 8, 2026
9915263
feat(desktop): refresh macOS installer with aurora artwork (#10632)
saphid Sep 8, 2026
430fbd1
fix(server): give completed turns a full session idle window (#10689)
StiensWout Sep 8, 2026
7d9aaf6
feat(web): add pull request merge defaults (#8088)
Bil0000 Sep 8, 2026
1f14d6d
fix(usage): keep account columns aligned across limit rows (#10690)
juliusmarminge Sep 8, 2026
11601da
fix(web): chat text no longer shows through a 1px gap under composer …
vitalyiegorov Sep 8, 2026
6f4cd07
refactor(server): classify runtime exports (#10274)
juliusmarminge Sep 8, 2026
0af04f1
refactor(server): classify orchestration exports (#10275)
juliusmarminge Sep 8, 2026
161715b
refactor(server): classify service exports (#10276)
juliusmarminge Sep 8, 2026
77d9ffc
refactor(server): classify telemetry exports (#10277)
juliusmarminge Sep 8, 2026
060c576
refactor(server): classify provider exports (#10278)
juliusmarminge Sep 8, 2026
3b6ce93
refactor(server): classify source control exports (#10279)
juliusmarminge Sep 8, 2026
7cdeb69
refactor(server): classify source control registry API (#10280)
juliusmarminge Sep 8, 2026
1f0a14c
refactor(server): classify preview toolkit exports (#10281)
juliusmarminge Sep 8, 2026
b284715
chore(mobile): bump app version to 1.1.1
t3-code[bot] Sep 8, 2026
7d62050
ci(knip): enforce server exports (#10282)
juliusmarminge Sep 8, 2026
134b719
feat(web): add previous/next turn navigation in minimap (#8531)
UtkarshUsername Sep 8, 2026
d6dbe8d
fix(web): stop the settings sidebar shifting when switching pages (#1…
t3dotgg Sep 8, 2026
83b865f
fix(web): copy terminal selection with Ctrl+Insert (#8541)
iamshadmantaqi Sep 8, 2026
82451ee
fix(web): show the same project icon in the command palette as everyw…
t3dotgg Sep 8, 2026
d7a59c6
fix(web): stop sidebar rows flashing and shifting on click (#10713)
t3dotgg Sep 8, 2026
eb11506
refactor(web): pass the project record to ProjectFavicon so icons can…
t3dotgg Sep 8, 2026
bde39d4
feat(web): accept file drops into sidebar threads (#7892)
UtkarshUsername Sep 8, 2026
b5d8903
feat(web): accept file drops into sidebar threads (#7892)
UtkarshUsername Sep 8, 2026
061543e
fix(mcp): keep preview snapshots usable by the agent and let it save …
t3dotgg Sep 8, 2026
47eed9f
fix(server): stop Windows terminal processes when closing (#10771)
SunkenInTime Sep 8, 2026
579266c
feat(mobile): use Android wallpaper colors (#10691)
juliusmarminge Sep 8, 2026
4664c57
feat(mobile): add optional Material You layout (#10692)
juliusmarminge Sep 8, 2026
12391bd
feat(web): show project favicon in new-thread project picker (#10790)
gsimone Sep 8, 2026
5d14c0e
fix(desktop): use official logo in macOS installer (#10819)
t3-code[bot] Sep 8, 2026
772ea14
fix(web): honor terminal link browser overrides (#10060)
UtkarshUsername Sep 8, 2026
0fe4c99
fix(desktop): neutral artwork for stable macOS installer (#10820)
t3-code[bot] Sep 8, 2026
5e6cc2b
fix(web): restore text-only draft project title (#10821)
juliusmarminge Sep 8, 2026
3faeee4
refactor(web): consolidate setup wizards into shared components (#10832)
juliusmarminge Sep 8, 2026
de545c4
fix(web): stop the bar under the composer popping in after threads lo…
t3dotgg Sep 8, 2026
7fbc545
fix(web): keep the composer footer still while thread data loads (#10…
t3dotgg Sep 8, 2026
20e2e89
fix(desktop): defer keyring loading until macOS cookie import (#10667)
simplythatguy Sep 8, 2026
fdf34c4
fix(relay): share notification policy and prioritize waiting agents (…
juliusmarminge Sep 8, 2026
3dfc134
fix(relay): recheck queued iOS alerts and retain fast completions (#1…
juliusmarminge Sep 8, 2026
9d6c43f
fix(mobile): respect notification permission when tokens rotate (#10850)
juliusmarminge Sep 8, 2026
3e6f856
fix(mobile): tolerate native Headers without getSetCookie (#10851)
juliusmarminge Sep 8, 2026
1862686
fix(relay): use current APNs registration routing for queued jobs (#1…
juliusmarminge Sep 9, 2026
08463e2
fix(server): release consumed event replay pages (#10777)
Gigioxx Sep 9, 2026
2a30353
feat(mobile): arrange threads with drag handles (#10496)
juliusmarminge Sep 9, 2026
6c58362
feat(mobile): add Android agent notifications and ongoing activity (#…
ryanrhughes Sep 9, 2026
cdba4b2
feat(web): auto-reconcile external agent sessions on project open
cursoragent Sep 6, 2026
9e16acd
fix(web): classify and log auto-reconcile failures instead of swallowing
cursoragent Sep 6, 2026
09f86ff
fix(web): only mark projects reconciled after definitive outcome
cursoragent Sep 6, 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
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion .coderabbit.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
reviews:
review_status: false
auto_review:
enabled: false
enabled: true
82 changes: 63 additions & 19 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,73 @@
// Dev container for T3 Code. Mirrors CI (ubuntu-24.04, Node 24, Rust stable)
// and the canonical setup in docs/operations/development.md: global `vp`, `vp i`.
// Contributor doc: docs/internals/devcontainer.md
{
"name": "T3 Code Dev",
"image": "debian:bookworm",
"name": "T3 Code",
"image": "mcr.microsoft.com/devcontainers/base:ubuntu-24.04",
"features": {
"ghcr.io/devcontainers/features/git:1": {},
"ghcr.io/devcontainers-extra/features/bun:1": {
"version": "1.3.11"
// nodeGypDependencies (default true) brings python3/make/g++, which Linux
// needs for node-pty's node-gyp fallback (its prebuilds are mac/win only).
"ghcr.io/devcontainers/features/node:2": {
"version": "24"
},
"ghcr.io/devcontainers/features/node:1": {
"version": "24.13.1"
},
"ghcr.io/devcontainers/features/python:1": {
"version": "3.10",
"installTools": false
}
// native/resource-monitor (edition 2024, needs stable >= 1.85). The server
// degrades gracefully without the binary, but CI checks cargo fmt + test.
"ghcr.io/devcontainers/features/rust:1": {},
"ghcr.io/devcontainers/features/github-cli:1": {}
},
"hostRequirements": {
"cpus": 4,
"memory": "8gb",
"storage": "32gb"
},
"containerEnv": {
// Keep all runtime state inside the (gitignored) workspace .t3, matching
// the worktree default. An explicit --home-dir still wins.
"T3CODE_HOME": "${containerWorkspaceFolder}/.t3"
},
"overrideFeatureInstallOrder": [
"ghcr.io/devcontainers/features/git",
"ghcr.io/devcontainers-extra/features/bun"
"mounts": [
// vp keeps the pnpm content-addressable store and metadata cache under
// ~/.cache/pnpm (verified: the v11 store dir lives there); mounting a
// volume there lets installs survive container rebuilds.
"source=t3code-pnpm-store,target=/home/vscode/.cache/pnpm,type=volume",
// Root node_modules holds the whole pnpm virtual store (.pnpm), so one
// volume keeps the heavy tree off the slow macOS/Windows bind mount.
// Scoped by devcontainerId so parallel checkouts do not share it.
// Codespaces note: prebuild snapshots exclude volumes; drop these mounts
// if prebuilt codespaces become the primary workflow.
"source=t3code-node-modules-${devcontainerId},target=${containerWorkspaceFolder}/node_modules,type=volume"
],
"postCreateCommand": {
"bun-install": "bun install --backend=copyfile --frozen-lockfile"
"onCreateCommand": "bash .devcontainer/on-create.sh",
"updateContentCommand": "bash .devcontainer/update-content.sh",
"forwardPorts": [5733, 13773],
"portsAttributes": {
"5733": {
"label": "t3 web (open via the pairing URL, not the bare origin)",
"onAutoForward": "notify"
},
"13773": {
"label": "t3 server",
"onAutoForward": "silent"
}
},
"customizations": {
"codespaces": {
"openFiles": ["docs/internals/devcontainer.md"]
},
"vscode": {
"extensions": ["oxc.oxc-vscode"]
"extensions": ["oxc.oxc-vscode", "rust-lang.rust-analyzer"],
"settings": {
// .repos is a large vendored read-only reference tree; watching it
// burns CPU and file handles.
"files.watcherExclude": {
"**/.repos/**": true,
"**/.t3/**": true
},
"search.exclude": {
"**/.repos": true
}
}
}
}
},
"remoteUser": "vscode"
}
38 changes: 38 additions & 0 deletions .devcontainer/on-create.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/usr/bin/env bash
# One-time container setup, baked into prebuilds. Content-dependent work
# (dependency install, Chromium) lives in update-content.sh.
set -euo pipefail

# The Vite+ CLI is the repo task runner (vp i, vp run dev, vp test run).
# Download to a file first: a curl failure inside $( ) would yield an empty
# script and a false success. VP_NODE_MANAGER=no skips the installer's node
# shims; Node comes from the devcontainer feature. The VP_*_DIR group (set
# together, absolute) pins the install location instead of the installer's
# XDG platform defaults, which moved the binary from ~/.vite-plus/bin to
# ~/.local/share/vite-plus/bin between releases and would break the check
# below either way.
export VP_BIN_DIR="$HOME/.local/share/vite-plus/bin"
export VP_DATA_DIR="$HOME/.local/share/vite-plus"
export VP_CACHE_DIR="$HOME/.cache/vite-plus"
installer=$(mktemp)
curl -fsSL https://vite.plus -o "$installer"
VP_NODE_MANAGER=no bash "$installer"
rm -f "$installer"

# Non-login lifecycle shells never source the profile the installer edits,
# so expose vp on the default PATH. test -x keeps a bad install loud.
test -x "$VP_BIN_DIR/vp"
sudo ln -sf "$VP_BIN_DIR/vp" /usr/local/bin/vp

# First-run terminal notice, rendered by the devcontainers base image.
sudo mkdir -p /usr/local/etc/vscode-dev-containers
sudo tee /usr/local/etc/vscode-dev-containers/first-run-notice.txt >/dev/null <<'EOF'
T3 Code devcontainer

vp run dev start server + web, then open the pairing URL it
prints (the bare forwarded port will not authenticate)
cp .env.example .env optional: enable T3 Connect cloud features
(public identifiers, not secrets)

Details: docs/internals/devcontainer.md
EOF
19 changes: 19 additions & 0 deletions .devcontainer/update-content.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env bash
# Runs at creation and on every prebuild content refresh, so codespaces start
# with deps installed and caches warm. Everything here is idempotent.
set -euo pipefail

# Volume mounts (pnpm store, node_modules) and the directories docker creates
# for them arrive root-owned; hand them to the dev user before installing.
for dir in "$HOME/.cache" "$HOME/.cache/pnpm" node_modules; do
if [ -d "$dir" ] && [ "$(stat -c %U "$dir")" != "$(id -un)" ]; then
sudo chown "$(id -un):$(id -gn)" "$dir"
fi
done

CI=true vp i
# Repairs electron's path.txt and exec bits after install, same as CI.
vp run --filter @t3tools/desktop ensure:electron
# Pre-warms Vite's dep optimizer (cache is keyed on the absolute path, which
# is stable inside the container).
node apps/web/scripts/warm-dep-cache.ts
8 changes: 8 additions & 0 deletions .github/SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Security policy

Report security vulnerabilities affecting T3 Code or T3 Tools-operated infrastructure to
[security@ping.gg](mailto:security@ping.gg). Please do not disclose them publicly until we have had
a reasonable opportunity to investigate and remediate them.

See the [full security policy](https://t3.codes/security-policy) for reporting details, scope,
and safe harbor terms for good-faith research.
43 changes: 33 additions & 10 deletions .github/scripts/check-nightly-release.cjs
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
const MINIMUM_RELEASE_GAP_MS = 6 * 60 * 60 * 1000;

// Runs after the workflow acquires the nightly concurrency lock.
async function shouldReleaseNightly({ github, context, core, now = Date.now() }) {
const isNightlyTag = (tag) => /^v.*-nightly\./.test(tag) || tag.startsWith("nightly-v");

// Newest published nightly by publication time, or undefined when none exists.
async function findLatestNightly({ github, context }) {
const releases = await github.paginate(github.rest.repos.listReleases, {
...context.repo,
per_page: 100,
});
const lastNightly = releases
.filter(
(release) =>
!release.draft &&
release.published_at &&
(/^v.*-nightly\./.test(release.tag_name) || release.tag_name.startsWith("nightly-v")),
)
return releases
.filter((release) => !release.draft && release.published_at && isNightlyTag(release.tag_name))
.sort((a, b) => Date.parse(b.published_at) - Date.parse(a.published_at))[0];
}

// Runs after the workflow acquires the nightly concurrency lock.
async function shouldReleaseNightly({ github, context, core, now = Date.now() }) {
const lastNightly = await findLatestNightly({ github, context });

if (!lastNightly) {
core.info("No published nightly found. Proceeding with release.");
Expand Down Expand Up @@ -41,4 +43,25 @@ async function shouldReleaseNightly({ github, context, core, now = Date.now() })
return true;
}

module.exports = { shouldReleaseNightly };
// Stable releases build the commit the latest nightly shipped, so the stable
// build is one nightly users already ran. Returns the nightly tag, its commit,
// and the stable version that nightly was a preview of.
async function resolveLatestNightlyCommit({ github, context, core }) {
const lastNightly = await findLatestNightly({ github, context });
if (!lastNightly) {
throw new Error("No published nightly found. Stable releases build the latest nightly commit.");
}

const tag = lastNightly.tag_name;
// repos.getCommit dereferences annotated tags, so this is the commit either way.
const { data: commit } = await github.rest.repos.getCommit({ ...context.repo, ref: tag });
const version = /^(?:nightly-)?v(\d+\.\d+\.\d+)-nightly\./.exec(tag)?.[1];
if (!version) {
throw new Error(`Cannot derive a stable version from nightly tag ${tag}.`);
}

core.info(`Latest nightly ${tag} shipped ${commit.sha} as a preview of ${version}.`);
return { tag, sha: commit.sha, version };
}

module.exports = { shouldReleaseNightly, resolveLatestNightlyCommit };
42 changes: 42 additions & 0 deletions .github/scripts/check-nightly-release.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,45 @@ for (const status of ["behind", "diverged"]) {
assert.equal(await shouldReleaseNightly(options), false);
});
}

const { resolveLatestNightlyCommit } = require("./check-nightly-release.cjs");

function nightlyCommitFixture({ releases, commitSha = "abc123" }) {
const refs = [];
const { options } = fixture({ releases });
options.github.rest.repos.getCommit = async ({ ref }) => {
refs.push(ref);
return { data: { sha: commitSha } };
};
return { options, refs };
}

test("stable releases resolve the commit of the newest published nightly", async () => {
const { options, refs } = nightlyCommitFixture({
releases: [
nightly(10, { tag_name: "v1.0.1-nightly.20260905.100" }),
nightly(1, { tag_name: "v1.0.1-nightly.20260905.123" }),
nightly(0, { tag_name: "v1.0.0" }),
nightly(0, { draft: true, tag_name: "v1.0.1-nightly.20260905.999" }),
],
commitSha: "deadbeef",
});
assert.deepEqual(await resolveLatestNightlyCommit(options), {
tag: "v1.0.1-nightly.20260905.123",
sha: "deadbeef",
version: "1.0.1",
});
assert.deepEqual(refs, ["v1.0.1-nightly.20260905.123"]);
});

test("stable releases derive the version from legacy nightly tags", async () => {
const { options } = nightlyCommitFixture({
releases: [nightly(1, { tag_name: "nightly-v0.9.0-nightly.20260905.5" })],
});
assert.equal((await resolveLatestNightlyCommit(options)).version, "0.9.0");
});

test("stable releases fail without a published nightly", async () => {
const { options } = nightlyCommitFixture({ releases: [nightly(0, { tag_name: "v1.0.0" })] });
await assert.rejects(resolveLatestNightlyCommit(options), /No published nightly/);
});
14 changes: 10 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,17 @@ jobs:
with:
components: rustfmt

- name: Check resource monitor formatting
run: cargo fmt --manifest-path native/resource-monitor/Cargo.toml -- --check
- name: Check Rust formatting
run: |
for crate in resource-monitor kde-snap-shot hyprland-snap-shot; do
cargo fmt --manifest-path "native/$crate/Cargo.toml" -- --check
done

- name: Test resource monitor
run: cargo test --locked --manifest-path native/resource-monitor/Cargo.toml
- name: Test Rust crates
run: |
for crate in resource-monitor kde-snap-shot hyprland-snap-shot; do
cargo test --locked --manifest-path "native/$crate/Cargo.toml"
done

# The static analysis below needs a macOS runner, which bills ~6.7x a Linux
# minute, so gate it on the native sources it actually lints instead of paying
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/deploy-relay.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ jobs:
AXIOM_TOKEN: ${{ secrets.AXIOM_TOKEN }}
CLERK_SECRET_KEY: ${{ secrets.CLERK_SECRET_KEY }}
APNS_PRIVATE_KEY: ${{ secrets.APNS_PRIVATE_KEY }}
FCM_SERVICE_ACCOUNT: ${{ secrets.FCM_SERVICE_ACCOUNT }}

- name: Publish relay deploy commit status
uses: actions/github-script@v8
Expand Down
Loading