Conversations from POST /conversations stay untitled and keep their creation time
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Python
- Stelle
- 51
- Fork
- 27
- Merge medio
- 11h 59m
- PR unite (30g)
- 33
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di The-OpenROAD-Project/ORAssistant
-
A JSON chat answer blocks the backend event loop for the whole RAG runForse già presa @NopeCharon l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
The-OpenROAD-Project/ORAssistant#656 ·
I maintainer di solito rispondono entro 1 giorno
-
Rename a conversation from the sidebarForse già presa @NopeCharon l’ha presa oggi. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 62/100
The-OpenROAD-Project/ORAssistant#659 ·
I maintainer di solito rispondono entro 1 giorno
-
centralized backend configAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
The-OpenROAD-Project/ORAssistant#186 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Deprecate GOOGLE_APPLICATION_CREDENTIALSForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
The-OpenROAD-Project/ORAssistant#155 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Add button to OR GUI for easy accessForse di nuovo libera @sparsh-karna l’ha presa 164 giorni fa e non c’è nessuna pull request aperta. Aperta
The-OpenROAD-Project/ORAssistant#152 · 4 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di The-OpenROAD-Project/ORAssistant
Issue simili
-
bug(operator): VolterraOperator built inside jax.jit with a concrete decay raises TracerBoolConversionErrorForse già presa @jejjohnson l’ha presa oggi. Apertatype:bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
jejjohnson/integrix#144 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
finos/ai-governance-framework#459 ·
-
slurm: a case outcome nested too deep crashes status/collect instead of reading as no outcomeAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
autowarefoundation/autoware_carla_scenario#2963 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
freelawproject/litigant-portal#1307 ·
I maintainer di solito rispondono entro 2 giorni