Feature request: --name flag for claude --bg (background session naming)
Resolved 💬 3 comments Opened May 14, 2026 by sporebattyl 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.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗