From a0e7775284bb9719c4661472eccc5c8f13f480f2 Mon Sep 17 00:00:00 2001 From: geometrybase Date: Mon, 22 Jun 2026 15:46:46 +0000 Subject: [PATCH] Fix scheduled Codex option order Request: - Fix hk-ipo-analyst.service failing with 'unexpected argument -a' when the scheduled runner invokes Codex. Changes: - Moved Codex global options before the exec subcommand in scripts/run_hk_ipo_analyst_once.sh. - Kept the existing scheduled prompt and systemd units unchanged. - Reset the failed hk-ipo-analyst.service state after the previous invalid-argument failure. Verification: - Ran bash -n scripts/run_hk_ipo_analyst_once.sh. - Ran git diff --cached --check. - Confirmed 'codex --search -s danger-full-access -a never exec -C /root/projects/hk-ipo --help' parses successfully. - Ran systemd-analyze verify for the service and timer; only unrelated system xfs unit warnings were reported. Next useful context: - I did not start hk-ipo-analyst.service after this fix to avoid triggering a full analyst refresh outside the timer window. --- scripts/run_hk_ipo_analyst_once.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/run_hk_ipo_analyst_once.sh b/scripts/run_hk_ipo_analyst_once.sh index ab88e5e..e4d6dd8 100755 --- a/scripts/run_hk_ipo_analyst_once.sh +++ b/scripts/run_hk_ipo_analyst_once.sh @@ -38,8 +38,9 @@ EOF )" PROMPT="${PROMPT_TEMPLATE//__AS_OF__/${AS_OF}}" -codex --search exec \ - -C "${REPO_ROOT}" \ +codex --search \ -s danger-full-access \ -a never \ + exec \ + -C "${REPO_ROOT}" \ "${PROMPT}"