Skip to content

Correct Recents timestamp age for newly sent messages#3994

Merged
louis030195 merged 1 commit into
screenpipe:mainfrom
thisisharsh7:fix/chat-recents-last-user-timestamp
Jun 11, 2026
Merged

Correct Recents timestamp age for newly sent messages#3994
louis030195 merged 1 commit into
screenpipe:mainfrom
thisisharsh7:fix/chat-recents-last-user-timestamp

Conversation

@thisisharsh7

@thisisharsh7 thisisharsh7 commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

This PR fixes incorrect age labels in the chat Recents sidebar where a newly sent message could still show an older value like 51m.

Changes

  • recompute lastUserMessageAt from the actual saved user messages in the foreground save path
  • repair stale persisted lastUserMessageAt during chat metadata hydration
  • recompute lastUserMessageAt in the background router save path so stale values are not reintroduced
  • add regression tests for both save-time and read-time repair

Before -

Screen.Recording.2026-06-11.at.2.51.35.PM.mov

After -

Screen.Recording.2026-06-11.at.2.43.45.PM.mov

@thisisharsh7 thisisharsh7 marked this pull request as ready for review June 11, 2026 10:46

@louis030195 louis030195 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great, nice test coverage too fyi

@louis030195 louis030195 merged commit fa7c1db into screenpipe:main Jun 11, 2026
9 checks passed
louis030195 pushed a commit that referenced this pull request Jun 11, 2026
Ships cloud pipes for enterprise builds: the new cloud entry in the
pipes dropdown drives one managed GCP VM per org (provision/start/stop,
org AI presets from the dashboard, team-shared + dashboard-managed
pipes, per-pipe last-run state). Also ships the chat recents age fix
(#3994) and pipes/engine route changes since v2.5.31.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants