Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
164 commits
Select commit Hold shift + click to select a range
f9b19a7
fix(server): folder discovery skips the walk when t3.json ignores the…
juliusmarminge Nov 22, 2026
28a4200
fix(server): checkpoint repository scopes walk the project folder onc…
Sidreyas Nov 22, 2026
c5fa33b
fix(server,cursor): preserve inline handoff when a failed Cursor turn…
MIT-Consulting Nov 22, 2026
0fb6ac6
perf(web): Markdown renders with Words as static islands under one sh…
juliusmarminge Nov 22, 2026
c1fbdf6
fix(web): pasting text copied from Word inserts the text instead of a…
juliusmarminge Nov 22, 2026
3b3f880
fix(web): wait for image uploads before sending (#40672)
Yash-Singh1 Nov 22, 2026
122d3bf
fix(server): provider refresh finds CLIs installed after launch on ma…
juliusmarminge Nov 22, 2026
b9d0f70
fix(mobile): replace undefined text-foreground-subtle token with text…
MIT-Consulting Nov 22, 2026
df67c4f
fix(antigravity): a long shell command keeps its start, not its last …
juliusmarminge Nov 22, 2026
4e28da0
fix(server): setup script output no longer ends in half an emoji (#40…
tiliakoos Nov 22, 2026
5045891
fix(server): text generation no longer falls back to a model that can…
tiliakoos Nov 22, 2026
4ac5e6e
fix(client-runtime): typing a bare Windows drive lists its folders (#…
brunobola Nov 22, 2026
c9e9e7d
fix(web): a click outside the scheduled task editor no longer discard…
Jardo-51 Nov 22, 2026
7966f20
fix(antigravity): pre-approve T3 MCP tools in Auto and Auto-accept ed…
charlesbine Nov 22, 2026
ad1b1f9
fix(server): Antigravity keeps Auto in the mode picker after a restar…
juliusmarminge Nov 22, 2026
11224f6
fix(client-runtime): a new thread's first message and a queued send-n…
Tgoh Nov 22, 2026
02ea261
fix(server): long webhook prompts in the delivery log no longer end i…
tiliakoos Nov 22, 2026
426b5a6
fix(server): a released ACP session no longer leaves its run stuck ru…
juliusmarminge Nov 22, 2026
cd3a57a
feat(web): sidebar thread rows show the environment instead of the br…
juliusmarminge Nov 22, 2026
6f49071
fix: a failed checkpoint capture keeps Edit from here for conversatio…
juliusmarminge Nov 22, 2026
15a3daa
docs(claude): mobile shows the compact chip too (#40755)
juliusmarminge Nov 22, 2026
e3f9db2
fix(server): TanStack Source pull requests open from every client, an…
juliusmarminge Nov 22, 2026
976aca3
fix: include delegated threads in CLI listing (#40738)
dajiaohuang Nov 22, 2026
bcace07
fix(pi): turn token usage counts cached tokens as input and stays per…
juliusmarminge Nov 22, 2026
4c3d83f
fix(mobile): usage account detail keeps even pace current while open …
juliusmarminge Nov 22, 2026
7f125d8
fix(server): Resume sends pending context to providers without native…
juliusmarminge Nov 22, 2026
90a8ac0
fix(server): a failed or cancelled clone no longer blocks re-cloning …
amanthanvi Nov 22, 2026
70b5e48
fix: retain pull request metadata in thread show (#40744)
dajiaohuang Nov 22, 2026
c3a330d
fix(web): show Queue for running sessions that cannot steer (#40767)
iiijiashu Nov 22, 2026
c198f73
fix(web): a click outside the project action editor no longer discard…
AymanKhan9 Nov 22, 2026
379a98a
fix(server): t3 pair skips Windows VirtualBox and VMware host-only ad…
juliusmarminge Nov 22, 2026
418e1ac
fix(server): Word text boxes keep their paragraph breaks for agents (…
KyrosHendrix Nov 22, 2026
356dff3
fix(web): RTF previews respect hidden character formatting (#40783)
geezoria Nov 22, 2026
5fc2eb2
fix(mobile): the iOS composer keeps its keyboard and caret after dict…
arun279 Nov 22, 2026
997103b
fix(shared): find file links whose labels contain brackets (#40781)
Abhiram-745 Nov 22, 2026
1acfd37
fix(web): restore effort picker keyboard typeahead (#40798)
juliusmarminge Nov 22, 2026
0ae3154
fix(server): migration 75 no longer fails on an unreadable subagent p…
juliusmarminge Nov 22, 2026
671e05b
fix(issues): an Activity cross-reference opens the issue or pull requ…
juliusmarminge Nov 22, 2026
8435a8c
fix(server): tell a stopped parent which delegated tasks its Stop int…
juliusmarminge Nov 22, 2026
f931f03
fix(server): worktree thread lookups match any spelling of the path (…
juliusmarminge Nov 22, 2026
c585a58
fix(mobile): prevent clipped percentages in usage limit cards (#40778)
peterxiemin Nov 22, 2026
9892474
test(web): browser tests no longer fail when a stale optimizer cache …
Brechard Nov 22, 2026
62a7108
fix(github): superseded runs' cancelled checks no longer block PR wat…
juliusmarminge Nov 22, 2026
a8363da
fix(web): keybindings using '+' show a plus keycap instead of empty p…
AymanKhan9 Nov 22, 2026
d27d29f
fix(web): lineage show-more no longer clips the last row or drops foc…
justsrc Nov 22, 2026
4868aeb
fix(mobile): pulling to Load earlier activity no longer snaps the fee…
juliusmarminge Nov 22, 2026
aa0a851
perf(dev): incremental, cached server typecheck like web and desktop …
Pyseph Nov 22, 2026
a35b3ca
fix(contracts): delegate_task options example says ids differ by prov…
juliusmarminge Nov 22, 2026
d834a4e
fix(web): preserve reply-only edits when a queued message leaves the …
iiijiashu Nov 22, 2026
3c68308
fix(server): t3 start ignores a stale runtime record whose PID was re…
juliusmarminge Nov 22, 2026
9f19a6d
fix(server): runtime prune removes the runtime a committed update rep…
juliusmarminge Nov 22, 2026
f2d0217
fix(server): preserve cancellations during checkpoint capture (#31349)
voltcrash Nov 22, 2026
91d2d90
fix(web): a failed main chunk load reloads once instead of showing th…
juliusmarminge Nov 22, 2026
ecdd8e2
fix(server): slash commands reach the provider verbatim when context …
juliusmarminge Nov 22, 2026
c80f41f
fix(opencode): a command that never calls the model no longer leaves …
juliusmarminge Nov 22, 2026
3d7bb17
fix(mobile): model search finds legacy models (#27587)
juliusmarminge Nov 22, 2026
5799b8a
fix(acp): follow a mode the agent leaves on its own so picking it aga…
juliusmarminge Nov 22, 2026
bcb9217
fix(web): settling a thread no longer jolts the sidebar list (#26661)
flamboh Nov 22, 2026
4136ab6
fix(server): Word files whose main part is not word/document.xml reac…
Marve10s Nov 22, 2026
03920ad
fix(server): wake the agent when Claude exits while it awaits backgro…
juliusmarminge Nov 22, 2026
3571f28
fix(web): Usage Limits no longer shows a stale scrollbar (#40816)
inanimran Nov 22, 2026
77d299c
fix(web): closing the last open pull request clears it from the list …
MyDigitalLife Nov 22, 2026
31790d8
fix(mobile): account badge on the provider icon is readable without a…
juliusmarminge Nov 22, 2026
66ca7cd
fix(server): Claude turns no longer stall on empty or partial stream …
lln556 Nov 22, 2026
ac62463
fix(server): filesystem browse lists symlinks pointing to directories…
lln556 Nov 22, 2026
d5497d6
fix(client-runtime): a resumed thread renders its catch-up once inste…
ahalekelly Nov 22, 2026
501e39d
fix(web): clicking the Tab hint inserts short prompt suggestions agai…
floklein Nov 22, 2026
1e78f37
fix(web): keep script-only drafts reachable in the sidebar (#25272)
juliusmarminge Nov 22, 2026
b23f1e8
fix(server): retire unresponsive shared Codex app-servers (#25123)
juliusmarminge Nov 22, 2026
a985332
fix(shared): Windows command discovery no longer blocks the event loo…
maria-rcks Nov 22, 2026
b479ce2
fix(client-runtime): stop sessions on incompatible server configurati…
juliusmarminge Nov 22, 2026
620cf47
fix(web): browser page translation no longer crashes the app when a t…
juliusmarminge Nov 22, 2026
30372d0
perf(mobile): keep image bytes outside draft JSON (#9727)
t3dotgg Nov 22, 2026
ad2bdc7
fix(server): watch_pull_request says when checks already passed (#40866)
juliusmarminge Nov 22, 2026
a445025
fix(codex): Open diff shows every file of a multi-file patch (#40874)
Abhiram-745 Nov 22, 2026
2f19cec
fix(server): ACP startup gives up when the agent never answers the ha…
juliusmarminge Nov 22, 2026
1d02824
fix(server): a branch prefixed with another remote's name publishes u…
Abhiram-745 Nov 22, 2026
f10e1eb
fix(server): list open delegated tasks when task_status or task_cance…
Project516 Nov 22, 2026
2251de4
fix(gitlab): find merge requests opened from a fork (#40894)
Abhiram-745 Nov 22, 2026
2c4310e
fix(web): pasting a chat message with text and a picture keeps both (…
juliusmarminge Nov 22, 2026
344de5f
fix(antigravity): bound silent post-settle background command holds (…
Lokkuchakreshkumar Nov 22, 2026
5ddcc25
fix(desktop): WSL is not offered or started when only the Windows ins…
juliusmarminge Nov 22, 2026
ad44645
fix(server): idle /ws connections behind a reverse proxy no longer dr…
juliusmarminge Nov 22, 2026
cc4bb17
fix(server): thread reads no longer attribute T3 Code's compact-befor…
juliusmarminge Nov 22, 2026
9de4ec1
fix(web,mobile): @-file mentions show by name in message previews, no…
tiliakoos Nov 22, 2026
7ddc81d
fix(web): tool calls stay grouped after a usage-limit pause again (#4…
matthew-waters Nov 22, 2026
ec35ad6
fix(server): t3 doctor no longer reports a database just under 1 GiB …
tiliakoos Nov 22, 2026
6972026
fix(web): show clone failure after progress is dismissed (#40951)
StiensWout Nov 22, 2026
bc13afa
Invalidate pending theme imports when a replacement is too large (#40…
StiensWout Nov 22, 2026
4e1c1fe
fix(mobile): show linked thread history page errors (#40973)
StiensWout Nov 22, 2026
3806763
fix(client-runtime): skip waiting for lower-priority linked addresses…
StiensWout Nov 22, 2026
25440f5
fix(web): navigate Excel sheets from the focused tab (#41008)
StiensWout Nov 22, 2026
9b7f5eb
fix(mobile): bound app-owned composer attachment filenames (#40991)
StiensWout Nov 22, 2026
0179401
fix(web): prioritize visible saved notebook outputs (#40998)
StiensWout Nov 22, 2026
87554a7
fix(web): editing a queued message keeps its attachment chips resolve…
smirea Nov 22, 2026
28706ac
fix(server): unlinking an environment ends its session on the other m…
juliusmarminge Nov 22, 2026
7ed41b7
fix(mobile): scope Git result banners to their originating thread (#4…
StiensWout Nov 22, 2026
000ba18
fix(web): keep the conversation when a pairing tab closes (#41025)
StiensWout Nov 22, 2026
5bd0616
fix: restart linked thread reads when trying again (#41020)
StiensWout Nov 22, 2026
55880c4
fix(client-runtime): count ambiguous projects in chat file links (#40…
StiensWout Nov 22, 2026
2e62a71
fix(mobile): keep media actions on each sent image page (#41018)
StiensWout Nov 22, 2026
024dba2
perf(server): a run's provider turn lookup is linear, not quadratic (…
navidnadali Nov 22, 2026
c7df700
fix(web): a photo picked on a phone attaches even when the composer c…
juliusmarminge Nov 22, 2026
02a4c18
fix(mobile): cancel pending media actions when swiping gallery pages …
StiensWout Nov 22, 2026
c00f117
fix(mobile): TalkBack can reach the status pill above the composer (#…
Lenoridev Nov 22, 2026
67f1752
fix(web): snooze labels follow the app language (#39494)
SoroushRF Nov 22, 2026
dbb5bdb
feat(web): sidebar folder button picks or adds a project (#33057)
tenyoru Nov 22, 2026
fff245a
feat(mobile): favorites only is its own model filter, not a provider …
RVZO6 Nov 22, 2026
f9fbb00
feat(devices): double-tap Home opens the app switcher (#29459)
JoshuaRileyDev Nov 22, 2026
735c1e7
test(desktop): AppImage shim test's fake server ignores a second stop…
juliusmarminge Nov 22, 2026
7e3a9ba
fix(server): a task folder creation that loses a branch race no longe…
juliusmarminge Nov 22, 2026
e213da2
fix(client-runtime): refresh stale server clock offset after host sle…
Zangetsu101 Nov 22, 2026
68e81cd
fix(server): settled-subagent check reads run status from runs_run_st…
juliusmarminge Nov 22, 2026
324ac49
fix(server): fresh-session scheduled runs release every idle Codex th…
juliusmarminge Nov 22, 2026
fe9c98c
feat: agents can report T3 Code problems when you turn feedback on (#…
gabrielelpidio Nov 22, 2026
c89ca0a
fix(server): a worktree thread moved to the project checkout no longe…
tiliakoos Nov 22, 2026
a3323d4
perf(web): new thread opens its draft without waiting on t3.json (#41…
juliusmarminge Nov 22, 2026
dd19bce
fix(server): a dropped dictation client frees the speech engine withi…
juliusmarminge Nov 22, 2026
0938476
fix(web): Thinking row no longer shows below a streaming reply (#41060)
juliusmarminge Nov 22, 2026
7103527
fix(web): PR description file links resolve in the PR's repository fr…
juliusmarminge Nov 22, 2026
44979a5
fix(mcp): keep deleted schedules from returning on edit (#41084)
SSHdotCodes Nov 22, 2026
a09738f
fix(claude): start the updated Claude Code CLI when a thread changes …
SSHdotCodes Nov 22, 2026
fb4558d
fix(web,mobile,server): large files load in full without freezing the…
juliusmarminge Nov 22, 2026
ba947e3
fix(desktop): show ampersands in native context menu labels (#41097)
brunobola Nov 22, 2026
0ee3a92
fix(forgejo): follow Markdown pull request templates (#41095)
steven-salinas Nov 22, 2026
6ba17d9
fix(claude): show steer replies and progress lines written as thinkin…
SSHdotCodes Nov 22, 2026
fb23f12
feat(server): outside agents poll and stream milestones as MCP events…
juliusmarminge Nov 22, 2026
9d35540
fix(mobile): pasted iOS photos keep their encoding and repeats are dr…
juliusmarminge Nov 22, 2026
7b47a21
fix(server): a Claude resume runs one turn, not a phantom wake after …
juliusmarminge Nov 23, 2026
0591d32
feat(issues): connect more than one Linear account (#39179)
Bil0000 Nov 23, 2026
43af49b
fix(server): keep inactive threads whose branch has an open PR (#41116)
only21mil Nov 23, 2026
1b59af0
fix(mobile): enlarge PR file Viewed tap target (#39950)
Ernest0-Production Nov 23, 2026
05c100f
fix(server): skip queued checkpoint restores after thread deletion (#…
only21mil Nov 23, 2026
65b2e6d
fix(web): stop telemetry refresh spinning after data arrives (#41122)
SSHdotCodes Nov 23, 2026
def64e3
fix(web): clicking the selected file in a Files folder view opens it …
mikeozornin Nov 23, 2026
6b38ec9
fix(desktop): remote servers behind origin-checking proxies no longer…
tyler-bruno-lovable Nov 23, 2026
83119ae
fix(server): stopping a delegated child with a queued message no long…
juliusmarminge Nov 23, 2026
e414cfd
feat(server): durable workflows (#38882)
juliusmarminge Nov 23, 2026
65d2b4f
fix(web): center the Connections map zoom controls (#41081)
shivamhwp Nov 23, 2026
8ff66fc
fix(server): Antigravity usage reads the default instance's T3 profil…
juliusmarminge Nov 23, 2026
69c1d53
feat: workflows on web and mobile (#38884)
juliusmarminge Nov 23, 2026
f29c824
fix(server): Full access Codex no longer asks before dangerous comman…
juliusmarminge Nov 23, 2026
2808e87
fix(usage): skipped-record warnings only count the selected dates (#4…
Yash-Singh1 Nov 23, 2026
8cc8bcb
feat(server): outside agents receive milestones by MCP Events webhook…
juliusmarminge Nov 23, 2026
29a33f8
fix(antigravity): recognize attachments with MIME parameters (#39097)
Lucenx9 Nov 23, 2026
27ab8d4
fix(antigravity): keep shortened question text valid Unicode (#39478)
Lucenx9 Nov 23, 2026
b9c3109
fix(cursor): preserve ended turns when connection retries exhaust (#4…
Yash-Singh1 Nov 23, 2026
074a0d3
fix(server): startup PR backfill looks up each repository branch once…
juliusmarminge Nov 23, 2026
8a17857
perf(mobile): avoid re-rendering on shell updates in useSidebarRowThr…
Isaac-b-ux Nov 23, 2026
1a4932e
perf(client): skip child indexing when no child needs input (#25537)
saphid Nov 23, 2026
8634955
fix(server): app links no longer leave the preview stuck loading (#41…
niieani Nov 23, 2026
047a86f
fix(server): open Claude sessions on macOS share one process-table po…
juliusmarminge Nov 23, 2026
18850a5
fix(mobile): screen readers hear when a terminal Ctrl, Alt or Cmd key…
tiliakoos Nov 23, 2026
372fbab
fix(server): renaming a provider instance no longer stops its session…
juliusmarminge Nov 23, 2026
1d61429
perf(server): idle agent sessions free their memory after 2 minutes (…
juliusmarminge Nov 23, 2026
8708a29
perf(server): checkpoint capture no longer walks every reflog in the …
juliusmarminge Nov 23, 2026
a679987
test(server): replay scenarios no longer run checkpoints against the …
juliusmarminge Nov 23, 2026
9a87dbb
fix(web): chat file tooltips open beside the link instead of sliding …
juliusmarminge Nov 23, 2026
c18f82c
fix(server): RTF attachments leave hidden text out of what agents rea…
only21mil Nov 23, 2026
1d4d9be
fix(server): Antigravity 502s fail the turn with the real error (#33596)
juliusmarminge Nov 23, 2026
9dc3616
fix(web,mobile): translate remaining untranslated workflow, git, and …
SeniorZhai Nov 23, 2026
1640512
Merge upstream main 9dc36169b4 (2026-11-22) into the fork
orbitingflea Nov 23, 2026
48f6dc0
fix(fork): resolve upstream merge 9dc36169b4 (2026-11-22)
orbitingflea Nov 23, 2026
e40c3bb
chore(sync): merge main 48f6dc0911 into proto/fullscreen-panels
orbitingflea Nov 23, 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
  •  
  •  
  •  
26 changes: 16 additions & 10 deletions .pnpmfile.cjs
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
const fs = require("node:fs");
const path = require("node:path");

// Our forks ship as tarballs in apps/mobile/deps. A pnpm patch on one is a second source of
// truth that the next tarball silently drops, so changes go to the fork (apps/mobile/deps/README.md).
// Our forks ship as tarballs in apps/mobile/deps and apps/web/deps. A pnpm patch on one is a
// second source of truth that the next tarball silently drops, so changes go to the fork (see
// the README beside each tarball).
const FORK_APPS = ["apps/mobile", "apps/web"];

function forkTarballPatches(patchedDependencies) {
const manifestPath = path.join(__dirname, "apps/mobile/package.json");
// Release staging installs a partial workspace without the mobile app.
if (!patchedDependencies || !fs.existsSync(manifestPath)) return [];
const { dependencies = {} } = JSON.parse(fs.readFileSync(manifestPath, "utf8"));
const forks = Object.keys(dependencies).filter((name) =>
String(dependencies[name]).startsWith("file:deps/"),
);
if (!patchedDependencies) return [];
const forks = FORK_APPS.flatMap((app) => {
const manifestPath = path.join(__dirname, app, "package.json");
// Release staging installs a partial workspace without every app.
if (!fs.existsSync(manifestPath)) return [];
const { dependencies = {} } = JSON.parse(fs.readFileSync(manifestPath, "utf8"));
return Object.keys(dependencies).filter((name) =>
String(dependencies[name]).startsWith("file:deps/"),
);
});
return Object.keys(patchedDependencies).filter((key) =>
forks.some((name) => key === name || key.startsWith(`${name}@`)),
);
Expand All @@ -23,7 +29,7 @@ module.exports = {
if (forkPatches.length > 0) {
throw new Error(
`pnpm-workspace.yaml patches ${forkPatches.join(", ")}, which ships as a fork tarball in ` +
"apps/mobile/deps. Change the fork and replace the tarball instead (apps/mobile/deps/README.md).",
"an app's deps directory. Change the fork and replace the tarball instead (deps/README.md).",
);
}
// Windows installs need Linux x64 glibc binaries because WSL shares node_modules.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ This is a fork of T3 Code that integrates a few additional features, including:
- **Compact when idle for Claude threads:** a choice in Settings → Providers → Advanced → Compact idle threads. Besides compacting before the prompt cache expires, it compacts a large idle Claude thread (default 400K tokens or more) a set time (default 15 minutes) after the last message or answer from a user or a bot, so the compaction runs while no one waits for a reply. The token counts and the wait are set right under the choice.
- **Prune idle worker threads:** `t3 prune-worker-threads` deletes the messages, turn items, nodes, plans and runtime requests of idle worker threads. A worker thread is idle when it has no open run and, in the last 7 days, was not created, had no run requested or ended, and had no turn item or message updated. A worker thread is a subagent thread that an agent started. Subagent threads that a bot starts are workers too. Threads a person opens, bot threads themselves and a person's forks are never workers. An idle worker keeps its rows while recovery still needs the worker, or while a thread that keeps its own rows names the worker as parent or fork source. Pruned threads keep their thread row, runs, parent link and pull request links, so they still show up and open with no messages. The command runs only when you call it, so run it daily to keep worker transcripts from piling up. Other threads still grow the database. With `--dry-run`, the command only prints how many threads it would empty and how many rows it would delete. You can run the command while the server runs.
- **One way to start subagents in Claude and Codex threads:** T3 Code starts Claude and Codex sessions without the provider's own subagent tools: Claude's `Agent`, `Workflow`, `SendMessage` and `ListAgents`, and Codex's `spawn_agent` with its other collaboration tools. The agent starts every subagent, same provider and model included, with T3 Code's `delegate_task` tool, so each child is a T3 Code thread that you can open and follow.
- **Files remember where you stopped reading:** a file in the right panel opens where you left it when you switch back to its tab, close and reopen it, or reload the app. This covers code, Markdown, PDFs, large text files, CSV and TSV tables, HTML pages, Word and PowerPoint files, the first sheet of an Excel or ODS spreadsheet, notebooks, Mermaid diagrams and chat attachments; video and audio come back paused at the time you left. If the file changed, it opens at the same place, or at its start or end when that place is gone. Places stay in this browser for 30 days. A link to a line still jumps to that line once. PDFs in the right panel open in T3 Code's own PDF viewer, also in Chrome and Edge on the desktop. Image zoom, fonts, archives, SQLite files, ODT, ODP, RTF and EPUB files, HTML attachments and the other sheets of a spreadsheet still open at the top. A place in a notebook cell after the first 20 opens at the end of cell 20.
- **Files remember where you stopped reading:** a file in the right panel opens where you left it when you switch back to its tab, close and reopen it, or reload the app. This covers code, Markdown source, PDFs, large text files, CSV and TSV tables, HTML pages, Word and PowerPoint files, the first sheet of an Excel or ODS spreadsheet, notebooks, Mermaid diagrams and chat attachments; video and audio come back paused at the time you left. If the file changed, it opens at the same place, or at its start or end when that place is gone. Places stay in this browser for 30 days. A link to a line still jumps to that line once. PDFs in the right panel open in T3 Code's own PDF viewer, also in Chrome and Edge on the desktop. Image zoom, fonts, archives, SQLite files, ODT, ODP, RTF and EPUB files, HTML attachments, the other sheets of a spreadsheet and rendered workspace Markdown still open at the top. Text files of 1 MB to 64 MB open in source view in parts after the first megabyte, so past 1 MB a saved place may not be restored and a line link may stop at the end of the text loaded so far. [Issue #264](https://github.com/orbitingflea/t3code/issues/264) tracks support for rendered workspace Markdown and these 1 MB to 64 MB text files. A place in a notebook cell after the first 20 opens at the end of cell 20.
- **Reflink worktrees on Linux:** Settings → Worktrees → Reflink worktrees (on by default) clones new worktrees copy-on-write from a cache of recent checkouts on the worktree location's drive, so worktrees share disk space until files change. Drives that cannot clone, such as ext4, use Git's normal checkout.
- **FYI messages between agents:** an agent can send another thread an FYI, a note of at most 16,000 characters that needs no action and starts no turn. The receiving agent gets it with its next turn; a running Claude Code thread gets it at its next tool call. An FYI counts as delivered only when the turn that carries it finishes: a turn that fails, is stopped, restarts or is reverted gives it back, so the agent may see it twice. When a thread has an FYI waiting and has been idle for 6 hours, T3 Code wakes it to deliver its FYIs, unless the thread is settled, archived, waiting for your answer or holds queued messages; a snoozed thread waits until its snooze ends. The 6 hours count from the thread's last turn, or from the reset of a usage limit that stopped it on the provider it still uses (or from the end of a snooze that ends after that reset), so an FYI to a thread that has been idle longer wakes it within minutes. A thread whose usage limit has no known reset time, or whose provider fails every turn, gets a failed wake every 6 hours while an FYI waits. A wake carries up to 16,000 characters of FYIs. The rest, and any that a wake gives back because it failed or you stopped it, get another wake after 6 more idle hours. A wake is a new turn, so **Resume** no longer continues a turn that ended before it. Settle or archive a thread to stop its wakes. The timeline marks these messages "FYI · waiting", "FYI · sent" while the turn that carries them runs, and "FYI" once it finished.
- **Open server files by their path:** in a browser signed in to T3 Code at its own address, open `<T3 address>/<absolute path>` (such as `https://t3.example.com/home/ana/work/report.html`) to see that file read-only, for files under the server user's home folder and temp folder. A session needs the `filesystem:read` permission, and a signed-out browser gets a sign-in page. Text and code of any type show as plain text, and images, PDFs, audio and video show as themselves. A folder shows its `index.html`, or else a list of its files. Links ending in `:line` or `:line:col` open the file. Names that start with `.`, and T3 Code's own data folder, are not served. An HTML page runs in a sandboxed frame at the same address: its scripts run but cannot act as you in T3, and it loads files from its own folder and below for an hour, though its scripts cannot fetch them. A page directly in the home or temp folder loads no other files. An HTML page linked from another site, or any HTML page over plain HTTP, first shows an Open link.
Expand Down
5 changes: 3 additions & 2 deletions apps/desktop/src/app/DesktopCliShim.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,11 @@ const fakeAppImage = (canMount = true, app = REPORTER) => {
return { root, image, appImage, shim };
};

// Stays up after a signal until the test lets it finish, like a server shutting down.
// Stays up after a signal until the test lets it finish, like a server shutting down. A group
// signal and the launcher's forwarded one can both arrive; a re-run trap would read stdin's EOF.
const SLOW_SERVER = [
"#!/bin/sh",
"trap 'echo stopping >&3; read go; echo \"stopped $go\" >&3; exit 7' TERM HUP",
'trap \'trap "" TERM HUP; echo stopping >&3; read go; echo "stopped $go" >&3; exit 7\' TERM HUP',
"echo ready",
"while :; do sleep 0.05; done",
"",
Expand Down
45 changes: 45 additions & 0 deletions apps/desktop/src/electron/ElectronMenu.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import { assert, describe, it } from "@effect/vitest";
import * as HostProcess from "@t3tools/shared/HostProcess";
import type * as Electron from "electron";
import * as Effect from "effect/Effect";
import * as Option from "effect/Option";
import { vi } from "vite-plus/test";

const { menu } = vi.hoisted(() => ({
menu: { template: [] as Electron.MenuItemConstructorOptions[] },
}));

vi.mock("electron", () => ({
Menu: {
buildFromTemplate: (template: Electron.MenuItemConstructorOptions[]) => {
menu.template = template;
return { popup: (options: Electron.PopupOptions) => options.callback?.() };
},
},
}));

import * as ElectronMenu from "./ElectronMenu.ts";

describe("ElectronMenu", () => {
it.effect("shows ampersands in labels instead of reading them as mnemonics", () =>
Effect.gen(function* () {
const electronMenu = yield* ElectronMenu.make;
yield* electronMenu.showContextMenu({
window: { webContents: { getZoomFactor: () => 1 } } as Electron.BrowserWindow,
items: [
{ id: "filter", label: "Filter by R&D" },
{ id: "more", label: "A&B", children: [{ id: "child", label: "C && D" }] },
],
position: Option.none(),
source: Option.none(),
});

assert.deepEqual(
menu.template.map((item) => item.label),
["Filter by R&&D", "A&&B"],
);
const submenu = menu.template[1]!.submenu as Electron.MenuItemConstructorOptions[];
assert.equal(submenu[0]!.label, "C &&&& D");
}).pipe(Effect.provideService(HostProcess.Platform, "win32")),
);
});
3 changes: 2 additions & 1 deletion apps/desktop/src/electron/ElectronMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ export const make = Effect.gen(function* () {
}

const itemOption: Electron.MenuItemConstructorOptions = {
label: item.label,
// Electron reads a single & as a mnemonic marker and drops it.
label: item.label.replaceAll("&", "&&"),
enabled: !item.disabled,
...(typeof item.checked === "boolean" ? { type: "checkbox", checked: item.checked } : {}),
};
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/electron/ElectronProtocol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function getDesktopScheme(isDevelopment: boolean): string {
return isDevelopment ? DESKTOP_DEVELOPMENT_SCHEME : DESKTOP_PRODUCTION_SCHEME;
}

function getDesktopOrigin(isDevelopment: boolean): string {
export function getDesktopOrigin(isDevelopment: boolean): string {
return `${getDesktopScheme(isDevelopment)}://${DESKTOP_HOST}`;
}

Expand Down
6 changes: 6 additions & 0 deletions apps/desktop/src/window/DesktopWindow.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ function makeFakeBrowserWindow() {
const webContentsListeners = new Map<string, (...args: readonly unknown[]) => void>();
let zoomLevel = 0;
const webContents = {
id: 1,
session: {
webRequest: {
onBeforeSendHeaders: vi.fn(),
},
},
copyImageAt: vi.fn(),
focus: vi.fn(),
isDestroyed: vi.fn(() => false),
Expand Down
22 changes: 21 additions & 1 deletion apps/desktop/src/window/DesktopWindow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ import { msg } from "gt-i18n";
import { type DesktopSnapShotEvent, DEFAULT_CLIENT_SETTINGS } from "@t3tools/contracts";

import * as DesktopAssets from "../app/DesktopAssets.ts";
import * as DesktopClerk from "../app/DesktopClerk.ts";
import * as DesktopEnvironment from "../app/DesktopEnvironment.ts";
import * as DesktopPrimaryPaste from "../app/DesktopPrimaryPaste.ts";
import { makeComponentLogger } from "../app/DesktopObservability.ts";
import * as DesktopState from "../app/DesktopState.ts";
import * as ElectronMenu from "../electron/ElectronMenu.ts";
import { getDesktopUrl } from "../electron/ElectronProtocol.ts";
import { getDesktopOrigin, getDesktopUrl } from "../electron/ElectronProtocol.ts";
import * as ElectronShell from "../electron/ElectronShell.ts";
import * as ElectronTheme from "../electron/ElectronTheme.ts";
import * as ElectronWindow from "../electron/ElectronWindow.ts";
Expand All @@ -44,6 +45,7 @@ import { m } from "../i18n/messages.ts";
import * as DesktopRendererHistory from "../telemetry/DesktopRendererHistory.ts";
import { makeQuitShortcutHandler } from "./QuitHold.ts";
import { copyContextMenuImage } from "./ContextMenuImage.ts";
import { installMainWindowRemoteRequestHeaderPolicy } from "./RemoteRequestHeaders.ts";

const TITLEBAR_HEIGHT = 40;

Expand Down Expand Up @@ -408,6 +410,7 @@ export const make = Effect.gen(function* () {
Effect.suspend(() => pendingMainReveals.get(window) ?? electronWindow.reveal(window)),
);
let flushMainWindowBounds: Effect.Effect<void> = Effect.void;
let remoteRequestHeaderOwner: Electron.BrowserWindow | null = null;

const dismissConnectingSplash = Effect.gen(function* () {
const splash = yield* Ref.getAndSet(splashWindowRef, Option.none());
Expand Down Expand Up @@ -1036,6 +1039,19 @@ export const make = Effect.gen(function* () {

// Desktop IPC only answers the main window, so register it before its renderer can call in.
yield* electronWindow.setMain(window);
remoteRequestHeaderOwner = window;
const detachRemoteRequestHeaders = installMainWindowRemoteRequestHeaderPolicy(
window.webContents.session,
{
desktopOrigin: getDesktopOrigin(environment.isDevelopment),
mainWebContentsId: window.webContents.id,
clerkFrontendApiHostname: DesktopClerk.desktopClerkFrontendApiHostname,
devServerOrigin: Option.getOrUndefined(
Option.map(environment.devServerUrl, (url) => url.origin),
),
isDevelopment: environment.isDevelopment,
},
);
loadApplication();
if (environment.isDevelopment) {
window.webContents.openDevTools({ mode: "detach" });
Expand All @@ -1045,6 +1061,10 @@ export const make = Effect.gen(function* () {
if (!backendHasStarted) mainClosedDuringStartup = true;
clearDevelopmentLoadRetry();
clearBoundsPersist();
if (remoteRequestHeaderOwner === window) {
remoteRequestHeaderOwner = null;
detachRemoteRequestHeaders();
}
void runPromise(electronWindow.clearMain(Option.some(window)));
});

Expand Down
Loading
Loading