Status: accepted
Date: 2026-05-05
/projects treats threads under Documents/Codex as Codex UI Chats. Before this ADR, /newchat created an App Server thread without a cwd and only marked it locally as Chats, so the result did not match Codex UI Chat folders such as Documents/Codex/2026-04-28/tool-call.
/newchat <prompt>creates a real cwd underCTR_GO_CODEX_CHATS_ROOTbefore calling App Serverthread/start.- The default Chats root is
~/Documents/Codex; operators may override it withCTR_GO_CODEX_CHATS_ROOT. - New Chat cwd names are
<root>/<YYYY-MM-DD>/<prompt-slug>, with numeric suffixes for collisions. /newthread <prompt>is the no-Chat-folder escape hatch: it callsthread/startwithout a Telegram-selected cwd, but App Server may still attach the daemon default cwd.- App Server protocol is unchanged:
thread/startreceives either the generated Chat cwd or no Telegram-selected cwd.
/projects -> Open Chatsshows/newchatthreads as real Codex UI Chats.- No arbitrary filesystem path is accepted from Telegram.
- Existing no-cwd or default-cwd threads remain supported through
/newthreadand older cached rows.