Open History to see the last commit
1# Settings and project overrides
2
3On web and desktop, the "Applying settings for …" sentence at the top of Settings pages picks
4the project and environment a change applies to. Pages that only hold device preferences, such as
5Appearance, don't show it. They start at **All projects** and **All environments**
6and stay selected as you move between categories or search for a setting.
7
8Preferences saved on this device, such as appearance, confirmations and browser profiles, always
9show and ignore the selection. Everything else is stored on a server. Choose one environment to
10edit its settings, or leave **All environments** to edit every connected environment at once.
11Offline environments keep their current values; this is a bulk edit, not a synced global default.
12
13Choose a project to override settings for it on the selected environments. A layers icon beside
14each server row's title shows where the value comes from: the built-in default, the environment,
15or a project override. Click it to see that chain on every selected environment. An override can
16be reset to inherit again. Settings that cannot be overridden by a project are shown read-only
17while a project is selected.
18
19When the selected environments disagree, the control shows **Mixed** in place of a value and the
20layers icon turns amber. Picking a value applies it to every selected environment.
21
22Changing an environment value never touches a project's own override. When projects override the
23setting you are editing, the layers icon counts them and the chain lists each one with its value:
24click a project to jump to it, or **Reset all** to make those projects follow the environment
25again.
26
27Providers and diagnostics are per machine: they show one environment at a time, the primary
28one until you pick another. Every other setting fans out to the selection.
29
30On mobile, open **Settings** and use the filter in its header to choose connected environments
31and a project. The filter stays available in server-setting pages. With **All projects** selected,
32the **Server settings** categories and auto-settle controls in **Thread behavior** edit the
33selected environments' defaults. Choosing a project edits its overrides on the selected
34environments. Use **Use defaults** in a page to remove that page's project overrides.
35Open **Settings → Projects & threads → Overview** to rename the project across its selected
36connected checkouts and see where those checkouts live.
37Settings that are environment-wide stay read-only while a project is selected. When selected
38targets disagree, a control shows **Mixed** until you choose one value. Appearance, keyboard,
39and other phone-only settings ignore the filter.
40
41## Worktree branch names
42
43In **Settings → Source Control → Worktree branch naming**, choose a static prefix,
44a model-selected semantic prefix such as `feat/` or `fix/`, or custom instructions
45for the complete name. The static prefix defaults to `t3/`; a trailing slash is
46optional, and an empty prefix adds nothing. Invalid characters in a static prefix
47are replaced with hyphens. Custom instructions are appended to
48the naming prompt and can specify issue IDs, namespaces, and casing.
49
50These settings apply to automatically named new worktree branches. Select a project
51to override its environment defaults. Worktree directories keep their original names.
52If generation fails, or a custom name is invalid or already taken, the temporary
53branch name remains.
54
55## Scheduled tasks on mobile
56
57Open **Settings → Scheduled tasks** to create recurring tasks or manage existing
58ones across your connected environments. Use the settings filter to narrow the
59list by environment or project. Each task runs on the environment you choose,
60using its project, model, and workspace settings. Fixed-time schedules use that
61environment's time zone, which may differ from your phone's.
62
63You can edit, pause, resume, run immediately, or delete a task from the list.
64Webhook tasks only run when their URL is called, so they can't be run
65immediately.
66Leaving an edited form asks before discarding unsaved changes.
67
68## Webhook automations
69
70In **Settings → Scheduled tasks**, choose **On webhook**
71as a task's schedule to run it whenever another service calls its URL, such as
72GitHub on a new pull request or a CI job that failed. A public URL needs a
73[T3 Connect](remote-access.md) managed tunnel; after you save the task, copy
74its URL from the editor. Without one, the editor shows only the URL's path.
75**Rotate** replaces the URL and the old one stops working.
76
77The prompt decides what the agent sees. Placeholders pull values out of the
78request: `{{body.path}}` for a JSON or form field, `{{headers.name}}`,
79`{{query.name}}`, `{{body}}` for the raw body, and `{{request}}` for everything.
80For example, `Review this PR: {{body.pull_request.html_url}}` sends only the
81pull request link. A placeholder with no value is left empty.
82
83For GitHub, turn on **Require signature**, keep the header
84`x-hub-signature-256`, hex encoding and the `sha256=` prefix, and enter the
85same secret in the repository's webhook settings with content type
86`application/json`. Requests without a valid signature are rejected. Set this
87up on desktop or web; mobile keeps an existing signature check but can't turn
88one on.
89
90On desktop and web, pick **Deliveries** from a task's menu to see recent
91requests and the prompt each one produced.
92
93If the environment is offline, the sender gets an error and nothing runs;
94redeliver from the sender, such as GitHub's **Recent Deliveries**, once it is
95back. To have T3 Connect keep requests instead, turn on **Hold webhooks while
96offline** in **Settings → Connections**. T3 Connect then stores requests to a
97T3 Connect URL for up to 24 hours and delivers them when the environment
98returns. Leave it off if you don't want request bodies stored outside your
99machine. To skip requests that waited too long, set **Skip requests older
100than** on the task.
101
102## Defaults and inheritance
103
104General contains the model and workspace for new threads. Integrations controls agent browser
105access. Source Control contains automatic pull, the default pull request merge method and text
106generation. The same rows edit environment defaults or project overrides depending on the
107project crumb.
108
109The Project category, shown while a project is selected, holds the project's name, icon, actions,
110checkouts and removal. Actions belong to a project: editing them creates the project's own list
111on each selected environment, and reset returns to the environment's shared list. A project's
112`t3.json` actions can be imported there.
113
114Settings a repository can also declare in `t3.json`, such as the workspace for new threads,
115resolve in one order: a project override, then the environment setting, then `t3.json`, then the
116built-in default. Leave a setting on **Inherit** to let the next tier decide.
117Browser access changes apply when an agent session next starts.
118
119New worktrees initialize git submodules recursively. If that step is slow because the repository
120declares many nested submodules, set **Submodules** in **Settings → General** (with the project
121selected to override it there) to **Top level only** to stop at the ones the repository declares
122itself, or **Skip** to leave them for a setup script. It resolves in the same order as the
123workspace default: a `"worktreeSubmodules"` value in the `t3.json` of the branch being checked out
124applies when the project and environment are both on **Inherit**.
125
126## Worktree location
127
128New worktrees go in the `worktrees` folder of the T3 home directory. To put them somewhere else,
129such as another drive, set **Settings → Storage → Worktree location** to an absolute path like
130`D:\worktrees` or `~/worktrees`. The setting is per machine. Existing worktrees stay where they
131are, and cleanup covers both the default folder and the custom one.
132
133## Storage cleanup
134
135Open **Settings → Storage** to enable automatic cleanup on one machine or all connected
136environments. Policies are off by default and run on the server at startup, when changed, and
137hourly. Offline machines keep their existing policies.
138
139Select a project to set **Automatic worktree cleanup** to **Inherit**, **Off**, or **Custom**.
140Inherit follows each machine's rules; Off keeps that project's worktrees until you remove them
141manually. Custom applies separate worktree rules to the selected project or checkout. Browser
142captures and log retention remain machine-wide.
143
144Worktrees can be removed after a chosen number of inactive days, after merging, or when they
145have no commits beyond the default branch. Only T3-managed worktrees are eligible. Active
146sessions and shared worktrees prevent removal. **Keep worktrees with local changes** defaults
147to **Uncommitted changes**, which protects tracked edits and untracked files but deletes ignored
148files such as `.env` and build output. **Any local files** also protects ignored files other than
149`node_modules`. **Edited tracked files** protects only tracked edits and allows untracked and
150ignored files to be deleted. Branches and thread history stay; starting another turn recreates the checkout.
151Merge cleanup requires a merged pull request whose commits are included in the remote default
152branch. A squash or rebase merge on GitHub also counts when the pull request targeted the default
153branch and the worktree is still at the pull request's last commit.
154
155Enable **Delete worktrees with deleted threads** to remove safe worktrees after their last
156thread is deleted, including archived threads and worktrees left by earlier deletions. The
157server waits for sessions and terminals to stop and retries skipped worktrees after restart.
158Existing prompts for deleting a worktree manually remain available when this policy is off.
159
160Choose **Delete now** to run the enabled rules immediately. The latest results show which
161worktrees were removed or kept and why, plus any failures.
162
163Browser captures and rotated logs have separate retention periods. Expired capture links stop
164working. Current logs, message attachments, and browser profiles are kept.
165
166## Project icons
167
168Select the project and open Project to choose an icon, emoji, monogram, or image. The choice applies to
169every checkout in the project group and appears on connected clients. Choose **Automatic** to let
170T3 Code detect an icon again.
171
172Choose **Monogram** in the icon picker to set one or two letters or numbers and a color.
173
174When no image is found, web and desktop show a two-character monogram with a color
175from the icon palette, derived from the saved project name. For example, `Nebula` becomes `NA`,
176`Silver Orchard` becomes `SO`, and `M7 Forge` becomes `M7`.
177
178## Keep the default branch current
179
180In Source Control, enable **Automatically pull** to keep the default-branch checkout up to date
181with its configured upstream. Choose an environment to set the default or a project to override it.
182On mobile, use **Settings → Source control** to change selected environment defaults or project overrides.
183
184T3 Code only pulls when it can fast-forward and the checkout has no changed files, untracked files,
185or local commits. It skips checkouts on another branch or without an upstream. If a checkout has
186local work, resolve it yourself before automatic pulls can resume.