Files
imeai-aKode/codex-rs/thread-manager-sample
andrea.difonzo 97b289d745 aKode fase 4: primo avvio guidato, temi, barra di stato
- Primo avvio (e /setup): benvenuto, tema con anteprima, provider
  (endpoint personalizzato, Ollama, LM Studio), modulo endpoint con chiave
  mascherata nel key store, modello da /models, prova di connessione
  Responses con errori distinti, SearXNG facoltativo verificato, fiducia
  cartella. Schermate in italiano. /model permette di cambiare provider.
- Temi UI: Scuro, Chiaro, Alto contrasto, Daltonici (blu/arancio, mai
  rosso/verde) su accenti, fantasmino, selezione, diff, link; /theme con
  anteprima dal vivo; [tui] ui_theme.
- Barra di stato: nuovi elementi server-endpoint e tokens-per-second;
  rimossi FiveHourLimit e WeeklyLimit; default server · modello · contesto ·
  tok/s · cartella (ramo).
- Chiave mai in config, log, database o snapshot (test).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 05:59:46 +01:00
..

ThreadManager Sample

Small one-shot binary that starts a Codex thread with ThreadManager from codex-core-api, submits a single user turn, and prints the final assistant message.

Authentication uses the configured credential storage under CODEX_HOME, including cli_auth_credentials_store, mcp_oauth_credentials_store, and features.secret_auth_storage. Local managed authentication requirements and auth routing settings are respected. This also applies to cargo run builds. Other execution settings remain the sample's built-in configuration.

cargo run -p codex-thread-manager-sample -- "Say hello"

Use --model to override the configured default model:

cargo run -p codex-thread-manager-sample -- --model gpt-5.2 "Say hello"

The prompt can also be piped through stdin:

printf 'Say hello\n' | cargo run -p codex-thread-manager-sample