[bug] clicking "New" on an empty conversation creates duplicate empty sessions
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 58/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
調査の方向性
The payload names no files, so begin with the "New conversation" click handler in the Chat with AI panel and the backend create path that archives the current session. Confirm how the client generates the conversation ID, then check the reuse logic on the server. Done means repeated clicks on an empty conversation yield one session, and a backend contract test covers repeated create against an empty current session.
索引モデルが issue の本文から書いたものです。
説明
Summary
On the Chat with AI panel, when the current conversation has no messages,
clicking "New conversation" creates a new empty session on every click
instead of reusing the current one. Empty sessions accumulate in the history
list and in project storage until the 100-conversation limit blocks new
sessions entirely.
Steps to reproduce
- Open a project and the Chat with AI panel, with the current conversation
empty. - Click "New conversation" several times.
- Open the history panel: one empty session has been created per click.
Cause
The client generates a fresh conversation ID per click, while the backend's
create path is idempotent only by conversation ID, so the dedupe never
matches: each request archives the previous empty session and creates a new
one. The same accumulation is reachable from the agent/HTTP entry points,
because "reuse the empty active session" is not enforced as a server-side
rule.
Proposed fix
- Frontend: when the current conversation is empty, "New" reuses it instead
of creating a new session. - Backend: in the create path, return the current session when it is empty
instead of archiving it and creating a new one. This protects the agent
and HTTP entry points as well.
Acceptance
- Repeated clicks with an empty current conversation produce exactly one
session, and the history list stops accumulating empty entries. - Backend contract test: repeated create against an empty current session is
idempotent.
- 主要言語
- TypeScript
- スター
- 119
- フォーク
- 16
- 平均マージ
- 16時間 13分
- マージ済み PR(30日)
- 195
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ThinkFlowLab/OpenDirector のほかの issue
-
area:provider
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ThinkFlowLab/OpenDirector#477 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
area:ci
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
ThinkFlowLab/OpenDirector#411 ·
メンテナーはふだん 1 日以内に返信
-
[bug] agent: 长素材名在对话气泡中溢出,遮挡正文与素材栏対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンarea:agent
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
ThinkFlowLab/OpenDirector#348 ·
メンテナーはふだん 1 日以内に返信
-
area:provider
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
ThinkFlowLab/OpenDirector#311 ·
メンテナーはふだん 1 日以内に返信
-
area:desktop area:install help wanted
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
ThinkFlowLab/OpenDirector#475 ·
メンテナーはふだん 1 日以内に返信
ThinkFlowLab/OpenDirector の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
primer/primitives#1426 ·
-
Sign-in-only setup dialog describes API-key verification対応中かも @roboclaw-bot が今日担当しました。 オープンclawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P2
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
openclaw/openclaw#204323 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
virtue-initiative/virtue-initiative#953 ·
メンテナーはふだん 1 日以内に返信
-
needs-area-label
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
fumicode/bublys-org#261 ·
メンテナーはふだん 12 日以内に返信