Rename a conversation from the sidebar

Open
#659 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@NopeCharon is already working on this.

Since Dec 5, 2026.

  • #660 by @NopeCharon — open

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
62/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
next.js, python
Domain
api, backend, frontend

Research direction

Start by reading the existing crud.update_conversation_title implementation and tests, then inspect the conversation routes and CORS configuration. Add the PATCH /conversations/{id} behavior described in the issue, implement the matching route in frontend/mock-flask-api, and wire the sidebar rename prompt to update its title and the open conversation header. Done means the API responses and validation match the proposal and renaming works in both the mock and Next.js UI.

Written by the indexing model from the issue text.

Description

The Next.js sidebar lists conversations by title, but a title can't be changed. A conversation keeps the title it got when it was created (its first question, cut to 100 characters) or stays "Untitled conversation". A long thread can end up with a name that no longer describes it, and the sidebar only offers delete.

The backend already has crud.update_conversation_title, with tests, but no route calls it. /conversations/{id} has GET and DELETE, but no update.

Proposal
  • Backend: PATCH /conversations/{id} with a {"title": "..."} body. It strips surrounding whitespace and accepts 1 to 500 characters (the column is String(500)), so a blank title gets a 422. It returns the conversation without its messages, the same shape as an item of GET /conversations. Like the other conversation routes, it returns 404 for an unknown id and 503 when the database is disabled. Because the Next.js app calls the API from another origin, PATCH must be added to the CORS allow_methods.
  • Next.js: a rename button next to the delete button in the sidebar. It asks for the new title with window.prompt, as delete asks with window.confirm, then updates the sidebar entry and, for the open conversation, the header.
  • Mock API: the same route in frontend/mock-flask-api, so the UI can be developed against the mock.
Dominant language
Python
Stars
52
Forks
29
Avg merge
11h 59m
Merged PRs (30d)
33

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from The-OpenROAD-Project/ORAssistant

All issues in The-OpenROAD-Project/ORAssistant

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.