You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: project overview header claims "1 chat" while the page's own Recent-chats section (and sidebar badge) say there are none #2648
On a fresh org's seeded "Getting started" project, the overview header stats read "0 files · 1 chat · Org-wide" while directly below, "Recent chats in this project" shows "No chats yet. Start one to see it here." — and the chat sidebar's project badge shows 0. Two of the three counters agree; the header stat is the outlier. Whatever the header counts (a hidden/internal thread, the seeded discussion's backing thread, or stale metadata), showing contradictory numbers on one screen erodes trust in every stat.
Current behaviour
Repro (2026-07-11, main @ 94ef84e): create an org → open the seeded "Getting started" project → compare the header stat line with the Recent chats section. Screenshot on file: project-detail-1chat-vs-nochats.png.
Code pointers
app/features/projects/components/project-overview.tsx — header stat line + Recent chats section (two different sources for "chats in this project")
Proposed change
Make the header stat use the same query/filter as the recent-chats list (visible, member-facing chats only), and add a test asserting the two agree on a fresh seeded project.
Acceptance criteria
Header chat count equals the number of chats the page itself lists (0 on a fresh seeded project)
Regression test covers the fresh-org seeded project case
Activity