Repository navigation
Conversation
Adds discord.autoThreadChannels — channel IDs where every top-level message spawns its own thread (anchored to the message so Discord shows the quoted original), gets an isolated session, and is renamed with an AI-generated title once Claude replies. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
--model claude-haiku-4-5-20251001 and claude-sonnet-4-20250514 break outright if Anthropic retires that dated snapshot. The claude CLI resolves 'haiku'/'sonnet' aliases to the latest model on its own, so use those instead — same behavior today, no hard dependency on a snapshot staying available. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
azaz44
force-pushed
the
feature/discord-auto-thread-202609091240
branch
from
September 10, 2026 18:15
6232bbe to
10e9887
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
discord.autoThreadChannels— channel IDs where every top-level message auto-creates a fresh, isolated-session thread (same feature Hermes has), instead of replying inline on the parent channelPOST /channels/{id}/messages/{message_id}/threads), so Discord shows the quoted original automatically — no extra plumbing neededautoThreadChannelswhen no thread-management intent was detectedclaude-haiku-4-5-20251001,claude-sonnet-4-20250514) for the CLI'shaiku/sonnetaliases, so intent classification and title generation don't hard-break if Anthropic retires that specific dated snapshotConfig
A channel must be in both
listenChannels(bot listens there at all) andautoThreadChannels(opts into auto-threading). Default[]— fully backward compatible, opt-in per channel.Test plan
bun test— same pass/fail counts as onmaster(134 pass / 3 pre-existing unrelated fails, confirmed viagit stashcomparison)bunx tsc --noEmit— clean on the two touched files/app/srcin a Docker deployment) — auto-thread creation, quoted original, session isolation, and AI title rename all confirmed working🤖 Generated with Claude Code