nanocoder icon indicating copy to clipboard operation
nanocoder copied to clipboard

[Bug] /rename only changes the status line

Open Dhirenderchoudhary opened this issue 1 month ago • 4 comments

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

  1. Start a session that already has a user message. Autosave is on by default.
  2. Run /rename Sprint planning.
  3. Wait for the next autosave, or quit so the shutdown flush runs.
  4. /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

  • [x] I have searched existing issues to ensure this is not a duplicate
  • [x] I can reproduce this issue consistently

Dhirenderchoudhary avatar Oct 07 '26 22:10 Dhirenderchoudhary

@akramcodez can i go for it ?

Dhirenderchoudhary avatar Oct 08 '26 08:10 Dhirenderchoudhary

@addyCooks can i take this? the rename path missing sessionManager.renameSession + titleManuallySet looks like a small fix with a test. happy to put up a pr.

deepcfr avatar Oct 09 '26 17:10 deepcfr

Thanks for offering @deepcfr, We assign issues to whoever asks first, and @Dhirenderchoudhary asked two days ago, so this one is theirs.

Have a look at the other issues, or open a new one if you've hit something else, and ask there. I'm happy to assign you.

addyCooks avatar Oct 10 '26 07:10 addyCooks

@addyCooks ohh thats fine man! i am eyeing for one issue but tbh having a tough time finding a new issue. the repo has become really crowded haha! i think i should properly use the app to find and open a new issue.

deepcfr avatar Oct 10 '26 08:10 deepcfr