Feature request: default session name to the current folder name
What
When starting a new session, optionally default its name to the current working directory's basename (e.g. a session started in ~/projects/extension would be named extension), instead of leaving it nameless until a summary / first-prompt is generated.
Why
Sessions are already scoped per project directory. For people who keep one main session per project, the folder name is the most natural, stable identifier — far easier to recognize in the /resume picker than an AI-generated summary that changes as the conversation evolves.
Proposal
A setting (e.g. in settings.json) to opt into folder-name defaulting, such as:
{ "defaultSessionNameToFolder": true }
Today this can be approximated with a shell wrapper around claude -n "$(basename "$PWD")", but a first-class opt-in would be cleaner and would also benefit the VS Code / desktop / web clients that don't go through the shell.
Related
#63691, #39866
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗