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

@@ -12,6 +12,8 @@ type Config struct {
TelegramToken string
DatabasePath string
CodexSocketPath string
CodexHome string
CodexStateDB string
UploadDir string
DefaultModel string
DefaultSandbox string
@@ -29,6 +31,8 @@ func Load() (Config, error) {
TelegramToken: os.Getenv("TELEGRAM_BOT_TOKEN"),
DatabasePath: envOr("DB_PATH", filepath.Join(wd, "data", "bot.db")),
CodexSocketPath: envOr("HOST_CODEX_SOCKET", filepath.Join(wd, "run", "codex.sock")),
CodexHome: os.Getenv("CODEX_HOME"),
CodexStateDB: os.Getenv("CODEX_STATE_DB"),
UploadDir: envOr("HOST_UPLOAD_DIR", filepath.Join(wd, "uploads")),
DefaultModel: os.Getenv("DEFAULT_MODEL"),
DefaultSandbox: envOr("DEFAULT_SANDBOX", "workspace-write"),