Hana Chang
537479f5b0
fix(discord): raise thread title max tokens for reasoning models
...
When the simple-completion model selected for thread-title generation is a
reasoning model (e.g. MiniMax M2, Claude thinking models, OpenAI o-series),
the 24-token output budget is entirely consumed by the internal thinking
block before any user-visible text is emitted. extractAssistantText then
returns an empty string, generateThreadTitle returns null, and the
auto-thread rename is silently skipped while the feature appears to do
nothing.
Raise DISCORD_THREAD_TITLE_MAX_TOKENS to 512 so there is enough headroom
for a short thinking pass plus the 3-6 word title output. The generous
ceiling only matters when the provider actually reasons; non-reasoning
models still emit a short title and stop early at end-of-sequence.
Verified live against a MiniMax M2 reasoning model served through an
Anthropic-compatible API endpoint: before the fix, the rename never fired;
after the fix, the thread is renamed with a concise generated title.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-04-10 14:07:22 +01:00
..
2026-04-09 03:56:22 +01:00
2026-04-09 23:47:59 +01:00
2026-04-09 03:56:22 +01:00
2026-04-09 03:56:22 +01:00
2026-04-09 03:56:22 +01:00
2026-04-10 09:14:15 +01:00
2026-04-09 03:56:22 +01:00
2026-04-09 03:56:22 +01:00
2026-04-09 09:22:11 +01:00
2026-04-09 03:56:22 +01:00
2026-04-10 12:46:26 +01:00
2026-04-09 03:56:22 +01:00
2026-04-09 03:56:22 +01:00
2026-04-09 03:56:22 +01:00
2026-04-09 03:56:22 +01:00
2026-04-09 03:56:22 +01:00
2026-04-09 03:56:22 +01:00
2026-04-09 03:56:22 +01:00
2026-04-10 10:22:00 +01:00
2026-04-09 03:56:22 +01:00
2026-04-09 23:47:59 +01:00
2026-04-10 14:07:22 +01:00
2026-04-09 03:56:22 +01:00
2026-04-09 03:56:22 +01:00
2026-04-09 03:56:22 +01:00
2026-04-09 03:56:22 +01:00
2026-04-10 08:16:28 +01:00
2026-04-09 03:56:22 +01:00
2026-04-09 17:09:17 +08:00
2026-04-09 03:56:22 +01:00
2026-04-09 23:47:59 +01:00
2026-04-10 08:16:27 +01:00
2026-04-09 03:56:22 +01:00
2026-04-09 03:56:22 +01:00
2026-04-09 03:56:22 +01:00
2026-04-10 10:12:07 +01:00
2026-04-09 03:56:22 +01:00
2026-04-09 03:56:22 +01:00
2026-04-09 03:56:22 +01:00
2026-04-10 08:16:28 +01:00
2026-04-09 03:56:22 +01:00
2026-04-09 03:56:22 +01:00
2026-04-09 03:56:22 +01:00
2026-04-09 08:10:42 -04:00
2026-04-10 08:16:27 +01:00
2026-04-09 03:56:22 +01:00
2026-04-10 11:36:41 +01:00
2026-04-09 23:03:53 +02:00
2026-04-09 23:47:59 +01:00
2026-04-09 03:56:22 +01:00
2026-04-09 03:56:22 +01:00
2026-04-09 03:56:22 +01:00
2026-04-09 03:56:22 +01:00
2026-04-09 03:56:22 +01:00
2026-04-10 12:14:36 +01:00
2026-04-10 08:16:27 +01:00
2026-04-10 12:24:50 +01:00
2026-04-09 03:56:22 +01:00
2026-04-09 06:13:39 +01:00
2026-04-09 03:56:22 +01:00
2026-04-09 03:56:22 +01:00
2026-04-09 03:56:22 +01:00
2026-04-09 03:56:22 +01:00
2026-04-09 03:56:22 +01:00
2026-04-09 23:47:59 +01:00
2026-04-09 03:56:22 +01:00
2026-04-07 22:24:32 +01:00
2026-04-09 03:56:22 +01:00
2026-04-10 13:45:57 +01:00
2026-04-09 03:56:22 +01:00
2026-04-10 12:14:36 +01:00
2026-04-09 03:56:22 +01:00
2026-04-09 03:56:22 +01:00
2026-04-09 03:56:22 +01:00
2026-04-09 03:56:22 +01:00
2026-04-03 16:39:47 +01:00
2026-04-10 08:16:28 +01:00
2026-04-10 09:08:28 +01:00
2026-04-09 03:56:22 +01:00
2026-04-09 03:56:22 +01:00
2026-04-09 03:56:22 +01:00
2026-04-09 03:56:22 +01:00
2026-04-07 20:58:01 +01:00
2026-04-09 03:56:22 +01:00
2026-04-10 10:00:24 +01:00
2026-04-08 00:09:41 +01:00
2026-04-10 12:24:50 +01:00
2026-04-09 03:56:22 +01:00
2026-04-10 08:51:17 +01:00
2026-04-09 03:56:22 +01:00
2026-04-09 03:56:22 +01:00
2026-04-09 03:56:22 +01:00
2026-04-09 03:56:22 +01:00
2026-04-10 08:16:27 +01:00
2026-04-09 03:56:22 +01:00
2026-04-09 03:56:22 +01:00
2026-04-09 03:56:22 +01:00
2026-04-10 12:14:36 +01:00
2026-04-10 08:16:27 +01:00
2026-04-09 03:56:22 +01:00
2026-04-09 03:56:22 +01:00
2026-04-10 09:28:19 +01:00
2026-04-10 08:16:28 +01:00
2026-04-04 14:13:46 +09:00
2026-03-28 20:22:03 -04:00
2026-04-06 19:15:31 +01:00
2026-04-06 15:38:04 +01:00
2026-04-09 23:59:00 +01:00
2026-04-06 19:15:31 +01:00