Skip to content

feat(projects): a project covers several repositories - #35925

Merged
juliusmarminge merged 35 commits into
mainfrom
t3/multi-repo-4-worktrees
Nov 21, 2026
Merged

juliusmarminge merged 35 commits into
mainfrom
t3/multi-repo-4-worktrees

Conversation

@juliusmarminge

@juliusmarminge juliusmarminge commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Problem

A project is one folder and one Git repository. People whose work spans several repositories (a plain folder holding api and web, a repository that depends on others elsewhere on the machine, a repository with submodules) had to run one thread per repository, and a worktree thread isolated only the project's own repository.

What this does

A project now covers every repository inside its folder, and one thread can read, change, review, commit and isolate all of them.

  • No list to keep. The server reads the project folder each time: one level down, and one more inside plain child folders such as src or packages. A repository cloned there is part of the project straight away. Linked worktrees, submodules, dot-folders and node_modules are left out, and ignoreRepositories in t3.json opts a repository out.
  • Folders outside the project are added by hand (Settings → Projects → Repositories, or t3 project add <path> --track <folder>), because adding one lets agents work somewhere they could not reach before. A .code-workspace file's outside folders are only suggested, never granted automatically.
  • Review per repository. Each turn lists its changed files grouped by repository, and the Diff pane has a repository picker for Uncommitted, Changes and Commits. Each repository gets its own checkpoints, so a rewind restores each one and names any it could not restore.
  • Git per repository. Commit, push and pull requests run in one repository at a time, from the thread details panel on web and the Git sheet on mobile. A pull request links to the thread under the repository it was opened in.
  • Worktree threads. The thread gets a folder laid out like the project, with a worktree of each chosen repository on the thread's branch. A project can lay the folder out itself with worktreeLayout: { create, remove } in t3.json.
  • Providers. Every adapter is told about the thread's folders and granted the ones outside its working directory.

User guide: docs/user/multi-repo-projects.md.

Notes for review

Not in this PR

  • "Add to another machine" still clones only the project folder's remote.
  • A layout command cannot report its own folder, and there is no add command for bringing a repository into a running thread on a layout project.
  • ACP and Cursor sessions pick up a folder added mid-thread only when the session restarts.
  • One Git action runs in one repository; there is no commit or push across several.

Verification

  • On the merged head: typecheck of server, web and mobile, format, lint, knip, the i18n catalog check, and the server and mobile tests beside the changes. CI runs the full suites.
  • Server tests for discovery, task folders, checkpoints, rewind, storage cleanup and the Git driver, on real Git repositories.
  • Exercised on web and Android against fixture projects (plain folder, nested repositories, submodule, layout command, ignored repository, a repository with no commits, and a single-repository project as the regression case): project settings, worktree threads, the Diff pane per repository, commit in one repository, rewind, adding a repository to a running thread, and deleting a thread with its worktrees. That pass found four defects, fixed in b5d2d1d81be with tests.

🤖 Generated with Claude Code

@juliusmarminge juliusmarminge added the agent-context-increase Accepts agent context growth over main in the Agent context budget check. label Nov 13, 2026
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:XXL 1,000+ changed lines (additions + deletions). labels Nov 13, 2026
@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

This PR changes the test suite by +105 test cases (browser +1, unit +47, server +57).

Keep tests that would fail for a real reason, and test logic below the UI where it can be. See Testing.

@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Thread transfer impact

✅ Thread transfer remains within every enforced ceiling.

Provider Metric Main baseline This PR Impact PR ceiling
Codex Total thread wire 5.0 KiB 5.0 KiB 0 B (0.0%) 6.8 KiB ✅
Codex Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅
Codex Live turn WebSocket wire 1.2 KiB 1.2 KiB 0 B (0.0%) 2.0 KiB ✅
Codex Live turn WebSocket decoded 21.5 KiB 21.5 KiB 0 B (0.0%) 24.4 KiB ✅
Codex Live turn messages 1 1 0 (0.0%) 8 ✅
Claude Total thread wire 5.0 KiB 5.0 KiB 0 B (0.0%) 6.8 KiB ✅
Claude Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅
Claude Live turn WebSocket wire 1.2 KiB 1.2 KiB 0 B (0.0%) 2.0 KiB ✅
Claude Live turn WebSocket decoded 21.9 KiB 21.9 KiB 0 B (0.0%) 24.4 KiB ✅
Claude Live turn messages 1 1 0 (0.0%) 8 ✅

Other scenarios

4 of 64 scenario measurements changed or failed.

Provider Scenario Metric Main baseline This PR Impact PR ceiling
Codex fleet shell snapshot HTTP decoded 42.4 KiB 42.4 KiB +20 B (+0.0%) 53.7 KiB ✅
Codex stale shell reload HTTP decoded 42.4 KiB 42.4 KiB +20 B (+0.0%) 53.7 KiB ✅
Claude fleet shell snapshot HTTP decoded 43.0 KiB 43.0 KiB +20 B (+0.0%) 53.7 KiB ✅
Claude stale shell reload HTTP decoded 43.0 KiB 43.0 KiB +20 B (+0.0%) 53.7 KiB ✅
All 64 scenario measurements
Provider Scenario Metric Main baseline This PR Impact PR ceiling
Codex short turn resume WebSocket decoded 10.5 KiB 10.5 KiB 0 B (0.0%) 12.7 KiB ✅
Codex short turn resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Codex long turn running, cold open HTTP decoded 281.7 KiB 281.7 KiB 0 B (0.0%) 302.7 KiB ✅
Codex long turn running, cold open rows 75 75 0 (0.0%) 75 ✅
Codex long turn running, history page HTTP decoded 92.4 KiB 92.4 KiB 0 B (0.0%) 107.4 KiB ✅
Codex long turn running, history page rows 75 75 0 (0.0%) 75 ✅
Codex long turn finished, cold open HTTP decoded 381.5 KiB 381.5 KiB 0 B (0.0%) 410.2 KiB ✅
Codex long turn finished, cold open rows 151 151 0 (0.0%) 151 ✅
Codex long turn finished, socket cold open WebSocket decoded 381.6 KiB 381.6 KiB 0 B (0.0%) 410.2 KiB ✅
Codex long turn finished, socket cold open WebSocket messages 2 2 0 (0.0%) 2 ✅
Codex long turn finished, socket cold open rows 151 151 0 (0.0%) 151 ✅
Codex long turn finished, work page HTTP decoded 186.2 KiB 186.2 KiB 0 B (0.0%) 200.2 KiB ✅
Codex long turn finished, work page rows 150 150 0 (0.0%) 150 ✅
Codex idle thread resume WebSocket decoded 65 B 65 B 0 B (0.0%) 200 B ✅
Codex idle thread resume WebSocket messages 1 1 0 (0.0%) 1 ✅
Codex fleet shell snapshot HTTP decoded 42.4 KiB 42.4 KiB +20 B (+0.0%) 53.7 KiB ✅
Codex fleet shell snapshot rows 27 27 0 (0.0%) 27 ✅
Codex fleet shell subscribe WebSocket decoded 65 B 65 B 0 B (0.0%) 200 B ✅
Codex fleet shell subscribe WebSocket messages 1 1 0 (0.0%) 1 ✅
Codex fleet shell resume check HTTP decoded 18 B 18 B 0 B (0.0%) 100 B ✅
Codex fleet shell resume check rows 0 0 0 0 ✅
Codex stale shell reload HTTP decoded 42.4 KiB 42.4 KiB +20 B (+0.0%) 53.7 KiB ✅
Codex stale shell reload rows 27 27 0 (0.0%) 27 ✅
Codex stale shell resume WebSocket decoded 140 B 140 B 0 B (0.0%) 400 B ✅
Codex stale shell resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Codex stale todo list cold open HTTP decoded 72.4 KiB 72.4 KiB 0 B (0.0%) 83.0 KiB ✅
Codex stale todo list cold open rows 75 75 0 (0.0%) 75 ✅
Codex stale todo list cold open nodes 2 2 0 (0.0%) 4 ✅
Codex stale todo list cold open subagents 2 2 0 (0.0%) 4 ✅
Codex stale todo list cold open plans 1 1 0 (0.0%) 2 ✅
Codex stale todo list cold open providerTurns 1 1 0 (0.0%) 2 ✅
Codex stale todo list cold open checkpoints 1 1 0 (0.0%) 2 ✅
Claude short turn resume WebSocket decoded 10.6 KiB 10.6 KiB 0 B (0.0%) 12.7 KiB ✅
Claude short turn resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Claude long turn running, cold open HTTP decoded 283.3 KiB 283.3 KiB 0 B (0.0%) 302.7 KiB ✅
Claude long turn running, cold open rows 75 75 0 (0.0%) 75 ✅
Claude long turn running, history page HTTP decoded 93.4 KiB 93.4 KiB 0 B (0.0%) 107.4 KiB ✅
Claude long turn running, history page rows 75 75 0 (0.0%) 75 ✅
Claude long turn finished, cold open HTTP decoded 384.2 KiB 384.2 KiB 0 B (0.0%) 410.2 KiB ✅
Claude long turn finished, cold open rows 151 151 0 (0.0%) 151 ✅
Claude long turn finished, socket cold open WebSocket decoded 384.3 KiB 384.3 KiB 0 B (0.0%) 410.2 KiB ✅
Claude long turn finished, socket cold open WebSocket messages 2 2 0 (0.0%) 2 ✅
Claude long turn finished, socket cold open rows 151 151 0 (0.0%) 151 ✅
Claude long turn finished, work page HTTP decoded 188.1 KiB 188.1 KiB 0 B (0.0%) 200.2 KiB ✅
Claude long turn finished, work page rows 150 150 0 (0.0%) 150 ✅
Claude idle thread resume WebSocket decoded 66 B 66 B 0 B (0.0%) 200 B ✅
Claude idle thread resume WebSocket messages 1 1 0 (0.0%) 1 ✅
Claude fleet shell snapshot HTTP decoded 43.0 KiB 43.0 KiB +20 B (+0.0%) 53.7 KiB ✅
Claude fleet shell snapshot rows 27 27 0 (0.0%) 27 ✅
Claude fleet shell subscribe WebSocket decoded 66 B 66 B 0 B (0.0%) 200 B ✅
Claude fleet shell subscribe WebSocket messages 1 1 0 (0.0%) 1 ✅
Claude fleet shell resume check HTTP decoded 18 B 18 B 0 B (0.0%) 100 B ✅
Claude fleet shell resume check rows 0 0 0 0 ✅
Claude stale shell reload HTTP decoded 43.0 KiB 43.0 KiB +20 B (+0.0%) 53.7 KiB ✅
Claude stale shell reload rows 27 27 0 (0.0%) 27 ✅
Claude stale shell resume WebSocket decoded 140 B 140 B 0 B (0.0%) 400 B ✅
Claude stale shell resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Claude stale todo list cold open HTTP decoded 73.4 KiB 73.4 KiB 0 B (0.0%) 83.0 KiB ✅
Claude stale todo list cold open rows 75 75 0 (0.0%) 75 ✅
Claude stale todo list cold open nodes 2 2 0 (0.0%) 4 ✅
Claude stale todo list cold open subagents 2 2 0 (0.0%) 4 ✅
Claude stale todo list cold open plans 1 1 0 (0.0%) 2 ✅
Claude stale todo list cold open providerTurns 1 1 0 (0.0%) 2 ✅
Claude stale todo list cold open checkpoints 1 1 0 (0.0%) 2 ✅

Baseline: 3f5492f · PR result: b46724c · Source CI: success

Scenario and decoded snapshot size

10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.

  • Codex decoded thread snapshot: 108.5 KiB
  • Claude decoded thread snapshot: 108.8 KiB

Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

Comment thread apps/server/src/storageCleanup.ts Resolved
Comment thread apps/server/src/storageCleanup.ts Resolved
@macroscopeapp

macroscopeapp Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Needs Human Approval

Macroscope's review found this PR requires human approval — Projects now automatically discover internal repositories, and new worktree threads select all repositories up to eight by default, otherwise none. These product-default changes require human review of repository scope and isolation expectations, especially because plain-folder files remain shared.

Needs human approval because:

  • 18 blocking correctness issues found at or above your repo's Minimum Blocking Severity

Adjust the Minimum Blocking Severity for this repo — including turning it Off — in Settings. You can add or adjust custom eligibility rules. Learn more.

ashx-j added a commit to ashx-j/klin that referenced this pull request Nov 13, 2026
…s, Git and worktrees for each (#12)

* feat(projects): a project can track several repositories (pingdotgg/t3code#35921)

Port of upstream PR pingdotgg/t3code#35921 at e60d37e8ad, without its
apps/mobile changes. Upstream's 086_ProjectionProjectsTrackedFolders
migration would collide with upstream's own 086, so the column comes from
ensureKlinSchema, which runs after the numbered migrations and only adds
what is missing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(projects): turn changes and diffs cover tracked repositories (pingdotgg/t3code#35923)

Port of upstream PR pingdotgg/t3code#35923 at 4abac7127c, without its
apps/mobile changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(projects): Git actions and pull requests per tracked repository (pingdotgg/t3code#35924)

Port of upstream PR pingdotgg/t3code#35924 at ae8fad5eef, without its
apps/mobile changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(projects): new worktree threads isolate every tracked repository (pingdotgg/t3code#35925)

Port of upstream PR pingdotgg/t3code#35925 at 5a89fabab8, without its
apps/mobile changes. Upstream's 087_TaskFolders migration would collide
with upstream's own 087, so ensureKlinSchema creates the task_folders
table instead. Storage cleanup and worktree branch naming were merged
with upstream's later changes to the same code (symlinked worktree paths,
prefix-aware temporary branches).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(client): a thread lists its most recently changed repositories first after it loads

A loaded thread lists its checkpoints by scope and then ordinal, and the
ranking used each checkpoint's position in that list as its time. Repositories
were ranked by scope id, so one changed in the latest turn could fold behind
"Show more".

Rank each repository by the ordinal of its latest run checkpoint, which is the
run's ordinal, and break ties within a turn by name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(client): a repository with a backslash in its folder name links to the right folder on Linux and macOS

Repository paths were split on backslashes as well as slashes everywhere, so
on POSIX `/work/api\client` became `api/client`. Its name and relative path
were wrong, and the changed files tree opened diffs under the wrong folder.

Treat a backslash as a separator only in a Windows path, one that starts with
a drive letter or a UNC prefix.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(web): a repository folder whose name starts with ".." opens its files in the diff viewer

The diff panel counted any repository whose relative path starts with ".." as
outside the thread's folder, so a repository at `..api` opened its files in the
external editor instead of the file viewer. The worktree repository choices
used the same check and hid such a folder's place in the project.

Count a relative path as leaving the folder only when it is ".." or starts with
"../". `repositorySectionForPath` now returns that answer, so the panel no
longer works it out itself.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(server): a tracked repository on another drive no longer freezes Windows

Planning a task folder walked up from the project with `path.dirname` until one folder held
every tracked repository. On Windows `dirname` stops changing at a drive root, so a repository
on another drive made the synchronous loop run forever and froze the server.

The walk now stops at the root, and the plan fails with a message saying the tracked
repositories share no folder with the project.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(server): a task folder no longer links repositories the project does not track

In a project whose folder is not a repository, the task folder linked every entry that did not
lead to a tracked repository, including Git repositories the project does not track. An agent
editing one through the task folder edited the original checkout.

The task folder now leaves out every repository that gets no worktree, the same way it already
left out tracked repositories that were not chosen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(cursor): the next turn after a tracked folder change can reach the new folders

Cursor fixes an agent's `local.dirs` when it opens, and the adapter reused the open agent for every
later turn. After a person or an agent changed the project's tracked folders, the turn instructions
named the new folders while the running agent still lacked access to them.

The adapter now remembers the folders each agent was opened with and resumes the agent with the
turn's folders when they differ.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(server): concurrent project edits can no longer track a folder that holds the project

ProjectService.update checked the tracked folders against the project row it
read before taking the project lock, and the commit did not check again. A
move and a folder edit that raced could each pass and together save a tracked
folder that contains the project's new root.

The containment and duplicate checks now run under the project lock, against
the root and folder list the command leaves, and reject through a command
receipt like other planning failures. Path normalization stays before the lock.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(server): a restored task folder keeps repositories the project stopped tracking isolated

Restoring a removed task folder kept out only the repositories the project tracks now. A
repository the task folder recorded but the project no longer tracks was reached through a link
to its original checkout, and restore took that link for the existing worktree, so the thread's
edits went to the original.

Restore now also keeps out every repository the task folder recorded, so each gets its own
worktree back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(server): missing folders no longer hide real repositories from a folder scan

The scan applied the 128-folder limit before it dropped folders that do not
exist, so a .code-workspace file listing many missing folders could use up the
limit and leave out repositories that are on disk.

The scan now drops missing folders first and applies the limit to what is left.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(web): worktree threads keep their repositories after the project stops tracking folders

The thread details panel looked up a worktree thread's task folder only while
the project tracked at least one folder. After a project removed its last
tracked folder, its existing task folder threads lost their repository
sections, and a plain project folder in one was offered Git actions again.

Look up the task folder for every worktree thread the server knows. This is
one request for the open thread, not one per sidebar row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(server): a folder with a long name no longer blocks tracking it

A scanned folder's name comes from its .code-workspace entry or its directory
name, and neither had a length limit. A project stores at most 128 characters
per tracked folder name, so saving a scan's selection, `project add
--track-repos` or `--track` failed for a folder with a longer name.

The server now cuts scanned and CLI-made names to 128 characters, the limit
the contract exports as PROJECT_TRACKED_FOLDER_NAME_MAX.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(web): a worktree send no longer runs in the project folder when its tracked folders can't be read

When the tracked folder list failed to load, the composer treated a plain project folder as having
no Git repository and quietly turned a "New worktree" send into a normal thread that edited the
original folders.

An unread folder list now leaves the worktree request as it is. The server then creates the task
folder, or refuses the send with "is not a Git repository" when the project has no repository.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(web): a removed worktree no longer shows its branch in the sidebar when its project tracks folders

The sidebar drops a worktree thread's branch and path once live status says
its folder is no repository. It kept them whenever the project tracked any
folder, to spare task folders whose plain project folder is never a
repository, so an ordinary worktree whose checkout was removed still showed
its branch and path.

Ask the server whether the worktree is a task folder, and only for a row whose
status already says it is no repository. Other rows cost no extra request. A
server without task folders fails the lookup, which counts as no task folder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(server): project add refuses more than 128 --track folders instead of dropping some

`project add` cut its tracked folder list to the 128 a project allows, so with
more distinct --track paths it dropped the last ones and still reported success.

It now fails with an error naming the limit and the count when the --track
paths alone pass the limit. Scanned folders from --track-repos still fill only
the room that is left.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(acp): the next turn after a tracked folder change can reach the new folders

An ACP agent gets a session's folders only when the session is set up, and the adapter kept the
runtime it started with for every later turn. It also built every replacement runtime from the
folders given when the session opened. After the project's tracked folders changed, the turn
instructions named the new folders while the agent still had the old ones.

Replacement runtimes now take the folders from the latest turn's policy. When a turn's folders
differ from the running runtime's, the adapter restarts the runtime and reloads the session,
provided the agent accepts folders, can reload a session, and has no background work running.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(server): resuming a thread puts back links cleanup removed from its task folder

When cleanup removed part of a task folder, for example its links but not a repository with
uncommitted work, restore saw the project folder still there and skipped it. The thread came
back to a folder missing files such as `AGENTS.md`, and restore reported success.

Restore now always lays out the project folder. Entries that are there stay, and a real folder
left from before gets its missing links, while a link is never written into.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(server): a rewind that cannot put a folder back keeps its snapshot of the edits

When a rewind across several folders failed and putting a folder back failed too,
the cleanup still deleted that folder's pre-rewind snapshot ref. The folder stayed
partly rewound with no named copy of the user's edits. The ref name was also fixed
per folder, so the next rewind attempt overwrote any snapshot that was left.

Now a snapshot is deleted only once its folder is put back, or after the rewind
succeeds. A kept snapshot is logged with its ref, and each rewind attempt names its
snapshots apart so a retry does not overwrite them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(web): pressing Add again while a folder is scanned no longer starts a second add

Adding a folder from the command palette first scans it for repositories. A second Add or Enter
during that scan started another add, which replaced the first one's pending folder choice. The
first add then never finished, and the folder dialog could show the first scan's checkmarks.

The palette now ignores Add, Enter and the file manager pick while an add is in progress.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(server): two task folders created at once no longer share one folder

Choosing a task folder's location only checked that the path did not exist yet. Two creations
for the same project and branch could both pick it, and when one failed, its rollback removed
the other's worktrees and files.

The location is now reserved by creating the folder, which fails when it already exists, and
the next name is tried then.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(antigravity): Antigravity can read files in tracked folders outside the project

T3 Code serves Antigravity's file reads itself and confines them to allowed roots. The ACP adapter
passed only the turn's cwd to that handler, so a read in a tracked folder outside the project
failed with "outside the session workspace".

The ACP client file system hooks now receive the turn's runtime policy, and Antigravity allows
reads in the thread's tracked folders as well as its cwd and attachments.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(opencode): a tracked folder with * or ? in its path no longer grants other folders

OpenCode grants a thread's tracked folders through `external_directory` permission patterns, and
its patterns treat `*` and `?` as wildcards with no escape. A tracked `/repos/api?` granted
`/repos/api1`, and `/repos/api*` granted its siblings.

Both OpenCode adapters now skip the grant for a folder whose path holds `*` or `?`, so OpenCode's
default rule applies to it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(web): a tracked folder with a very long name no longer fails to save

A project stores tracked folder names of at most 128 characters. The add-project dialog, a
rescan in Settings and Add folder passed longer names through as they were, so saving the project
failed for a long `.code-workspace` name or folder name.

Every place that turns a scanned or typed folder into a tracked one now caps the name, as the
shared selection helper already did.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(server): a symlinked tracked folder can no longer open a parent of the project to agents

The check that stops a tracked folder from holding the project compared paths
as typed, so a tracked symlink such as /work/app/parent-link pointing at /work
passed, and WorkspaceFolders.forThread then granted /work in extraRoots. A
tracked folder replaced by a symlink to / after it was saved was granted the
same way, since forThread never re-checked what a path resolves to.

Project validation now also compares the resolved paths of folders that exist,
for both the containment and the duplicate checks. forThread leaves out a
folder that resolves to a filesystem root or to a folder holding the thread's
own, for tracked folders and task folder worktrees alike.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(server): worktrees a restart interrupted are no longer lost from their task folder

A new task folder recorded its repository checkouts only after every one was made. If the
server restarted partway, the record listed none of them, so removal and restore could not find
the worktrees already created.

The record now lists every planned checkout before the first one is made. Removal already treats
a missing checkout as gone, and restore makes it. When creation fails, the record first drops
the checkouts that were never made, so what the rollback keeps matches the disk.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs: tracked folder text says what tracking does and where a worktree thread's edits land

The Repositories settings and the folder dialog said tracked repositories get "their own changes
and review". The guide said the add-folder scan runs on mobile, which Klin does not ship, and that
"Other repositories" brings a repository into any running thread.

The text now says agents are told about tracked folders and can work in them, and that tracked
Git repositories get their own changes, diffs, Git actions and pull requests. The guide now says
which repositories a new worktree thread gets, that each starts from its own default branch, that
the files of a plain project folder are links to the originals, and that Git repositories without
a worktree are left out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(server): folder scan and list errors keep the failure that caused them

WorkspaceFoldersError had no cause, so the scan and project-read failures
dropped the file system, project store and task folder errors behind them, and
a permission problem looked the same as a missing folder or a database error.

The error now has an optional cause, as TaskFolderError beside it and the Git
errors already do, and WorkspaceFolders passes the original error through.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(server): a failed rewind puts back what each folder had staged

When a later folder's restore failed, the rewind put the earlier folders' files back
from their pre-rewind snapshots, but their staged changes were lost. The snapshot
recorded only working-tree content, and restoring a checkpoint resets the index to
HEAD, so a partly staged file also lost its staged version.

A pre-rewind snapshot now also records the index, as a commit of its tree kept as the
snapshot's second parent, read from a copy so the user's index stays unlocked. Putting
a folder back resets its index to that commit instead of HEAD. An index Git cannot
write as a tree, such as one with merge conflicts, falls back to the old behavior.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(server): storage cleanup no longer removes a task folder after cleanup was turned off

The task folder path of storage cleanup kept using the cleanup settings it read
when the sweep started. After waiting for the workspace lease it could still
remove checkouts the user had since stopped cleanup for, or under rules they
had changed.

Under the lease it now compares the current settings with the ones it checked
against, the same comparison the ordinary worktree path makes before removal,
and keeps the folder when they differ.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(server): storage cleanup counts the space freed by removed task folder checkouts

Removed task folder checkouts were reported with no size, so the cleanup report
counted them as 0 B. The inspection measured each checkout before removal and
then dropped the number.

The inspection now returns each checkout's measured size, and the report
attaches it to the checkout's removed entry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(contracts): a rewind no longer restores a repository from a baseline that holds a failed run's edits

repositoryRewindCheckpoint looked only at ready checkpoints. When a later run changed a
tracked repository but its own snapshot failed, its error checkpoint was skipped, and
the next ready baseline was returned. That baseline already held the failed run's
edits, so the rewind restored the wrong contents.

A runless baseline is now used only when no unrolled-back run checkpoint sits between
the target and it. Otherwise the repository has no rewind target, and the rollback
leaves it as it is with its usual warning.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(server): worktree handoff reports when a task folder's repositories started from origin

The handoff tool set `startedFromOrigin` only from the project folder's own fetch. For a project
folder that is not a repository, the task folder fetched each tracked repository from its remote
while the result still said `false`.

Task folder creation now reports whether a repository's checkout started from a fetched remote
commit, and the handoff result includes it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(server): a turn diff stays within its size limit when the thread's own patch fills it

When the thread folder's patch used the whole output budget, each changed tracked
repository still ran its diff with no budget left and got the truncation marker on its
own. The combined turn diff then went over CHECKPOINT_DIFF_MAX_OUTPUT_BYTES by one
marker per repository, and each of those repositories cost Git processes for nothing.

Repository patches now stop once the remaining budget cannot hold the marker. The
thread's own patch already ends with the marker, so the cut is still visible.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(server): a tracked repository's turn edits stay in review when Git cannot list them

A checkpoint capture that failed to list the changed files recorded a ready checkpoint
with an empty file list. For a tracked repository, an empty list means the run left it
as it was, so the run's checkpoint was dropped. Its edits then disappeared from turn
review, and a later baseline that already held them could pass for the state before
the run in a rewind. A numstat larger than Git's output limit is one way to get there.

The capture now reports when the file list could not be read, and a repository
checkpoint is dropped only when Git listed no file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(server): a repository a turn fully committed keeps its changes after a server restart

When a turn starts on a clean tracked repository, only this process's memory notes the
commit it started on; no snapshot is written until a turn changes something. A server
restart mid-turn replays the turn's checkpoint capture in a new process that has lost
that note. A repository the agent fully committed was then clean with no baseline
snapshot, which the capture read as "unchanged", so the turn listed no files for it.
A repository that missed the turn-start baseline budget had the same gap.

When how the turn started is unknown and the repository is clean, the capture now asks
HEAD's reflog where HEAD was when the run started. If a commit moved it since, that
commit becomes the turn's baseline, dated at the run's start like a noted one. Without
a reflog, nothing changes from before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(agents): say how Klin's multi-repo schema survives upstream merges

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(server): a CLI adds Klin's multi-repo schema only while it owns the database

A CLI command migrates a database only after it takes the server ownership
lock, and it skips the lock when no migration is pending. Klin's startup
schema step was not counted as pending, so a newer CLI could add the tracked
folders column and task folder table to a database a running server owned.
Missing Klin schema now counts as pending, and adding it logs the same
finished line the desktop waits for after a migration starts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(server): a turn no longer shows edits made before a later turn as its own repository changes

A repository's diff range ended at its last record in the range, which could be the runless
baseline a later turn recorded. That baseline holds the folder as the next turn found it, so
edits made between turns showed up as changes of a turn that left the repository alone.

The range now ends at the last record a turn wrote itself.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(server): a file rewind in a linked task folder with nothing to restore rewinds the conversation

A task folder whose project folder is a plain linked folder has no snapshot of its own, so a file
rewind there could only restore its repositories. When none changed after the target turn, both
the Orchestrator and the rollback service refused the rewind as an invalid target.

A missing project folder snapshot is now accepted for a linked task folder whatever its
repositories hold. The rewind restores the repositories that changed, if any, and otherwise
rewinds only the conversation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(server): a tracked repository on another drive no longer blocks every worktree of its project

A task folder lays its checkouts out around the deepest folder holding the project and every
tracked Git folder. When one tracked repository shared no folder with the project, for example
because it was on another Windows drive, every worktree creation failed, even one that left that
repository out.

The layout still covers every tracked repository where one folder holds them all, so any can be
added to the thread later. Otherwise it covers the project and the repositories the task folder
holds, and only a selection that itself spans drives is refused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(server): a rewind recreates a task folder repository whose branch was deleted

When storage cleanup removed a task folder's checkouts, a rewind put each one back by checking
out the thread's branch, and failed outright when a repository no longer had that branch, for
example after it was deleted once its work merged. Resuming the thread already handled this.

The rewind now recreates a missing checkout with the same step the resume path uses: the
thread's branch if it exists, else its pushed commit, else a new branch from where the
repository is.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(server): a task folder checkout comes back over files a failed removal left

Resuming or rewinding a thread puts back each checkout of its task folder that is missing. Any
path without a .git counted as missing, and Git refused to check out into it when a removal that
failed partway had left files there, such as build output, so the thread could not resume or
rewind.

Such files are now set aside while the checkout is made, deleted once it succeeds and put back if
it fails, as a rewind already did for a single worktree. Both paths share that step now. A folder
that still holds another live checkout of the task folder is never set aside.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(server): removing a task folder through a symlinked path removes all of it

Removing a thread's worktree first asks whether the path is a task folder. The record is found
through either spelling of a worktrees folder reached through a symlink, but the path was then
compared only with the spelling the record stored. A request with the other spelling was treated
as a single worktree: only the project folder's checkout went, and the repository checkouts and
the record stayed behind.

The comparison now resolves both sides the way the record lookup does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* style(server): format the task folder tests

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(server): a new task folder never merges into the record of one cleanup removed

Storage cleanup can remove a task folder's directory and keep its record, so the folder can be put
back when its thread resumes. A new task folder for the same project and branch name, for example
after the old branch was deleted, could be given that same directory, since only the directory was
checked. Its record then merged into the old one, whose project fields the upsert never updated, so
two threads shared one record.

A folder name that still has a record is now skipped, and a record written again replaces every
field. Failures to write the record now say so instead of reporting a failed read.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(client): the rewind comment says what the server now accepts

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(server): the agent context budget matches the tracked folder tool text

The fixes on this branch shortened the project tools' tracked folder text
by 27 bytes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A project was one folder, so a wrapper folder holding several repositories
showed "no changes" and agents had no grant for sibling repositories.

A project now stores a list of tracked folders next to its own folder. Adding
a folder scans one level down and reads a .code-workspace file, then offers a
checklist; Settings > Projects has Rescan, Add folder and Remove. Agents get
the folders as writable roots where the provider supports it and a short
folder list in their instructions.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@juliusmarminge
juliusmarminge force-pushed the t3/multi-repo-3-per-repo-git branch from ae8fad5 to 06c700e Compare November 14, 2026 01:49
@juliusmarminge
juliusmarminge force-pushed the t3/multi-repo-4-worktrees branch from 5a89fab to 464b782 Compare November 14, 2026 01:49
@juliusmarminge
juliusmarminge force-pushed the t3/multi-repo-4-worktrees branch from 464b782 to b43a807 Compare November 14, 2026 03:47
@juliusmarminge
juliusmarminge force-pushed the t3/multi-repo-3-per-repo-git branch from 06c700e to 71e44ba Compare November 14, 2026 03:47
jappyjan added a commit to jappyjan/t3code that referenced this pull request Nov 14, 2026
…series

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
juliusmarminge and others added 3 commits November 16, 2026 10:45
A thread in a wrapper folder that is not a Git repository showed no changes
on any turn, and edits to repositories next to or inside the project folder
never reached the diff panel.

Each tracked repository a turn changes now gets its own checkpoint scope
under the thread's root scope. A clean repository costs one git status per
turn and writes nothing. Turn diffs carry a patch per repository, the turn
card groups changed files by repository, and the diff panel and mobile review
gain a repository filter.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A thread that changed several repositories could only commit, push and open
a pull request for its own folder.

The thread details panel and the mobile Git sheet now list the repositories
the thread changed, most recent first, each with its branch, counts and pull
request, and the usual Git actions bound to that repository. Collapsed rows
read local status only. Any tracked repository can be pinned from "Other
repositories". An open pull request on a changed repository's branch is
linked to the thread.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
"New worktree" isolated only the project folder, and a wrapper folder that is
not a Git repository could not use it at all.

A worktree thread of a project that tracks repositories now gets a task
folder laid out like the project: the project folder, plus one worktree per
chosen repository on the thread's branch. A project folder that is not a
repository becomes a directory of links to its files. The composer picks the
repositories, one can be added to a running thread, removal and storage
cleanup keep any repository with unsaved work, and rewind restores every
repository together or none.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@juliusmarminge
juliusmarminge force-pushed the t3/multi-repo-3-per-repo-git branch from 71e44ba to cfb1671 Compare November 16, 2026 20:07
@juliusmarminge
juliusmarminge force-pushed the t3/multi-repo-4-worktrees branch from b43a807 to 7bfc727 Compare November 16, 2026 20:07
juliusmarminge and others added 5 commits November 16, 2026 12:15
…e level deeper

A tracked folder whose path holds a * segment is a rule: its repositories are
read from disk each time, so clones and removals are picked up without a rescan.
The scan also looks inside plain child folders and no longer offers linked
worktrees as repositories.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…hat repository

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…and remember the choice

Each repository starts from the thread's base branch where it has it, and from
its own default branch otherwise. A plain project folder names that branch in
the repositories menu. The web composer starts a new draft from the project's
last repository choice.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… changed

The diff panel's Git scopes read the thread's folder or a repository the thread
changed, chosen from a picker. A plain project folder starts on the repository
changed last.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A worktreeLayout command in the project's t3.json creates the thread's folder in
place of T3 Code's worktrees and links. The checkouts it makes where tracked
repositories belong are adopted, and an optional command tears the folder down.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Comment thread apps/web/src/components/DiffPanel.tsx Resolved
Comment thread apps/web/src/components/DiffPanel.tsx Resolved
juliusmarminge and others added 3 commits November 16, 2026 13:07
… project settings

Also names a rule added from the CLI by its last two segments.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… repositories stay in view

A failed commit showed its error as a toast on the thread, dimmed behind the
open Git sheet, cut to one line and gone in five seconds. It is an alert now.

The Git sheet lists repositories right after the commit, push and PR rows, so
a changed submodule is visible at the sheet's opening height.

The turn review label names the thread's own folder when it changed too.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…chable repository, and following from mobile

A project that tracks no other repository can now declare worktreeLayout, so a
repository that prepares its own submodules gets its command run.

The diff panel's repository picker lists every repository the thread reaches,
not only the ones a turn changed, so work done by hand shows up.

Mobile's add-project and rescan flows can keep following a folder. Followed
rules are named by their last two path segments on both clients.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
github-actions Bot added a commit to omarcresp/t3code-flake that referenced this pull request Nov 21, 2026
**v0.1.12-nightly.20261121.5038** · 103 changes from 44 contributors

- **Multi-repository projects.** Work across several repositories in one project and thread.
- **Multiple Linear teams.** Show issues from several Linear teams in one project.
- **Linked environments (beta).** Link a machine through an environment already connected to it, without manually entering an address or pairing code.
- **Claude Fable Fast Mode.** Turn on Fast Mode for Claude Fable models.
- **Copy tables as HTML.** Copy chat tables as HTML to paste formatted tables into email, documents, and wikis.
- **Duplicate browser tabs.** Duplicate a browser tab from its context menu.
- **Codex thread recovery.** Continue Codex threads after a rejected session history would otherwise prevent further messages.

### Plus 70 more bug fixes and performance improvements.

<details>
<summary>Full changelog</summary>

## What's Changed
* fix: proxied usage limits follow the hub's model routing and show on the thread card by @Bil0000 in pingdotgg/t3code#30778
* fix(server): cloning a Git LFS repo no longer looks stalled while it downloads by @juliusmarminge in pingdotgg/t3code#39963
* chore(skills): launch-video staging tools for seeded data and gestures by @juliusmarminge in pingdotgg/t3code#40000
* test(client-runtime): cover webhookAddress and imageAttachmentSize helpers by @ndycode in pingdotgg/t3code#39668
* test(shared): cover advertised endpoint URL normalization and compatibility by @ndycode in pingdotgg/t3code#39651
* feat(web): search actions when adding keybindings by @LukasFB in pingdotgg/t3code#28612
* fix(models): Claude Fable offers Fast Mode by @minghinmatthewlam in pingdotgg/t3code#33588
* fix(gitlab): custom merge request avatars load in the list by @Ernest0-Production in pingdotgg/t3code#39973
* feat(web): click the Tab hint to use the suggested prompt by @floklein in pingdotgg/t3code#39488
* fix(web): pull requests linked from an issue open beside it on the Issues page by @PixPMusic in pingdotgg/t3code#39937
* fix(relay): Android OS kills no longer page as mobile crashes by @juliusmarminge in pingdotgg/t3code#40055
* feat(web): sidebar New starts the thread in the scoped project by @AI091 in pingdotgg/t3code#35185
* feat(mobile): Android terminal gets a close button like desktop by @abdfattahz in pingdotgg/t3code#37640
* fix(web): typed runs of dots no longer vanish in the composer with ligature fonts by @juliusmarminge in pingdotgg/t3code#40028
* fix(web): IME composition replaces selected text beside chips by @StiensWout in pingdotgg/t3code#37274
* chore(dev): drop the replay agent's MCP-call frame and delegation recordings by @juliusmarminge in pingdotgg/t3code#40026
* fix(skills): each launch-video render writes frames to its own folder by @juliusmarminge in pingdotgg/t3code#40066
* fix(web): numbered jumps and next/previous thread include unsent drafts by @juliusmarminge in pingdotgg/t3code#39968
* fix(mobile): preserve AirPods output with the iPhone mic by @juliusmarminge in pingdotgg/t3code#40061
* fix(mobile): terminal Ctrl, Alt, and Cmd keys look active when latched by @hosmelq in pingdotgg/t3code#32989
* fix(web): Arrow and page keys scroll the pull request pane after a click or when it opens by @mwolson in pingdotgg/t3code#39319
* feat: link a machine through another environment that already links to it by @juliusmarminge in pingdotgg/t3code#40036
* fix(web): keep file path tooltips open for selection by @juliusmarminge in pingdotgg/t3code#24603
* docs: explain long-path support for Windows clones by @vycdev in pingdotgg/t3code#28546
* fix(web): screen readers can read expanded tool output by @MarcoDotIO in pingdotgg/t3code#34646
* test(shared): cover keybinding shortcut matching by @ndycode in pingdotgg/t3code#39654
* fix(server): storage cleanup runs a full git status only on removable worktrees by @tnfssc in pingdotgg/t3code#35721
* fix(server): recover Codex threads after encrypted history rejection by @xiangyingchang in pingdotgg/t3code#36643
* feat: Verilog, SystemVerilog, and VHDL code is syntax highlighted by @KelvinChung2000 in pingdotgg/t3code#29261
* feat(policy): t3 policy settings lists what a policy can manage by @freezscholte in pingdotgg/t3code#31432
* chore: vouch danshapiro by @t3dotgg in pingdotgg/t3code#40080
* fix(shared): compose NFD file names in link chips and the @ menu by @juliusmarminge in pingdotgg/t3code#39610
* fix(server): a refused link says how to turn Linked environments on headless by @juliusmarminge in pingdotgg/t3code#39964
* feat(source-control-github): repeat PR preview measurements for min and median by @ndycode in pingdotgg/t3code#39660
* fix(server): linked environments read the newest thread messages by default by @gek0v in pingdotgg/t3code#39981
* fix(web): timeline row actions stay put on hover, and notices expand only when cut off by @juliusmarminge in pingdotgg/t3code#40076
* feat(cli): t3 thread start --generate-title names the thread like the app does by @angusfretwell in pingdotgg/t3code#28597
* feat(web): copy a chat table as HTML by @pfaisant in pingdotgg/t3code#33286
* fix(server): stop re-probing forge CLIs for plain-git remotes every 5 minutes by @juliusmarminge in pingdotgg/t3code#40053
* feat(desktop): add Reload to browser context menus by @vifar in pingdotgg/t3code#22650
* feat(web): duplicate browser tabs from the context menu by @LukasFB in pingdotgg/t3code#29681
* chore(devices): bump agent-device to 0.21.41 and expo-device-hub to 0.26.1 by @juliusmarminge in pingdotgg/t3code#40095
* fix(server): delegated task result keeps the hook stop reason after progress by @StiensWout in pingdotgg/t3code#37859
* feat(web): thread chips show the sidebar's thread card on hover by @flamboh in pingdotgg/t3code#38895
* feat(scripts): add local mobile:audit CLI with before/after hit-box reports by @juliusmarminge in pingdotgg/t3code#40102
* feat(issues): a project can list issues from several Linear teams by @Bil0000 in pingdotgg/t3code#40023
* fix(web): resetting a setting no longer jumps the Settings page by @kobimic887 in pingdotgg/t3code#30925
* test(shared): cover sessionPermissionsUnavailableMessage precedence by @ndycode in pingdotgg/t3code#39670
* fix(server): t3_thread_read on a linked environment returns the newest page by default by @shivamhwp in pingdotgg/t3code#40003
* feat(mobile): hide test files in the thread review sheet by @juliusmarminge in pingdotgg/t3code#26759
* fix(mobile): a failed branch comparison no longer hides Uncommitted changes by @merrkry in pingdotgg/t3code#24841
* refactor(scripts): rewrite mobile:audit CLI with Effect by @juliusmarminge in pingdotgg/t3code#40118
* fix(web): terminal Powerline caps and slants fill their cells by @osmelmora in pingdotgg/t3code#24888
* fix(mobile): outdated pull request approvals are labeled, not shown as current by @juccul in pingdotgg/t3code#36868
* fix(vcs): explain checkout failures caused by local changes by @juliusmarminge in pingdotgg/t3code#23346
* fix(opencode): a newer model of another size no longer marks a current model legacy by @juliusmarminge in pingdotgg/t3code#40059
* fix(client): new threads from a grouped repository start in its root checkout by @Sidreyas in pingdotgg/t3code#37191
* fix(web): dismissing a local thread error no longer suppresses repeat errors by @charlesbine in pingdotgg/t3code#40042
* fix(web): the issue comment composer lines up with the chat composer by @PixPMusic in pingdotgg/t3code#39994
* fix(mobile): deduplicate Manage environment buttons and enlarge Add environment inputs by @juliusmarminge in pingdotgg/t3code#39992
* fix(mobile): enlarge touch targets in Model picker, Files, Terminal, Button, and ControlPill by @juliusmarminge in pingdotgg/t3code#40002
* chore(deps): upgrade Effect to 4.1.5 by @juliusmarminge in pingdotgg/t3code#40132
* fix(server): signed URLs are logged and traced with the token redacted by @juliusmarminge in pingdotgg/t3code#40133
* fix(mobile): eliminate duplicate menu buttons and hidden search headers on Android by @juliusmarminge in pingdotgg/t3code#39988
* fix(antigravity): show skills listed by file in manifests by @Lucenx9 in pingdotgg/t3code#40020
* fix(ci): agent context budget compares with the PR's own base, not a newer main by @juliusmarminge in pingdotgg/t3code#40071
* fix(mobile): Android composer blur no longer hides another field's keyboard by @juliusmarminge in pingdotgg/t3code#34001
* docs(skills): document running mobile:audit CLI in test-t3-mobile by @juliusmarminge in pingdotgg/t3code#40150
* test: stop testing that redaction config is set by @juliusmarminge in pingdotgg/t3code#40151
* fix(server): idle Git polls no longer re-read local status when no ref moved by @juliusmarminge in pingdotgg/t3code#40093
* fix(server): t3_thread_wait with untilOutput returns for a run never asked for a result by @juliusmarminge in pingdotgg/t3code#40137
* fix(mobile): Queued follow-up no longer shows a second Working row by @mwolson in pingdotgg/t3code#40072
* fix(client-runtime): recover thread messages after a failed resume by @juliusmarminge in pingdotgg/t3code#24583
* perf(server): ask npm once per global prefix for provider latest versions by @juliusmarminge in pingdotgg/t3code#40109
* fix(server): skip the image attempt for Claude models that rejected images by @juliusmarminge in pingdotgg/t3code#40087
* fix(antigravity): keep turns open when a background wake is still pending by @mkantautas in pingdotgg/t3code#39989
* fix(mobile): the iPad tab bar keeps its size on Usage by @juliusmarminge in pingdotgg/t3code#39995
* feat(server): detect Flutter project icons from web/favicon.png by @bramley-jetcharge in pingdotgg/t3code#29089
* fix(github): ci_logs explains why a check has no log by @juliusmarminge in pingdotgg/t3code#40156
* fix(opencode): custom models can go back to the default reasoning level by @juliusmarminge in pingdotgg/t3code#27333
* fix(web): screen readers can tell removed lines from added ones in diffs by @juliusmarminge in pingdotgg/t3code#40152
* fix(claude): keep truncated request, error, and snippet text valid Unicode by @rishabhx29 in pingdotgg/t3code#40075
* fix(web): guest share status expires at exact timestamp instead of start of minute by @charlesbine in pingdotgg/t3code#40131
* fix(web): Option + a letter records the letter, not the macOS glyph by @juliusmarminge in pingdotgg/t3code#39967
* fix(mobile): the iOS status pill stays below the header above a tall question by @Jacksondr5 in pingdotgg/t3code#40104
* fix(server): explain host CLI failures when PR watches stop by @ironyh in pingdotgg/t3code#35145
* fix(server): merged-worktree cleanup finds pull requests merged inside a fork by @juliusmarminge in pingdotgg/t3code#40110
* fix(mobile): iOS settings switches center on rows with a description by @Jacksondr5 in pingdotgg/t3code#40128
* fix(server): storage cleanup removes worktrees with dangling gitlinks by @iamshadmantaqi in pingdotgg/t3code#40119
* feat(projects): a project covers several repositories by @juliusmarminge in pingdotgg/t3code#35925
* fix(server): tell threads when a provider runtime exit kills their background work by @juliusmarminge in pingdotgg/t3code#40170
* fix(client-runtime): don't ask for a provider update the install channel lacks by @juliusmarminge in pingdotgg/t3code#39966
* fix(mobile): reloading changes restarts the diff from page one after a failed page by @juliusmarminge in pingdotgg/t3code#40171
* perf(server): resolve a branch's base once while its refs and config are unchanged by @juliusmarminge in pingdotgg/t3code#40125
* fix(web): hub accounts whose usage read fails no longer vanish silently by @dw3105 in pingdotgg/t3code#36939
* fix(client-runtime): @ menu offers machines the thread's server links to by @juliusmarminge in pingdotgg/t3code#40191
* fix(server): a desktop preview resize the window never draws now fails by @juliusmarminge in pingdotgg/t3code#40081
* fix(antigravity): skills.json ~/ entries no longer list skills agy never loads by @juliusmarminge in pingdotgg/t3code#40194
* perf(server): branch PR lookups start 9 git processes instead of 14 by @only21mil in pingdotgg/t3code#40153
* fix(server): terminal history drops OSC 4 palette queries by @viktorce in pingdotgg/t3code#40149
* fix(web): show custom theme backgrounds on the empty New thread screen by @AymanKhan9 in pingdotgg/t3code#40069
* fix(server): reuse an unchanged local Codex's version check across restarts by @juliusmarminge in pingdotgg/t3code#40176
* fix(client-runtime): recognize thought_level and role: reasoning in effort summaries by @itsthecsguy in pingdotgg/t3code#40136

## New Contributors
* @minghinmatthewlam made their first contribution in pingdotgg/t3code#33588
* @floklein made their first contribution in pingdotgg/t3code#39488
* @hosmelq made their first contribution in pingdotgg/t3code#32989
* @vycdev made their first contribution in pingdotgg/t3code#28546
* @xiangyingchang made their first contribution in pingdotgg/t3code#36643
* @KelvinChung2000 made their first contribution in pingdotgg/t3code#29261
* @freezscholte made their first contribution in pingdotgg/t3code#31432
* @angusfretwell made their first contribution in pingdotgg/t3code#28597
* @pfaisant made their first contribution in pingdotgg/t3code#33286
* @vifar made their first contribution in pingdotgg/t3code#22650
* @kobimic887 made their first contribution in pingdotgg/t3code#30925
* @merrkry made their first contribution in pingdotgg/t3code#24841
* @osmelmora made their first contribution in pingdotgg/t3code#24888
* @bramley-jetcharge made their first contribution in pingdotgg/t3code#29089
* @ironyh made their first contribution in pingdotgg/t3code#35145
* @AymanKhan9 made their first contribution in pingdotgg/t3code#40069
* @itsthecsguy made their first contribution in pingdotgg/t3code#40136

**Full Changelog**: pingdotgg/t3code@v0.1.12-nightly.20261121.5024...v0.1.12-nightly.20261121.5038

</details>


Upstream release: https://github.com/pingdotgg/t3code/releases/tag/v0.1.12-nightly.20261121.5038
jappyjan added a commit to jappyjan/t3code that referenced this pull request Nov 21, 2026
Upstream merged the multi-repo series (pingdotgg#35925) with numbered migrations 104 and 105 for the
tracked folder column and the task_folders table, so the fork module no longer creates them.
Old-shape task folder tables from the earlier port are set aside before the numbered
migrations, since 105 indexes a column they lack. The checkpoint scope repair still runs
after them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cl0ckwork added a commit to cl0ckwork/t3code that referenced this pull request Nov 21, 2026
Merges 213 upstream commits (through pingdotgg#40309).

Conflicts were in the thread-scoped review RPCs. Upstream's pingdotgg#40211 completion token and
pingdotgg#40216 reused merge base are now fields of the fork's threadId-based review requests.
Upstream's multi-repository projects (pingdotgg#35925) let the Diff panel and Changes row pick a
repository. The fork carries that as an optional repositoryCwd, which ReviewService accepts
only inside the thread workspace, project root, tracked folders, or task folder root.

Also aligns the Codex replay fixture with the adapter's real order: the thread name is set
before selected skills resolve (this fork test had failed since upstream pingdotgg#37442).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jappyjan added a commit to jappyjan/t3code that referenced this pull request Nov 21, 2026
Upstream merged the multi-repo series (pingdotgg#35925) with numbered migrations 104 and 105 for the
tracked folder column and the task_folders table, so the fork module no longer creates them.
Old-shape task folder tables from the earlier port are set aside before the numbered
migrations, since 105 indexes a column they lack. The checkpoint scope repair still runs
after them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
vedprakash2302 added a commit to vedprakash2302/Cody that referenced this pull request Nov 22, 2026
Brings in 171 upstream commits through c7a9fba (pingdotgg#38542).

- Multi-repository projects (pingdotgg#35925): Cody's worktree base ref rides beside upstream's repositories in planComposerTurn, useComposerSend, mobile projectThreadStartTurn and outbox delivery, and applies only to Git-repository projects.
- Final-answer instruction stays inside runtimeInfo after upstream turned buildRuntimeInstructions into a joined list with workspace notes; budget keeps Cody's Claude and Codex bytes and takes upstream's MCP tool size.
- Changes panel inline patch (includeSmallPatch) kept beside upstream's tracked-preview reuse (pingdotgg#40211) and indexed-stat reuse (pingdotgg#40304); the response carries Cody's incomplete rule and upstream's completionToken.
- Diff panel: Cody's deferred-patch handling moved into the non-section branch of upstream's per-repository turn sections.
- GitActionsControl: Cody's includeSmallPatch-while-panel-shows-branch kept under upstream's renamed changesStatusRevision.
- sideChatTurnWiring test provides upstream's new TaskFolders dependency.
- Sync notes: multi-repo base ref and inline patch resolutions.
jappyjan added a commit to jappyjan/t3code that referenced this pull request Nov 22, 2026
Upstream merged the multi-repo series (pingdotgg#35925) with numbered migrations 104 and 105 for the
tracked folder column and the task_folders table, so the fork module no longer creates them.
Old-shape task folder tables from the earlier port are set aside before the numbered
migrations, since 105 indexes a column they lack. The checkpoint scope repair still runs
after them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ChristopherPHolder added a commit to ChristopherPHolder/t3code that referenced this pull request Nov 22, 2026
…ht-context

main lets a project cover several repositories (pingdotgg#35925), so a turn diff
can now carry one patch per tracked repository beside the thread
folder's own. The turn diff's source still names the revisions of the
thread folder's patch. Web and mobile load whole files from it only for
a turn with no repository patch; a turn that spans repositories keeps
its patch colours, as on main.
jappyjan added a commit to jappyjan/t3code that referenced this pull request Nov 22, 2026
Upstream merged the multi-repo series (pingdotgg#35925) with numbered migrations 104 and 105 for the
tracked folder column and the task_folders table, so the fork module no longer creates them.
Old-shape task folder tables from the earlier port are set aside before the numbered
migrations, since 105 indexes a column they lack. The checkpoint scope repair still runs
after them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
joaoheusi added a commit to joaoheusi/t3code that referenced this pull request Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-context-increase Accepts agent context growth over main in the Agent context budget check. size:XXL 1,000+ changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant