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

Deleted session can linger in the sidebar and later deletes fail silently

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

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

@mayuriphad がすでに取り組んでいます。

2026年10月31日 から。

  • #224 @mayuriphad による — オープン

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
65/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript
領域
desktop

調査の方向性

Read desktop/src/components/layout/Sidebar.tsx and desktop/src/stores/sessionStore.ts, then reproduce the lingering entry with a test; the issue names two possible causes to investigate. Done means the test confirms the cause, deleting an already-removed session cleans up the store, connection, and tab, other failures show an i18n toast, and batch delete is checked for the same gap.

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

説明

area:desktop bug difficulty:2 help wanted

Problem

Deleting a session from the sidebar can leave the entry in the list. After that, every further delete attempt does nothing visible: the confirm dialog stays open and no error is shown.

What we know

Observed in a dev app run, on a freshly created untitled session:

  • The server deleted the session. Its transcript file was gone and the session's WebSocket was closed with session deleted.
  • The sidebar still showed the entry. Each later delete returned 404 Session not found from DELETE /api/sessions/:id.
  • In desktop/src/components/layout/Sidebar.tsx, confirmDelete awaits deleteSession (desktop/src/stores/sessionStore.ts) with no error handling. The 404 becomes an unhandled promise rejection, so the dialog never closes and the tab and connection are never cleaned up.
  • This is not specific to any open PR. The delete path is unchanged on main.

What we don't know

Why the entry comes back after the first successful delete. Two candidates:

  1. fetchSessions in sessionStore.ts keeps sessions that have an open tab even when the server no longer lists them.
  2. A listSessions response requested before the delete arrives after it and re-adds the session.

A failing test that reproduces the lingering entry should settle which one it is.

Suggested fix

  • Reproduce first with a test, then fix the cause that the test points at.
  • Treat a 404 on delete as already deleted: remove the entry from the store, disconnect, and close the tab.
  • Show an i18n toast for any other delete failure instead of an unhandled rejection.
  • Check batch delete (deleteSessions) for the same gap.

See AGENTS.md and docs/CONTRIBUTING_en.md for setup and the PR flow. Contributions are welcome; comment here if you want to take it.

主要言語
TypeScript
スター
490
フォーク
47
平均マージ
10時間 40分
マージ済み PR(30日)
83

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

GoDiao/dreamcoder のほかの issue

GoDiao/dreamcoder の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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