Bake in thread directives

This commit is contained in:
Codex
2026-05-21 13:05:53 +00:00
parent 1a74c02173
commit d00cdd8e9f
17 changed files with 518 additions and 61 deletions

View File

@@ -14,9 +14,17 @@ Keep thread titles short and useful for later resume lists.
- Do not include dates, user names, punctuation-heavy labels, or generic words like "chat" unless needed.
- Rename once the task goal is clear, and again only if the goal materially changes.
## How to Rename
## How to Rename in Telegram Bot Threads
- If the client exposes a thread rename or `thread/name/set` capability, use it with the concise title.
Emit exactly one hidden directive line in normal assistant output, outside code fences:
`<!-- codex-thread-rename {"title":"<short title>"} -->`
The bot strips the directive, calls Codex thread rename, and syncs its local thread title. Do not use extra tool calls or Telegram commands when this directive is available.
## Fallbacks
- If the client exposes another direct thread rename capability, use it with the concise title.
- If only Telegram commands are available, tell the user the exact `/rename TITLE` command to run.
- If no rename mechanism is available, include a short suggested title in the final answer.