Skip to content

Conversation

@rrnewton
Copy link

@rrnewton rrnewton commented Nov 2, 2025

Introduces a new --name CLI flag that sets the session title directly via metadata.summary at session creation time. This avoids the need to route an extra request through Claude on startup (previously required using "Tell happy to change the title..." prompt).

Benefits:

  • No extra Claude API call on session startup
  • Works for both 'happy' and 'happy codex' commands
  • Title persists across local/remote mode switches
  • Zero changes needed to mobile client or server (metadata is opaque)
  • Claude can still override title later via MCP change_title

Usage:
happy --name "My Project Name" happy codex --name "Backend Work"

Implementation:

  • Parses --name flag in src/index.ts for both commands
  • Sets metadata.summary.text at session creation time
  • Mobile client already prioritizes metadata.summary in getSessionName()

Tests: 105/117 passed (12 skipped - integration tests without server)

🤖 Generated with Claude Code via Happy

Introduces a new --name CLI flag that sets the session title directly
via metadata.summary at session creation time. This avoids the need to
route an extra request through Claude on startup (previously required
using "Tell happy to change the title..." prompt).

Benefits:
- No extra Claude API call on session startup
- Works for both 'happy' and 'happy codex' commands
- Title persists across local/remote mode switches
- Zero changes needed to mobile client or server (metadata is opaque)
- Claude can still override title later via MCP change_title

Usage:
  happy --name "My Project Name"
  happy codex --name "Backend Work"

Implementation:
- Parses --name flag in src/index.ts for both commands
- Sets metadata.summary.text at session creation time
- Mobile client already prioritizes metadata.summary in getSessionName()

Tests: 105/117 passed (12 skipped - integration tests without server)

🤖 Generated with [Claude Code](https://claude.com/claude-code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
@rrnewton
Copy link
Author

rrnewton commented Nov 2, 2025

Happy to rename this --initial-session-title or something else...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant