feat(gateway/discord): sync thread names with session titles - #15757
feat(gateway/discord): sync thread names with session titles#15757TabooHarmony wants to merge 1 commit into
Conversation
Auto-generated session titles (after the first exchange) and user-set titles via /title now propagate to Discord thread names. - Add DiscordAdapter.rename_thread() to edit thread names via discord.py - After maybe_auto_title(), fire a lightweight async task that polls the session DB for up to 15s and renames the thread when the title appears - Also sync immediately when /title is used This bridges the gap between Hermes session titles (visible in /sessions list and the web dashboard) and Discord thread names, which were previously set once at thread creation and never updated.
|
Very useful feature, looking forward to the developers merging it soon |
|
Thanks for addressing the disconnect between session titles and Discord threads. Current main has since landed the automatic-title half of this behavior via Problems
Suggested changes
This is an automated hermes-sweeper review. |
Related to #26477 rather than a duplicate: this branch polls the session DB while #26477 uses a different title-sync path. The adapter was migrated to |
Auto-generated session titles (after the first exchange) and user-set titles via
/titlenow propagate to Discord thread names.Problem: Session titles are generated and stored in the local SQLite database, visible in
/sessions listand the web dashboard. Discord thread names, however, are set once at thread creation and never updated. This creates a disconnect between the two.Changes:
DiscordAdapter.rename_thread()- edits thread names via discord.pymaybe_auto_title(), fire a lightweight async task that polls the session DB for up to 15s and renames the thread when the title appears/titleis usedThis bridges the gap between Hermes session titles and Discord thread names.