Skip to content

Commit 6678f67

Browse files
committed
fix files style
1 parent c5fc2e5 commit 6678f67

File tree

3 files changed

+20
-21
lines changed

3 files changed

+20
-21
lines changed

registry/coder/modules/aider/main.tf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,10 @@ additional user input
199199
4. Use "state": "complete" only when finished with a task
200200
5. Use "state": "failure" when you need ANY user input, lack sufficient
201201
details, or encounter blockers
202-
EOT
203-
204-
final_system_prompt = var.report_tasks ? "<system>\n${var.system_prompt}${local.task_reporting_prompt}\n</system>" : "<system>\n${var.system_prompt}\n</system>"
202+
EOT
203+
204+
205+
final_system_prompt = var.report_tasks ? "<system>\n${var.system_prompt}${local.task_reporting_prompt}\n</system>" : "<system>\n${var.system_prompt}\n</system>"
205206

206207
# Map providers to their environment variable names
207208
provider_env_vars = {

registry/coder/modules/aider/main.tftest.hcl

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -51,18 +51,18 @@ run "test_custom_options" {
5151
command = plan
5252

5353
variables {
54-
agent_id = "test-agent-789"
55-
workdir = "/home/coder/custom"
56-
order = 5
57-
group = "development"
58-
icon = "/icon/custom.svg"
59-
model = "4o"
60-
ai_prompt = "Help me write better code"
61-
install_aider = false
62-
install_agentapi = false
63-
agentapi_version = "v0.6.3"
64-
credentials = ""
65-
base_aider_config = "read:\n - CONVENTIONS.md"
54+
agent_id = "test-agent-789"
55+
workdir = "/home/coder/custom"
56+
order = 5
57+
group = "development"
58+
icon = "/icon/custom.svg"
59+
model = "4o"
60+
ai_prompt = "Help me write better code"
61+
install_aider = false
62+
install_agentapi = false
63+
agentapi_version = "v0.6.3"
64+
credentials = ""
65+
base_aider_config = "read:\n - CONVENTIONS.md"
6666
}
6767

6868
assert {
@@ -131,9 +131,9 @@ run "test_ai_provider_env_mapping" {
131131
command = plan
132132

133133
variables {
134-
agent_id = "test-agent-provider"
135-
workdir = "/home/coder/test"
136-
ai_provider = "google"
134+
agent_id = "test-agent-provider"
135+
workdir = "/home/coder/test"
136+
ai_provider = "google"
137137
custom_env_var_name = ""
138138
}
139139

registry/coder/modules/aider/scripts/start.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,13 @@ fi
2626

2727
build_initial_prompt() {
2828
local initial_prompt=""
29-
3029
if [ -n "$ARG_AI_PROMPT" ]; then
3130
if [ -n "$ARG_SYSTEM_PROMPT" ]; then
3231
initial_prompt="$ARG_SYSTEM_PROMPT $ARG_AI_PROMPT"
3332
else
3433
initial_prompt="$ARG_AI_PROMPT"
3534
fi
3635
fi
37-
3836
echo "$initial_prompt"
3937
}
4038

@@ -49,7 +47,7 @@ start_agentapi() {
4947
agentapi server -I="$initial_prompt" --type aider --term-width=67 --term-height=1190 -- aider --model $ARG_MODEL --yes-always
5048
else
5149
agentapi server --term-width=67 --term-height=1190 -- aider --model $ARG_MODEL --yes-always
52-
fi
50+
fi
5351
}
5452

5553
# TODO: Implement MCP server for coder when Aider support MCP servers.

0 commit comments

Comments
 (0)