refactor: hardcode startup message

This commit is contained in:
banteg
2025-12-29 03:32:56 +04:00
parent 09779861cc
commit daccc6e0b2
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ chat_id = 123456789
Optional keys:
- exec/resume: `startup_message`, `codex_cmd`, `codex_workspace`, `codex_exec_args`, `max_workers`, `codex_io_mode`, `codex_command_timeout_s`, `codex_no_child_timeout_s`
- exec/resume: `codex_cmd`, `codex_workspace`, `codex_exec_args`, `max_workers`
## Option 1: exec/resume
@@ -365,9 +365,8 @@ def run(
token = config["bot_token"]
config_chat_id = int(config["chat_id"])
startup_msg = config.get("startup_message", "✅ exec_bridge started (codex exec).")
startup_pwd = os.getcwd()
startup_msg = f"{startup_msg}\nPWD: {startup_pwd}"
startup_msg = f"codex exec bridge has started\npwd: {startup_pwd}"
codex_cmd = config.get("codex_cmd", "codex")
workspace = workdir if workdir is not None else config.get("codex_workspace")