Skip to content

feat(#1116): composer placeholder reflects active profile name#1122

Closed
bergeouss wants to merge 1 commit intonesquena:masterfrom
bergeouss:fix/1116-composer-placeholder-profile
Closed

feat(#1116): composer placeholder reflects active profile name#1122
bergeouss wants to merge 1 commit intonesquena:masterfrom
bergeouss:fix/1116-composer-placeholder-profile

Conversation

@bergeouss
Copy link
Copy Markdown
Contributor

Summary

Fixes #1116

When a named profile is active (not 'default'), the composer placeholder and title bar show the profile name (capitalised) instead of the global bot_name. Falls back to bot_name/'Hermes' for the default profile.

Changes

  • static/boot.js: applyBotName() now checks S.activeProfile — if set and not 'default', uses the capitalised profile name. Falls back to window._botName otherwise.
  • static/panels.js: switchToProfile() calls applyBotName() after profile switch to update placeholder/title/sidebar/logo.
  • tests/test_issue1116_composer_placeholder.py: 5 regression tests

Testing

5 passed

When a named profile is active (not 'default'), the composer placeholder
and title bar show the profile name (capitalised) instead of the global
bot_name. Falls back to bot_name/'Hermes' for the default profile.

- boot.js: applyBotName() checks S.activeProfile before _botName
- panels.js: switchToProfile() calls applyBotName() after switch
- Added 5 regression tests
@nesquena-hermes
Copy link
Copy Markdown
Collaborator

Triage Review ✅

Nice UX improvement! Profile-aware composer placeholder makes multi-profile setups much more intuitive.

What it does:

  • applyBotName() in boot.js now checks S.activeProfile — if set and not 'default', uses the capitalized profile name as the placeholder/title
  • switchToProfile() in panels.js calls applyBotName() after switching so the placeholder updates immediately on switch
  • Falls back to window._botName / 'Hermes' for the default profile (backward compatible)

Review notes:

  • The 'default' profile check is correct — avoids showing "Default" literally as the bot name.
  • Calling applyBotName() inside switchToProfile() ensures the UI stays in sync when the user switches profiles mid-session.
  • 5 regression tests pass.
  • Scope is minimal: only 2 JS files touched + new test file.

Looks good to merge. 🟢

@nesquena-hermes
Copy link
Copy Markdown
Collaborator

Absorbed and shipped in v0.50.223 (PR #1127). Thanks!

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.

feat: composer placeholder should reflect active profile name — "Message Reiska…" instead of always "Message Hermes…"

2 participants