Repository navigation
Description
Area
Docs and apps/server: automatic settlement of pinned threads.
Steps to reproduce
- Keep automatic settlement on in Settings → Threads (the default settles threads after seven days of inactivity and when their pull request merges).
- Pin a thread that is otherwise eligible: idle past the inactivity window, or with a merged pull request.
- Let the settlement sweep run, then compare the result with the thread sidebar guide.
Expected behavior
The user guide and the server agree on whether a pin keeps a thread out of automatic settlement.
Actual behavior
The guide says:
Pinning does not prevent automatic settlement. Settling a thread removes its pin.
The server never auto-settles a pinned thread. It filters pins out in two places:
isAutoSettlementCandidatereturns false whenpinnedAtis set.- The settlement candidate query skips rows whose
$.pinnedAtis set.
Manual settle still works on a pinned thread and removes its pin. The per-thread Auto-settle behavior → Never option is a separate control for keeping one thread out of automatic settlement.
History
- fix(clients): move settled pinned threads into the settled section #7969 (merged 2026-08-23) moved automatically settled pinned threads into Settled on web and mobile. Pinned threads did auto-settle at that point.
- docs: focus user guides on features and workflows #9756 (2026-09-04) wrote the current docs sentence.
- [Feature]: Prevent pinned threads from auto-settling #11711 (2026-09-14, labelled
accepted) asked for the opposite: pinned threads never auto-settle, manual settle still unpins, and the docs change to say pinning prevents automatic settlement. Its implementation, feat(settings): pinned threads stay active unless auto-settle pinned threads is on #11712, was closed during the V2 freeze. - feat(orchestrator): introduce new orchestrator #2829 (V2 orchestrator, 2026-10-02) closed [Feature]: Prevent pinned threads from auto-settling #11711 and added the pin check. The docs sentence was not updated.
No commit after #2829 changes how settlement treats pins.
Decision needed
Which behavior is intended?
- Pins block automatic settlement (current server behavior, as [Feature]: Prevent pinned threads from auto-settling #11711 asked). Update the docs sentence to say pinned threads don't settle automatically, and that settling one yourself removes its pin.
- Pins don't block automatic settlement (current docs, pre-V2 behavior). Remove the pin filter from
isAutoSettlementCandidateand from the candidate query. Automatic settlement already goes throughthread.settle, which clearspinnedAt, so the second docs sentence holds with no other change. Auto-settle behavior → Never stays the way to keep a thread out.
I can open the PR for either one once there's a decision. The open issue status automation PR, #39940, copies the same pin exclusion for issue-driven settlement and will follow whichever way this goes.
Environment and impact
mainat9fdcd08835ebd15e134b6abb7e5a65031b1f1266. Found by reading the source and history; not reproduced in a running app.- Minor. Someone who follows the guide expects an idle pinned thread to settle, and it stays pinned instead. Agents that answer from the user guide give the same wrong answer.
Search and scope
Searched open issues and PRs for pinned threads and automatic settlement. Only #11711, now closed, covers this behavior.
Activity
juliusmarminge commentedon Nov 21, 2026
I tried to reproduce this on the current build and could not.
On origin/main fcf5097: docs/user/thread-sidebar.md:82 still reads 'Pinning does not prevent automatic settlement. Settling a thread removes its pin.' The server leaves pinned threads out of auto-settlement in ThreadSettlementService.ts:166 (isAutoSettlementCandidate returns false when pinnedAt is set) and ProjectionStore.ts:8844 (the candidate query requires $.pinnedAt IS NULL). After
vp i, apps/servervp test run src/orchestration-v2/ThreadSettlementService.test.tspassed 49/49; one of its cases adds a pinned child thread (test line 1037) among the settlement candidates. I did not trace what that case asserts about the pinned thread. I did not start the app or run a sweep: the issue is the docs disagreeing with the server, and the server side was read from the code and backed by its existing test.Closing as not planned. If it still happens for you, reply with the exact steps and the version you are on and it will be looked at again.