Conversations from POST /conversations stay untitled and keep their creation time
Maintainer thường phản hồi trong vòng 1 ngà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
- 35/100
Hướng nghiên cứu
Read backend/'s conversation CRUD code, especially crud.create_message and crud.get_or_create_conversation, then inspect the conversation model and the tests described in CONTRIBUTING.md. Check that creating a message updates the conversation timestamp and sets an untitled conversation's title from the first user message, capped at 100 characters. Verify the JSON, streaming, and TUI paths; pull request #657 is already open for this issue.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
The Next.js app creates a conversation with POST /conversations, then sends each question to POST /conversations/agent-retriever with that conversation_uuid. After that, two fields in the conversation list never change.
Title. POST /conversations stores title = None. The chat endpoints pass the first question as the title to crud.get_or_create_conversation, but it uses the title only when it creates the conversation. Here the conversation already exists, so the title stays None, and the sidebar shows "Untitled conversation" for every thread. The chatbot.py TUI also creates its conversations with title=None.
updated_at. Conversation.updated_at has an onupdate, but crud.create_message only inserts a messages row and never updates the conversation row. GET /conversations sorts by updated_at desc, so the list stays in creation order, and the sidebar shows the creation time as the last update. The mock API in frontend/mock-flask-api sets updated_at after each answer, so the UI behaves correctly against the mock but not against the backend.
Reproduce
From backend/, with the test setup in CONTRIBUTING.md: an app with the conversations router, an in-memory SQLite database, and a mocked graph:
a = POST /conversations -> title None, updated_at 02:15:19.510079
b = POST /conversations -> title None, updated_at 02:15:19.613398
POST /conversations/agent-retriever {"query": "How do I install OpenROAD?", "conversation_uuid": a}
GET /conversations/{a} -> title None, updated_at 02:15:19.510079, 2 messages
GET /conversations -> [b, a]
Expected: a is titled "How do I install OpenROAD?", its updated_at is the time of the answer, and it is listed first.
Proposed fix
Update the conversation in crud.create_message, in the same commit as the message:
- set
updated_aton every message; - give an untitled conversation the first 100 characters of a user message as its title, the rule the chat endpoints apply today when they create a conversation.
This covers the JSON and streaming endpoints and the TUI. The 100-character rule then lives in one place.
- Ngôn ngữ chính
- Python
- Star
- 51
- Fork
- 27
- Merge trung bình
- 11 giờ 59 phút
- Pull request đã merge (30 ngày)
- 33
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
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 The-OpenROAD-Project/ORAssistant
-
A JSON chat answer blocks the backend event loop for the whole RAG runCó thể đã có người làm @NopeCharon đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
The-OpenROAD-Project/ORAssistant#656 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Rename a conversation from the sidebarCó thể đã có người làm @NopeCharon đã nhận hôm nay. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 62/100
The-OpenROAD-Project/ORAssistant#659 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
centralized backend configĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
The-OpenROAD-Project/ORAssistant#186 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Deprecate GOOGLE_APPLICATION_CREDENTIALSCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
The-OpenROAD-Project/ORAssistant#155 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add button to OR GUI for easy accessCó thể làm lại được @sparsh-karna đã nhận 164 ngày trước và không có pull request nào đang mở. Đang mở
The-OpenROAD-Project/ORAssistant#152 · 4 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của The-OpenROAD-Project/ORAssistant
Issue tương tự
-
bug(operator): VolterraOperator built inside jax.jit with a concrete decay raises TracerBoolConversionErrorCó thể đã có người làm @jejjohnson đã nhận hôm nay. Đang mởtype:bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
jejjohnson/integrix#144 ·
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 74/100
finos/ai-governance-framework#459 ·
-
slurm: a case outcome nested too deep crashes status/collect instead of reading as no outcomeĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
autowarefoundation/autoware_carla_scenario#2963 ·
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 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
freelawproject/litigant-portal#1307 ·
Maintainer thường phản hồi trong vòng 2 ngày