Skip to content

Add Discord thread title auto-rename after session naming - #24311

Closed
0fflineDocs wants to merge 1 commit into
NousResearch:mainfrom
0fflineDocs:feat/discord-thread-title-rename-offlinedocs
Closed

Add Discord thread title auto-rename after session naming#24311
0fflineDocs wants to merge 1 commit into
NousResearch:mainfrom
0fflineDocs:feat/discord-thread-title-rename-offlinedocs

Conversation

@0fflineDocs

Copy link
Copy Markdown

Summary

This adds Discord thread renaming support so auto-generated session titles can update the backing Discord thread name after the title is produced.

Changes

  • add rename_thread(thread_id, new_name) to the Discord platform adapter
  • add scheduled Discord thread title rename wiring in gateway/run.py
  • connect Discord thread sessions to maybe_auto_title(..., title_callback=...)
  • add tests covering:
    • cached thread rename
    • fetch fallback
    • 100-character truncation
    • scheduler invocation
    • invalid thread IDs ignored safely

Why

Previously, auto-titling could generate a better session title internally, but Discord thread names were not updated to match. This left Discord threads with stale or generic names even when the agent had already produced a stronger title.

Validation

bash
pytest -q tests/gateway/test_discord_thread_title_rename.py tests/gateway/test_telegram_topic_mode.py -q

@alt-glitch alt-glitch added type/feature New feature or request P3 Low — cosmetic, nice to have comp/gateway Gateway runner, session dispatch, delivery platform/discord Discord bot adapter labels May 12, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Duplicate of #15757 — same feature (sync Discord thread names with auto-generated session titles). See also tracking issue #18430.

@0fflineDocs
0fflineDocs force-pushed the feat/discord-thread-title-rename-offlinedocs branch from 4fda0fe to ecf8082 Compare May 12, 2026 11:07
@0fflineDocs

Copy link
Copy Markdown
Author

Duplicate of #15757 — same feature (sync Discord thread names with auto-generated session titles). See also tracking issue #18430.

Thanks let's close this.

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

Labels

comp/gateway Gateway runner, session dispatch, delivery P3 Low — cosmetic, nice to have platform/discord Discord bot adapter type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants