Skip to content

Commit 7ed94ab

Browse files
committed
fix: start_agent.shでCLI_HOOKS_MODEをstart_agent_local.shにハードコード
- start_agent_local.sh生成後、sedでCLI_HOOKS_MODE変数をリテラル値に置換 - 環境変数依存を回避し、Worker起動時にCLI_HOOKS_MODE=customが確実に動作
1 parent d0ac3c9 commit 7ed94ab

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

communication/start_agent.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,10 @@ EOF
159159

160160
chmod +x "$FULL_PATH/start_agent_local.sh"
161161

162+
# CLI_HOOKS_MODEの値をstart_agent_local.shに埋め込む(環境変数依存を回避)
163+
sed -i.bak "s|CLI_HOOKS_MODE=\"\\\${CLI_HOOKS_MODE:-auto}\"|CLI_HOOKS_MODE=\"$CLI_HOOKS_MODE\"|" "$FULL_PATH/start_agent_local.sh"
164+
rm -f "$FULL_PATH/start_agent_local.sh.bak"
165+
162166
# 5. 起動スクリプトを実行
163167
./communication/agent_send.sh "$AGENT_ID" "./start_agent_local.sh $AGENT_ID $ADDITIONAL_OPTIONS"
164168

0 commit comments

Comments
 (0)