[bug] clicking "New" on an empty conversation creates duplicate empty sessions
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 58/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 119
- Fork
- 16
- Merge trung bình
- 16 giờ 13 phút
- Pull request đã merge (30 ngày)
- 195
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của ThinkFlowLab/OpenDirector
-
area:provider
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
ThinkFlowLab/OpenDirector#477 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:ci
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
ThinkFlowLab/OpenDirector#411 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[bug] agent: 长素材名在对话气泡中溢出,遮挡正文与素材栏Có thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởarea:agent
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
ThinkFlowLab/OpenDirector#348 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:provider
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
ThinkFlowLab/OpenDirector#311 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:desktop area:install help wanted
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
ThinkFlowLab/OpenDirector#475 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của ThinkFlowLab/OpenDirector
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
primer/primitives#1426 ·
-
Sign-in-only setup dialog describes API-key verificationCó thể đã có người làm @roboclaw-bot đã nhận hôm nay. Đang mởclawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P2
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
openclaw/openclaw#204323 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
virtue-initiative/virtue-initiative#953 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-area-label
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
fumicode/bublys-org#261 ·
Maintainer thường phản hồi trong vòng 12 ngày