Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Sidebar projects show zero chats when their sessions fall outside the first session page

オープン
#259 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

  • #264 @kalvinnchau による — マージされずにクローズ

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
rust, typescript
領域
api, backend, frontend

調査の方向性

src/features/chat/stores/chatSessionStore.ts の loadSessions() と、src/features/sessions/capabilities/SessionListCapability.tsx のプロジェクトのグループ化および自動ローダーから始めてください。次に crates/goose/src/acp/server/list_sessions.rs と現在のセッションリストのフィルターを確認してください。最初の 50 または 60 セッションより後にあるチャットを持つプロジェクトが、scheduler のセッションによってフィードの下位に押し下げられた場合も含め、それらのチャットを確実に表示できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

bug
Before filing
  • I searched open and closed issues for duplicates.
  • I reproduced this on the latest release.
  • This is one bug, not several bundled together.

Closest existing issue: none found (Linear: BOT-1688, BOT-959, BOT-1521)

What's broken

When a user has more sessions than one backend page (50), sidebar projects whose most recent chat falls outside the first page render as empty ("No chats yet"), even though the project has chats. The sidebar groups sessions into projects from only the sessions currently loaded in the store, and the background auto-loader stops at 60 sessions — so projects appear empty and stay that way.

Steps to reproduce
  1. Launch Berd
  2. Have more than ~60 sessions, with at least one project whose most recent chat is older than the 60 most recent sessions overall
  3. Look at that project in the sidebar
What you expected to happen

The project should show its chats regardless of how many other sessions exist.

What actually happened

The project shows zero chats. session/list returns 50/page, activity-desc, with no project filter (crates/goose/src/acp/server/list_sessions.rs:15). Startup loadSessions() fetches page 1 only (src/features/chat/stores/chatSessionStore.ts:780-796). The sidebar groups projects from the loaded slice (src/features/sessions/capabilities/SessionListCapability.tsx:265-313). The background auto-loader stops at MAX_AUTO_LOADED_GROUPED_CHATS = 60 (SessionListCapability.tsx:80-81,906-909), so with hundreds of sessions the project never hydrates. Goose-scheduler-generated sessions accelerate this by pushing real chats further down the feed.

How often does it happen?

Every time — reliably reproducible (for users with enough sessions)

Berd version

0.6.2

Operating system

macOS (Apple Silicon)

Model and provider

n/a

Relevant log output

no relevant log output

Screenshots, recordings, or other context

Reported by multiple users across versions (Linear BOT-1688 / BOT-959 / BOT-1521; Slack https://sq-block.slack.com/archives/C0B63ARP20K/p1788218186714219). Note: BOT-959's earlier fix (useProjectSessionHydration, squareup/goose-internal#580) is not present in this repo.

Durable fix: query sessions per project rather than grouping the global feed. That needs a project_id filter on session/list — a goose backend change (SessionListFilters currently lacks it, though the project_id column exists and is indexed) — tracked separately upstream. Once available, each expanded project issues session/list?projectId=X and renders that, making the sidebar immune to scheduler churn. The "View all chats" gating bug (#256) and search-coverage bug (#257) are related but independent.

主要言語
TypeScript
スター
1k
フォーク
134
平均マージ
1日 1分
マージ済み PR(30日)
44

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

block/berd のほかの issue

block/berd の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。