Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): a leading spacer keeps folder row items right-aligned #46102

Opentarasmychats(GitHub profile, opens in a new tab)wants to merge 4 commits intomain fromrefs/pull/46102/headopened View on GitHub

Problem

With threads grouped into project folders, a spacer placed first in a row line is dropped, so everything after it jumps to the left. For example, with Environment hidden and the bottom line set to space, Running terminals, Running subagents, Pull request, Linked issues, Provider, pull requests, issues and the provider render on the left in the sidebar, while the Sidebar thread rows preview (card rows) shows them on the right. Showing Environment again moves them back to the right.

Steps: group the sidebar into project folders, open Settings → Sidebar thread rows, move Environment to Hidden so the bottom line starts with the spacer, and look at a folder thread that has a pull request.

Change

Folder rows join every line except the title's into one and drop the items they draw themselves (project icon and name, title, time). withoutStraySpacers then removed every spacer at the start of the joined line, including one the user put there on purpose. The top line's spacer (between project name and time) is stranded once the folder drops its neighbours, and the bottom line's own leading spacer comes right after it, so both were removed.

joinSidebarRowLines now cleans spacers per line before joining: a spacer goes only when an item it pushed against was dropped, or when it would sit next to another spacer. A spacer that already began or ended its line in the user's layout stays. Card rows don't take this path, and the default layout renders the same as before.

Scope

Small fix for an obvious bug: the saved layout and its preview put these items on the right, and folder rows ignore that only when the line happens to start with the spacer. Web and desktop only; mobile has no folder rows.

Verification

  • Added sidebarRowLayout.test.ts. The leading-spacer case fails on main (expected [ 'terminals', 'pullRequest', …] to deeply equal [ 'spacer', 'terminals', …]) and passes with the fix; the second case keeps the stray-spacer cleanup the old filter was written for.
  • In the web app against an isolated dev state, with folder rows, Environment hidden and the bottom line space, Branch (icon), …, Provider (branch stands in for a pull request so the demo threads have bottom-line content):
BeforeAfter
beforeafter
  • Also checked in the same session that the default layout (Environment, space, …) still puts Environment left and the icons right, and that a bottom line with no spacer stays left-aligned.
  • Checked on a copy of my own data with real pull request and issue badges: they now sit on the right.

Fixed with Claude Opus 5.5 in Claude Code (running inside T3 Code).

🤖 Generated with Claude Code

    1. Pushedcf97fc8

    2. juliusmarminge added labelstakeover:needs-julius

    3. juliusmarminge removed labelstakeover:in-progress

    4. AndyZHENG0715(GitHub profile, opens in a new tab)commented

      +1 — hitting this on T3 Code 0.1.15-nightly.20261206.5799 with Boring sidebar + Two-line folder rows.

      With Branch and worktree placed on the top line before the spacer (Project icon, Project name, Branch, Spacer, Time) and Environment, Spacer, ..., Provider on the bottom line, flattening the two lines leaves the top line's stranded spacer between Branch and Environment, pushing Environment awkwardly into the middle of line 2. Dropping the spacer whose dropped neighbor was time in joinSidebarRowLines fixes this case cleanly too.

      Sidebar showing Boring sidebar and Two-line folder rows with stranded spacer

Sign in to join this conversation.