Description
/rename calls onRenameSession, which is setSessionName from React state (source/hooks/useAppState.tsx). It never calls sessionManager.renameSession, so titleManuallySet stays unset. Autosave then writes a title derived from the first user message whenever that flag is false (source/hooks/useSessionAutosave.ts).
Steps to Reproduce
- Start a session that already has a user message. Autosave is on by default.
- Run
/rename Sprint planning.
- Wait for the next autosave, or quit so the shutdown flush runs.
/resume and look at the title.
Expected Behavior
The session keeps the name you set.
Actual Behavior
The status line updates and the command says the session was renamed. The saved title goes back to the derived one.
Additional Context
Description
/renamecallsonRenameSession, which issetSessionNamefrom React state (source/hooks/useAppState.tsx). It never callssessionManager.renameSession, sotitleManuallySetstays unset. Autosave then writes a title derived from the first user message whenever that flag is false (source/hooks/useSessionAutosave.ts).Steps to Reproduce
/rename Sprint planning./resumeand look at the title.Expected Behavior
The session keeps the name you set.
Actual Behavior
The status line updates and the command says the session was renamed. The saved title goes back to the derived one.
Additional Context