Feature request: --name flag for claude --bg (background session naming)
Status Fixed / completed
Maintainer reply None cached
Workaround ✓ Mentioned in description ↑
Activity 3 comments · opened May 14, 2026 · closed May 14, 2026
Use case
When dispatching background sessions via scripts (e.g., dispatch-ticket.sh in automation workflows), there's no way to set a descriptive session name at launch time. Sessions get auto-generated names, requiring manual rename via Ctrl+R.
Current workaround
Manual rename: Ctrl+R → search for session → rename. This breaks automation flows.
Proposed API
Add a --name flag to claude --bg:
claude --bg --name "TICKET-884: feature request name flag"
This would allow scripts to set meaningful, discoverable session names at dispatch time.
Alternative: session file pattern
If a full CLI flag is too heavy, consider accepting a session name via stdin or env var when --bg is used.
3 Comments
Closing as duplicate of #58764 (same feature request, already filed and merged in TICKET-884 PR #825).
Duplicate of #58764
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.