Skip to content

Commit c157295

Browse files
committed
chore
1 parent 6a5f539 commit c157295

File tree

1 file changed

+3
-2
lines changed
  • registry/coder-labs/modules/opencode/scripts

1 file changed

+3
-2
lines changed

registry/coder-labs/modules/opencode/scripts/start.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ fi
2727
printf "==================================\n"
2828

2929
OPENCODE_ARGS=()
30+
AGENTAPI_ARGS=()
3031

3132
validate_opencode_installation() {
3233
if ! command_exists opencode; then
@@ -51,7 +52,7 @@ build_opencode_args() {
5152
else
5253
PROMPT="$ARG_AI_PROMPT"
5354
fi
54-
OPENCODE_ARGS+=(--prompt "$PROMPT")
55+
AGENTAPI_ARGS+=(--I "$PROMPT")
5556
fi
5657
}
5758

@@ -62,7 +63,7 @@ start_agentapi() {
6263
build_opencode_args
6364

6465
printf "Running OpenCode with args: %s\n" "${OPENCODE_ARGS[*]}"
65-
agentapi server --type opencode --term-width 67 --term-height 1190 -- opencode "${OPENCODE_ARGS[@]}"
66+
agentapi server "${AGENTAPI_ARGS[@]}" --type opencode --term-width 67 --term-height 1190 -- opencode "${OPENCODE_ARGS[@]}"
6667
}
6768

6869
validate_opencode_installation

0 commit comments

Comments
 (0)