Skip to content
Source
Sign inSign up
pingdotgg/t3code

Pure black dark theme #4068

Closedt3dotgg(GitHub profile, opens in a new tab)wants to merge 16 commits intomain fromt3code/cool-black-redesignopened View on GitHub

Dark canvas goes from #161616 to pure black with raised card surfaces, a light primary, and a rounder composer.

Before

before

After

after


Note

Low Risk Visual and CSS token changes only; no auth, data, or business logic affected.

Overview Dark mode shifts from charcoal (#161616) to a pure black canvas, with boot splash, theme-color, and CSS tokens updated so --background is black and card/popover surfaces use raised oklch grays instead of neutral mixes.

Primary actions in dark mode flip to a light primary on dark text (--primary near white), and focus rings move to a white alpha instead of the old blue primary.

UI polish includes a rounder chat composer (20px radii), stronger composer glass (82% card mix), sidebar v2 using dark:bg-card on the black canvas, user message bubbles with translucent white fill and no border in dark, terminal fallback background black, and a split-button border tweak on Implement actions in dark.

Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 70d022da5d0378faac493a398b66488a23c31c7c. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).

Note

Add pure black dark theme and Sidebar v2 beta with thread settling

  • Changes the dark mode background to pure black (#000000) across index.html and index.css, updating CSS variables for contrast, opacity, and composer glass opacity.
  • Introduces a new SidebarV2 component (SidebarV2.tsx) behind a sidebarV2Enabled client setting, rendering animated card-based thread rows with visual status indicators ordered by creation time.
  • Adds thread settling logic: effectiveSettled in threadSettled.ts marks threads as settled based on archive state, PR merge/close state, or configurable inactivity (sidebarAutoSettleAfterDays, default 3, range 1–90).
  • Adds a /settings/beta route with controls for toggling sidebar v2 and configuring the auto-settle inactivity period; mobile gets a matching Beta section in settings.
  • On mobile, HomeScreen renders a merged live + archived thread list when threadListV2Enabled is set, with a settled tail behind a divider, optimistic hold for newly settled threads, and settle/unsettle swipe actions.
  • startNewThreadInProjectFromContext no longer passes branch/worktree context when the target project differs from the current context.
  • Behavioral Change: dark mode backgrounds are now pure black by default, which may affect users with system-level dim/contrast adjustments.
📊 Macroscope summarized 70d022d. 31 files reviewed, 0 issues evaluated, 0 issues filtered, 0 comments posted

🗂️ Filtered Issues

No issues evaluated.

    1. Important

      Review skipped

      Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

      ⚙️ Run configuration

      Configuration used: Repository UI

      Review profile: CHILL

      Plan: Pro

      Run ID: 884b49b7-44cc-4e0a-a502-44e868c0bf11

      You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

      Use the checkbox below for a quick retry:

      • 🔍 Trigger review
      ✨ Finishing Touches
      🧪 Generate unit tests (beta)
      • Create PR with unit tests
      • Commit unit tests in branch `t3code/cool-black-redesign`

      Comment `@coderabbitai help` to get the list of available commands.
    2. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted

    3. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Approvability

      Verdict: Needs human review

      2 blocking correctness issues found. Diff is too large for automated approval analysis. A human reviewer should evaluate this PR.

      You can customize Macroscope's approvability policy. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    4. chiqors(GitHub profile, opens in a new tab)commented

      It would be great to add a Project Filter dropdown to the new sidebar v2 to help manage and isolate threads (i might be wrong to put comment in this PR, but just let you know).

      Right now, as the number of threads grows, it gets difficult to focus on specific workstreams. Adding the ability to filter by project (e.g., project-a, project-b, project-c) would significantly improve navigation and reduce noise.

      CleanShot 2026-07-18 at 17 19 22 CleanShot 2026-07-18 at 17 17 22
    5. @@ -0,0 +971,21 @@
      971+ // when this was the last active one. Snapshot the target before the
      972+ // settle mutates the partition. Background settles never navigate.
      973+ let navigateAfterSettle: (() => void) | null = null;
      974+ if (routeThreadKey === threadKey) {
      975+ const orderedKeys = orderedThreadKeysRef.current;
      976+ const settledKeys = settledThreadKeysRef.current;
      977+ const currentIndex = orderedKeys.indexOf(threadKey);
      978+ const nextCardKey =
      979+ currentIndex === -1
      980+ ? null
      981+ : ([
      982+ ...orderedKeys.slice(currentIndex + 1),
      983+ ...orderedKeys.slice(0, currentIndex),
      984+ ].find((key) => !settledKeys.has(key)) ?? null);
      985+ const nextThread = nextCardKey ? threadByKeyRef.current.get(nextCardKey) : null;
      986+ navigateAfterSettle = nextThread
      987+ ? () => navigateToThread(scopeThreadRef(nextThread.environmentId, nextThread.id))
      988+ : () => void router.navigate({ to: "/" });
      989+ }
      990+ const result = await settleThread(threadRef);
      991+ if (result._tag === "Failure" && !isAtomCommandInterrupted(result)) {
      macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      🟡 Medium components/SidebarV2.tsx:991

      attemptSettle treats an interrupted settleThread result as a success: when result._tag === "Failure" and isAtomCommandInterrupted(result) is true, the failure branch is skipped, so the optimistic settledHolds entry stays in place, refreshArchivedThreadsForEnvironment runs, and navigateAfterSettle fires — navigating the user away from a thread whose settle was interrupted, not completed. Every other stateful call site in this file returns before its success-side effects when the result is an interrupted failure. The attemptSettle callback should remove the hold and skip navigation for any failure, while still suppressing the toast for interruptions.

      🚀 Reply "fix it for me" or copy this AI Prompt for your agent:
      In file @apps/web/src/components/SidebarV2.tsx around line 991:
      
      `attemptSettle` treats an interrupted `settleThread` result as a success: when `result._tag === "Failure"` and `isAtomCommandInterrupted(result)` is true, the failure branch is skipped, so the optimistic `settledHolds` entry stays in place, `refreshArchivedThreadsForEnvironment` runs, and `navigateAfterSettle` fires — navigating the user away from a thread whose settle was interrupted, not completed. Every other stateful call site in this file returns before its success-side effects when the result is an interrupted failure. The `attemptSettle` callback should remove the hold and skip navigation for any failure, while still suppressing the toast for interruptions.
      @@ -427,3 +646,10 @@
      427646 </>
      428647 );
      429648
      649+ // v2 renders queued offline tasks above the thread cards — they are not
      650+ // thread shells, so the v2 item builder never sees them, but they must
      651+ // stay visible and deletable while their environment is offline.
      652+ const v2ListHeader = (
      653+ <>
      654+ {listHeader}
      655+ {props.pendingTasks.map((pendingTask, index) => (
      macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      🟡 Medium home/HomeScreen.tsx:655

      The v2 list header renders every queued task in props.pendingTasks without filtering by selectedEnvironmentId or searchQuery, so when Thread List v2 is enabled, selecting a single environment still shows pending tasks from all environments, and pending tasks that don't match an active search stay visible. The grouped v1 list filters both ways via buildHomeThreadGroups, but the v2 header maps props.pendingTasks directly. Consider applying the same environmentId and search-query filters to props.pendingTasks before rendering the v2 header rows.

      🚀 Reply "fix it for me" or copy this AI Prompt for your agent:
      In file @apps/mobile/src/features/home/HomeScreen.tsx around line 655:
      
      The v2 list header renders every queued task in `props.pendingTasks` without filtering by `selectedEnvironmentId` or `searchQuery`, so when Thread List v2 is enabled, selecting a single environment still shows pending tasks from all environments, and pending tasks that don't match an active search stay visible. The grouped v1 list filters both ways via `buildHomeThreadGroups`, but the v2 header maps `props.pendingTasks` directly. Consider applying the same `environmentId` and search-query filters to `props.pendingTasks` before rendering the v2 header rows.
    6. Closing because this branch bundles the old sidebar-v2 stack with the theme experiment. Sidebar v2 has landed through #4026 and later work; the remaining focused true-black direction is tracked in #3980.

Sign in to join this conversation.