Repository navigation
Description
apps/web: boring sidebar disables drag reordering even when no project folders render
Summary
Boring sidebar (Settings → Labs → "Boring sidebar (group by project)") disables all manual drag-and-drop reordering: threads inside project folders and project folder order cannot be arranged by hand. Worse, the drag-disable gate fires unconditionally whenever the setting is on — even when zero folders render, in which case it removes working drag-reorder for no benefit.
Environment
- T3 Code version: 0.1.7 (
main @ 6577c6b618, brancht3/fix-sidebar-group-reorder, clean tree) - OS: Linux 7.0.0-1014-gcp (linux x64)
- App surface: web (Chromium) and desktop app — boring sidebar is a web/desktop Labs setting; mobile has no
boringSidebar*refs and is unaffected - Toolchain: Bun 1.4.4
- Area: apps/web
- Impact: Minor bug or occasional failure (Labs beta feature; non-boring sidebar unaffected)
Reproduction
Preconditions: boringSidebarEnabled: true (Settings → Labs); project scope = All projects; thread search empty; sidebarProjectSortOrder at default updated_at (Settings → General → Sidebar → Project order); no project pinned. Steps 2–3 need two projects with active threads so folders render; step 4 needs all threads pinned/snoozed/settled so zero folders render.
- On web or desktop, enable Settings → Labs → Boring sidebar (group by project).
- With two projects holding active threads, press and drag a row inside a project folder — observed: nothing lifts and no insertion line appears (drag is pointer-on-row,
apps/web/src/components/sidebar/SidebarThreadRow.tsx:974-988; no row renders a grip in any mode), no drop indicator appears (sortableDisabledis true,apps/web/src/components/Sidebar.tsx:3345-3350, gate at:3346). - Hover a project folder header and attempt to drag it above/below another folder — observed: the row is a toggle button (
SidebarProjectFolderHeader.tsx:67-99) plus a hover New-thread button, neither draggable; no drop target appears. - Narrow bug: with all threads pinned/snoozed/settled (zero folders render, no project pinned), attempt to drag a pinned row — observed: still non-draggable, because the gate is
projectFolders !== nullrather thanhasProjectFolders(Sidebar.tsx:1917).
Expected Behavior
(a) Folder headers should be draggable to reorder projects when sidebarProjectSortOrder is manual (feasible: projectOrder + reorderProjects already persist and reach folder order via useSidebarProjectGroups.ts:18-42 → scopeGroups → folderGroups; note pickableProjectGroups forces pinned-first, packages/client-runtime/src/state/projectGrouping.ts:251-256, so pinned folders would still lead).
(b) Threads within a folder should support manual order: stop forcing send order in folders (Sidebar.tsx:485 → 678-679) and sort by orderKey instead — no new storage needed, active threads already carry activeOrderKey (packages/contracts/src/orchestrationV2.ts:492,2148) with a thread.active.reorder command and sortActiveThreadsByOrderKey (packages/client-runtime/src/state/threadSort.ts:298), which is what the normal sidebar uses. Accepting this is a deliberate product change: Sidebar.tsx:355-356 documents that folders list by latest message on purpose.
(c) Cross-folder thread "moves" are project reassignment, not reorder, and are out of scope here.
At minimum (the bug slice): gate sortableDisabled on hasProjectFolders (Sidebar.tsx:1917) instead of projectFolders !== null, so drag survives when no folder renders — today pinned/snoozed/settled rows lose drag for nothing, and active rows are skipped entirely when projectFolders is non-null (Sidebar.tsx:3457).
Actual Behavior
Nothing is draggable in boring mode. sortableDisabled is projectFolders !== null || … (apps/web/src/components/Sidebar.tsx:3345-3350, gate at :3346), and projectFolders is non-null whenever the setting is on (Sidebar.tsx:523-526, 1339-1344), so pinned, active, snoozed and settled rows all stop accepting drags — even when no folder actually renders (hasProjectFolders at Sidebar.tsx:1917 is not used for this gate). Active rows are skipped in the flat list (Sidebar.tsx:3457) and drawn inside folder blocks at Sidebar.tsx:3461-3484 (placeholder branch :3461, headers :3464, rows :3476-3482, block closes :3485) instead. Folder headers have no drag handle and no menu equivalent (apps/web/src/components/sidebar/SidebarProjectFolderHeader.tsx:63-119, toggle button :67-99 plus hover New-thread button; folder menu is New thread / Copy path / Pin / Project settings, Sidebar.tsx:1252-1287). Docs state the limitation: "In this mode you cannot drag threads, and the Working section is off" (docs/user/thread-sidebar.md:159-160) — this report keeps the narrow gate bug (step 4) separate from that documented intent. Within folders, order is by last send, not saved order (Sidebar.tsx:485 → 678-679 via sortWorkingThreadsBySend), so the user's existing saved active (orderKey) order is ignored while the mode is on (nothing resets the keys; they are simply not consulted). Project folder order comes from pickableProjectGroups (pinned first, packages/client-runtime/src/state/projectGrouping.ts:251-256, applied at Sidebar.tsx:1081) and sortSidebarV2ProjectGroups (Sidebar.logic.ts:1306-1321); note the setting's own UI description says "Order of projects in the sidebar project picker and command palette" (SettingsPanels.tsx:844), so honoring it for folders is a small scope addition. Manual order is read when sidebarProjectSortOrder is manual (apps/web/src/hooks/useSidebarProjectGroups.ts:18-42, Sidebar.logic.ts:1250-1252) but projectOrder has no writer at all — reorderProjects (apps/web/src/uiStateStore.ts:387-429) has no production caller (only its unit test); the store action at uiStateStore.ts:439/461-464 is likewise unused, so Manual is selectable but has no effect from any UI. Related: #27062 ("Manual" project order can no longer be changed after the legacy sidebar was removed) covers the same reorderProjects-has-no-caller root cause for project ordering generally; this issue's folder-drag ask (a) overlaps it, while the thread-drag disable and zero-folder gate bug are new here.
Additional Context
Thread reordering already exists and is order-key based: reorderPin / reorderActive (apps/web/src/hooks/useThreadActions.ts:301-305, fns at 806/824) plus planSidebarThreadDrop (Sidebar.logic.ts:345), so within-folder reordering needs no new contract. Project manual order is persisted and honored but unwritable: projectOrder + reorderProjects (uiStateStore.ts:387-429) and SidebarProjectSortOrder (packages/contracts/src/settings.ts:72-74, default updated_at), exposed as Settings → General → Sidebar → Project order → Manual (route _chat.settings.general.tsx, row SettingsPanels.tsx:845-884, description at :847), which grouped mode already honors for folders — the gap is only that nothing can populate projectOrder. Note the cross-client constraint in Sidebar.tsx:676: "Availability gates dragging only; sorting must stay consistent across clients" — any fix must keep order-key sorting canonical. Suggested scope: the (a)/(b)/gate fixes in Expected; cross-folder moves excluded.
Workaround: turn boring mode off to restore drag-reorder, at the cost of losing project grouping.
I searched existing issues and did not find a duplicate. Logs: none (UI limitation, no errors). Attachments: none — file:line refs above serve as evidence.
Activity
fix(web): boring sidebar keeps drag reorder when no folder renders
zbynekwinkler commentedon Nov 10, 2026
I’m also affected by the lack of manual thread ordering within project folders. I’m using T3 Code 0.1.7 on Linux, with both the website and desktop app connected to a server running as a service.
Stable ordering matters because I need to control my attention. When activity moves threads around or brings them into view, it pulls my attention toward work before I’m ready for it. When I choose to return to something, I need to find it where I left it. Position is part of how I remember my work, and I deliberately limit concurrent work to what I can keep track of on screen.
My preferred workflow is a persistent hierarchy:
I really enjoyed working with Herdr because its worktree tree let me keep multiple threads on the same worktree neatly tucked inside that hierarchy.
The email inbox analogy doesn’t fit how I work. I want to decide when to inspect a thread’s status; activity shouldn’t rearrange my workspace to get my attention.
For this issue, manual ordering within project folders that persists independently of activity would be a valuable improvement. Turning off project grouping isn’t a useful workaround for me because the hierarchy is essential too. Grouping threads under worktrees would be a further improvement, potentially a separate feature request.
Prepared with GPT-6 in Codex through T3 Code triage.
0xPhaze commentedon Nov 12, 2026
+1, same experience here. I use the boring sidebar because I want threads grouped by project, but within each folder the threads keep reshuffling as activity happens, and the newest one always jumps to the top. I find it really disorienting: I lose track of where a thread was and have to scan the folder again every time.
What I'd like is a fixed order inside project folders: threads stay where they are (or where I drag them) and activity doesn't move them. Status badges are enough to tell me something changed. Even just an option to sort folders by creation time instead of by last message would help a lot.
Right now the only way to get a stable, manual order is to turn the boring sidebar off, which means giving up the project grouping. I'd like to have both.
IsaacCheng9 commentedon Nov 21, 2026
+1 – the boring sidebar is great to maximise screen real estate, so this would be a great change for parity with non-boring mode.
micahdaigle commentedon Nov 22, 2026
+1. AND I'd like to be able to pin threads (which is really just a one-click way of dragging to the top) without them leaving the hierarchy. Pinning should just move a thread to the top of its project.
Shresth-Garg commentedon Nov 22, 2026
This affects me too. In the Boring sidebar, when I send a message to a thread, it jumps to the top of the project folder. With several threads in the same project, I keep losing my place. I’d like to set their order once and have them stay there as they start and finish working.
Haritan4141 commentedon Dec 1, 2026
+1, I would really appreciate this feature.
I've recently switched to T3 Code as my main AI agent environment across three Windows PCs, and I manage many projects and threads using the Boring sidebar.
Being able to manually reorder project folders by drag and drop, just like in the Codex desktop app, would make project management much easier.
Manual thread ordering within each project and preserving the chosen order across app restarts would also be very helpful.
I would love to see PR #42216 included in a future stable release.
Thank you for your work on T3 Code!