[GH-ISSUE #4782] [Feature]: /title command and Rename label for Professor Mari workspace chats #2635

Closed
opened 2026-10-21 05:51:55 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @xDanteMD on GitHub (Aug 9, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4782

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

Professor Mari workspace chats default to "Professor Mari" while active, then get renamed to "Chat from YYYY-MM-DD HH:MM" when archived via restart. After a few sessions, the chat list becomes a wall of identical timestamps.

The Edit button in the chat history panel already allows manual renaming, but:

  • It's labeled "Edit" rather than "Rename", which doesn't clearly communicate its purpose
  • It's only accessible from the chat list — not from within an active conversation. If you're mid-chat and realize the name is unhelpful, you have to open the chat history panel to rename it

Proposed solution

1. /title slash command (client-side)

Add a /title <name> command that renames the current chat from within the conversation. The client intercepts the command before it reaches the workspace agent and calls the existing PATCH /internal/professor-mari/chats/:id endpoint.

Usage:

/user: /title Natsuki Subaru Lorebook Setup

The command should:

  • Accept any text after /title as the new name
  • Update the chat name immediately via the existing PATCH endpoint
  • Show a confirmation toast
  • If no name is provided, show a brief usage hint (e.g., "Usage: /title Your Chat Name")
  • Be case-insensitive (/Title, /TITLE should also work)

The slash command infrastructure already has 19 commands (slash-commands.ts). This follows the established pattern.
Strictly speaking, this is just about extending the rename functionality to within the chat, to avoid the necessity to restart -> edit every time.

2. Rename button label (UI)

Rename the "Edit" button in the Professor Mari chat history panel to "Rename" for clarity. The button already opens an inline rename form — the label just doesn't say so. This is a localization string change.

Alternatives considered

  • Route renaming through the workspace agent — adding chat.update to app_data so Mari renames the chat in her response. Unnecessary complexity for a simple rename operation that the client can handle directly.
  • Auto-title generation via separate LLM call — previously requested in #4353 (closed without implementing the naming parts). Would add API cost and complexity for a problem that a manual command solves.
  • Chat Settings drawer rename — a ChatNameSection exists in the settings drawer for regular chats, but it's not accessible during an active conversation. /title fills this gap.

Additional context

Existing infrastructure:

  • PATCH /internal/professor-mari/chats/:id already accepts { name } and works (chats.routes.ts:814-824)
  • handleRenameProfessorChat client function already calls this endpoint (HomeProfessorMariChat.tsx:3275-3293)
  • The slash command parser (slash-commands.ts) already handles 19 commands — adding one more follows the established pattern
  • The "Edit" button already opens the rename form — only the label needs to change

Previously discussed: Auto-title generation was requested in #4353 and not implemented. This FR focuses on manual rename capability, which is the more immediately useful half.

Originally created by @xDanteMD on GitHub (Aug 9, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4782 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? Professor Mari workspace chats default to `"Professor Mari"` while active, then get renamed to `"Chat from YYYY-MM-DD HH:MM"` when archived via restart. After a few sessions, the chat list becomes a wall of identical timestamps. The Edit button in the chat history panel already allows manual renaming, but: - It's labeled "Edit" rather than "Rename", which doesn't clearly communicate its purpose - It's only accessible from the chat list — not from within an active conversation. If you're mid-chat and realize the name is unhelpful, you have to open the chat history panel to rename it ## Proposed solution ### 1. `/title` slash command (client-side) Add a `/title <name>` command that renames the current chat from within the conversation. The client intercepts the command before it reaches the workspace agent and calls the existing `PATCH /internal/professor-mari/chats/:id` endpoint. Usage: ``` /user: /title Natsuki Subaru Lorebook Setup ``` The command should: - Accept any text after `/title` as the new name - Update the chat name immediately via the existing PATCH endpoint - Show a confirmation toast - If no name is provided, show a brief usage hint (e.g., "Usage: /title Your Chat Name") - Be case-insensitive (`/Title`, `/TITLE` should also work) The slash command infrastructure already has 19 commands (`slash-commands.ts`). This follows the established pattern. Strictly speaking, this is just about extending the rename functionality to within the chat, to avoid the necessity to restart -> edit every time. ### 2. Rename button label (UI) Rename the "Edit" button in the Professor Mari chat history panel to "Rename" for clarity. The button already opens an inline rename form — the label just doesn't say so. This is a localization string change. ## Alternatives considered - **Route renaming through the workspace agent** — adding `chat.update` to `app_data` so Mari renames the chat in her response. Unnecessary complexity for a simple rename operation that the client can handle directly. - **Auto-title generation via separate LLM call** — previously requested in #4353 (closed without implementing the naming parts). Would add API cost and complexity for a problem that a manual command solves. - **Chat Settings drawer rename** — a `ChatNameSection` exists in the settings drawer for regular chats, but it's not accessible during an active conversation. `/title` fills this gap. ## Additional context **Existing infrastructure:** - `PATCH /internal/professor-mari/chats/:id` already accepts `{ name }` and works (`chats.routes.ts:814-824`) - `handleRenameProfessorChat` client function already calls this endpoint (`HomeProfessorMariChat.tsx:3275-3293`) - The slash command parser (`slash-commands.ts`) already handles 19 commands — adding one more follows the established pattern - The "Edit" button already opens the rename form — only the label needs to change **Previously discussed:** Auto-title generation was requested in #4353 and not implemented. This FR focuses on manual rename capability, which is the more immediately useful half.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#2635
No description provided.