Split Telegram assistant and work chats

This commit is contained in:
2026-06-10 11:40:37 +09:00
parent f92fc8a718
commit 5e3a439cd8
4 changed files with 53 additions and 22 deletions

View File

@@ -45,10 +45,12 @@ class Config:
app_server_model: str | None
app_server_reasoning_effort: str | None
app_server_speed_mode: str
assistant_sandbox: str
readonly_sandbox: str
write_sandbox: str
resume_json_flag_style: str
allow_plain_text: bool
work_chat_ids: set[int]
timezone: str
schedule_poll_seconds: int
persistent_ws_idle_seconds: int
@@ -90,12 +92,14 @@ class Config:
app_server_model=app_server_model,
app_server_reasoning_effort=app_server_reasoning_effort,
app_server_speed_mode=app_server_speed_mode,
assistant_sandbox=os.getenv("CODEX_ASSISTANT_SANDBOX", "read-only"),
readonly_sandbox=os.getenv("CODEX_READONLY_SANDBOX", "danger-full-access"),
write_sandbox=os.getenv("CODEX_WRITE_SANDBOX", "danger-full-access"),
resume_json_flag_style=os.getenv(
"CODEX_RESUME_JSON_FLAG_STYLE", "before_resume"
),
allow_plain_text=_bool_env("ALLOW_PLAIN_TEXT", True),
work_chat_ids=_id_set("WORK_TELEGRAM_CHAT_IDS"),
timezone=os.getenv("BOT_TIMEZONE", "Asia/Seoul"),
schedule_poll_seconds=_int_env("SCHEDULE_POLL_SECONDS", 30),
persistent_ws_idle_seconds=_int_env("PERSISTENT_WS_IDLE_SECONDS", 600),