Skip to content

Commit d84df55

Browse files
committed
fix: improve setup-agent output with rule path and explanation
1 parent 524de87 commit d84df55

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

internal/cli/setup_agent.go

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ One-time setup — applies to ALL projects automatically.`,
104104
rulePath := t.rulePath(home)
105105

106106
if fileExists(rulePath) {
107-
ui.Muted(fmt.Sprintf(" %s — already configured", t.name))
107+
ui.Success(fmt.Sprintf("%s — already configured", t.name))
108+
ui.Muted(fmt.Sprintf(" Rule: %s", rulePath))
108109
skipped++
109110
continue
110111
}
@@ -123,7 +124,8 @@ One-time setup — applies to ALL projects automatically.`,
123124
continue
124125
}
125126

126-
ui.Success(fmt.Sprintf("%s — configured (%s)", t.name, rulePath))
127+
ui.Success(fmt.Sprintf("%s — configured", t.name))
128+
ui.Muted(fmt.Sprintf(" Wrote rule: %s", rulePath))
127129
configured++
128130
}
129131

@@ -133,10 +135,17 @@ One-time setup — applies to ALL projects automatically.`,
133135
ui.Warn("No supported AI coding tools detected.")
134136
ui.Muted(" Supported: Claude Code, OpenAI Codex")
135137
ui.Muted(" Install one of these tools first, then run 'openboot setup-agent' again.")
136-
} else if configured > 0 {
137-
ui.Success(fmt.Sprintf("Done! Configured %d agent(s). They will now use openboot when dependencies are missing.", configured))
138138
} else {
139-
ui.Info(fmt.Sprintf("All %d detected agent(s) already configured.", skipped))
139+
ui.Info("What this does:")
140+
ui.Muted(" When your AI agent encounters a missing dependency (e.g. 'command not found'),")
141+
ui.Muted(" it will use 'openboot init' to detect and install all missing deps at once")
142+
ui.Muted(" instead of installing them one by one.")
143+
fmt.Println()
144+
if configured > 0 {
145+
ui.Success(fmt.Sprintf("Configured %d agent(s).", configured))
146+
} else {
147+
ui.Success(fmt.Sprintf("All %d detected agent(s) already configured. No changes needed.", skipped))
148+
}
140149
}
141150

142151
fmt.Println()

0 commit comments

Comments
 (0)