Skip to content

fix: don't just show the creation time for threads in sidebar#1136

Open
nmggithub wants to merge 4 commits intopingdotgg:mainfrom
nmggithub:sidebar-dates
Open

fix: don't just show the creation time for threads in sidebar#1136
nmggithub wants to merge 4 commits intopingdotgg:mainfrom
nmggithub:sidebar-dates

Conversation

@nmggithub
Copy link
Contributor

@nmggithub nmggithub commented Mar 16, 2026

What Changed

Should resolve #973. This updates the date indicator for threads as the thread itself updates. We can decided which dates we actually want to use as the canonical reference points.

EDIT: Changed strategies to use the last chat message's createdAt. Macroscope's summary below is out-of-date.

Why

Users expect the date indicator to change as they interact with the thread.

UI Changes

Before (main) and after (`sidebar-dates', my branch) on a thread I just got a response from:
Screenshot 2026-03-16 at 03 50 21
Screenshot 2026-03-16 at 03 50 05

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes
  • I included a video for animation/interaction changes

Note

Sort sidebar threads and relative timestamps by last message time instead of creation time

Threads in the sidebar were always sorted and labeled by their creation time. They are now sorted and labeled by the time of the last message, falling back to creation time when no messages exist.

  • Updates the per-project sort comparator in Sidebar.tsx to use the last message's createdAt when available.
  • Updates the focusMostRecentThreadForProject hook to use the same logic when selecting which thread to focus.
  • Behavioral Change: thread order in the sidebar and displayed relative timestamps will change for any thread that has received messages after creation.

Macroscope summarized 85bb9a0.

@coderabbitai
Copy link

coderabbitai bot commented Mar 16, 2026

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: 78cd083d-576e-4aac-a053-34e09bce9ce2

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
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions bot added size:XS 0-9 changed lines (additions + deletions). vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. labels Mar 16, 2026
@jamesx0416
Copy link
Contributor

jamesx0416 commented Mar 18, 2026

@binbandit quick win here, 3 commits(with mine) would close #804, #973, #466, and is simpler(10 line change) than #1030, #1089, #827, and #741.

sort sidebar threads by latest visible message time
@github-actions github-actions bot added size:S 10-29 changed lines (additions + deletions). and removed size:XS 0-9 changed lines (additions + deletions). labels Mar 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S 10-29 changed lines (additions + deletions). vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Chat Date on New Message shows 5d old

3 participants