File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
registry/coder-labs/modules/opencode/scripts Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 2727printf " ==================================\n"
2828
2929OPENCODE_ARGS=()
30+ AGENTAPI_ARGS=()
3031
3132validate_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
6869validate_opencode_installation
You can’t perform that action at this time.
0 commit comments