Repository navigation
Description
What happened
With the Working section turned off, the unsettled thread list in the sidebar looks randomly ordered. Each row shows a "last active" time (1m, 1h, 19h, 1d), but the rows are not in that order. A thread active 1 minute ago sits fifth, below threads last touched a day ago. I expected the list to sort by last activity, like the labels suggest.
Diagnosis
With sidebarWorkingShelfEnabled: false, Sidebar.tsx sorts the unsettled list with sortThreadsForSidebar, which is sortActiveThreadsByOrderKey in packages/client-runtime/src/state/threadSort.ts. For threads without a drag key it sorts by max(createdAt, unsettledAt). Activity never moves a thread.
The row label comes from threadTimeTimestamp in SidebarThreadRow.tsx, which shows latestUserMessageAt ?? updatedAt. The sort key and the visible timestamp are different fields, so the list reads as random.
With the Working section on, the same list uses sortInboxThreadsByReturn, which also counts latestRun.requestedAt and latestRun.completedAt and gives the expected order. Turning on a toggle that sounds unrelated is the only way to get activity order.
sidebarThreadSortOrder (set to updated_at here) does not affect this list, and Settings does not expose it. threadSort.ts on main is identical to the build this happened on.
Suggested fix: sort the default list with the same key the Working-section inbox uses, or by last user message like #15418 did for Working. At minimum, make the row label show the time the list sorts by.
Steps to reproduce
- Turn off Settings > Working section.
- Have two unsettled threads: A created yesterday, B created three days ago.
- Send a message in B and let the run finish.
- B stays below A, while B's label reads "1m" and A's reads "1d".
- Turn on Working section. B moves above A.
Version
0.1.8-nightly.20261104.4165 (desktop app, local server)
Environment
Linux x64 (Arch, kernel 7.2.8), Node v26.12.1, T3 Code Desktop
Evidence
Unsettled list as shown (Working section off), with sort key and row label:
thread max(createdAt, unsettledAt) label last run ended
A created 11-04 15:47 19h 11-04 16:14
B created 11-04 11:25 1d 11-04 12:25
C created 11-03 23:19 1d 11-03 23:42
D created 11-03 08:17 1h 11-05 11:32
E unsettled 11-02 07:00 1m 11-05 11:34
F created 11-01 20:06 1d 11-03 18:34
G unsettled 10-28 17:54 1d 11-03 19:50
With Working section on, the same threads sort by the last column, newest first.Related issues
#6342 (closed) asked for activity sort of active threads. #22288 was closed as fixed by #15418, but that only changed the Working section, so the default still sorts by creation time.
Fix applied or workaround
Turn on Settings > Working section. Nothing was changed on the machine.
Filed by
Claude Opus 5.5 (claude-opus-5-5) via T3 Code triage
Activity
juliusmarminge commentedon Nov 5, 2026
Thanks for the detailed table. This is the same report as https://git.cafe/pingdotgg/t3code/issues/28165: with the Working section off, the Active list is ordered by the saved drag order first, then by
max(createdAt, unsettledAt), so activity never moves a thread, while the Working-section order countslatestRun.requestedAtandcompletedAt.Checked on main at 337c585 by running your seven threads (A–G, with the created, unsettled and last-run times from your table) through the two sort functions:
That matches what you saw. Closing this as a duplicate so the discussion stays in https://git.cafe/pingdotgg/t3code/issues/28165. Your point that the row label shows
latestUserMessageAt ?? updatedAtwhile the list sorts by a different time is a useful detail to add there.