fix(settings): sync auto-settle and other shared preferences across environments (#9147)
Co-authored-by: Claude Fable 5.1 <[email protected]>
This commit is contained in:
1 parent
5014e5fcdd
commit
8efd4e95fc
10 files changed
+489
-44
No files matched your search
@@ -88,7 +88,10 @@ A turn is complete when its session leaves `running` status, projected by
|
||||
`settledTurnStateForSessionStatus` in [`projector.ts`][projector]. Checkpoint work settling later
|
||||
does not define turn end.
|
||||
|
||||
Thread settlement is server-owned. Per-environment settings control PR and inactivity settlement.
|
||||
Thread settlement is server-owned. Each server's own settings control PR and inactivity
|
||||
settlement. Those keys are user preferences, so clients write them to every connected environment
|
||||
(`SHARED_SERVER_SETTING_KEYS` in `packages/client-runtime/src/state/sharedSettings.ts`) and warn
|
||||
when a connected environment drifts.
|
||||
[`ThreadSettlementReactor`][settlement] checks threads at startup, when those settings change, and
|
||||
once per minute, including when no client is connected. It dispatches the guarded internal
|
||||
`thread.auto-settle` command, which uses the existing settlement event lifecycle. Automatic
|
||||
|
||||
@@ -10,16 +10,22 @@ confirmation applies to the sidebar controls, thread menus, and the `mod+shift+p
|
||||
Pinned threads still move to **Settled** when they become inactive. They also move when their pull
|
||||
request merges if **Auto-settle merged threads** is enabled.
|
||||
|
||||
Each environment owns its automatic settlement settings. The server checks them even when no web,
|
||||
desktop, or mobile client is connected. By default, it settles threads after three days without
|
||||
Each server stores its own copy of the automatic settlement settings and checks them even when no
|
||||
web, desktop, or mobile client is connected. By default, it settles threads after three days without
|
||||
activity and when their pull request merges. An eligible idle thread also settles when its pull
|
||||
request closes. An open pull request blocks inactivity settlement. Active work, pending input, and
|
||||
live background work keep the thread active. T3 Code settles from a closed or merged pull request
|
||||
only when its timestamp is not older than the user's latest activity. If that timestamp is not
|
||||
available, the inactivity rule still applies. A manual un-settle also keeps the thread active.
|
||||
Change these rules in **Settings > General** for the environment. A settings change affects future
|
||||
settlement and does not reopen a settled thread. Settings saved by older clients on one device no
|
||||
longer control this behavior.
|
||||
|
||||
Change these rules in **Settings > General**. The change is written to every environment you are
|
||||
connected to at that moment. An environment that is offline keeps its old value. When a connected
|
||||
environment holds a different value, **Settings > General** shows a warning that names it. Choose
|
||||
**Apply to all** to write your current values to every connected environment. The same applies to
|
||||
the new-thread workspace mode and the source control writing style.
|
||||
|
||||
A settings change affects future settlement and does not reopen a settled thread. Settings saved
|
||||
by older clients on one device no longer control this behavior.
|
||||
|
||||
When you un-settle a thread, it returns to the top of the active list so you can find it right
|
||||
away. Its timestamps do not change. Other threads keep their positions.
|
||||
|
||||
Reference in new issue
Block a user