Improve IDE settings prompt formatting and default to yes#4705
Conversation
|
Commit: c280d1d
18 interesting tests: 9 SKIP, 7 KNOWN, 2 flaky
Top 20 slowest tests (at least 2 minutes):
|
d678d8d to
857404f
Compare
9869d22 to
b221e9b
Compare
simonfaltum
left a comment
There was a problem hiding this comment.
[Agent Swarm Review] Verdict: Approved
- 0 Critical
- 0 Major
- 0 Gap
- 2 Nit
- 1 Suggestion
Good UX improvement for the IDE settings prompt. Two nits: the yes/no handling is narrower than the standard pattern, and the gorule/testserver changes are unrelated to the prompt improvements.
| func promptUserForUpdate(ctx context.Context, ide, connectionName string, missing *missingSettings) (bool, error) { | ||
| question := fmt.Sprintf( | ||
| "The following settings will be applied to %s for '%s':\n%s\nApply these settings?", | ||
| "The following settings will be applied to %s for '%s':\n\n%s\n\nApply these settings?", |
There was a problem hiding this comment.
[Agent Swarm Review] [Nit]
The change from cmdio.AskYesOrNo to cmdio.Ask with manual [Y/n] handling means only exact "y" matches are accepted. strings.EqualFold(strings.TrimSpace(ans), "y") or also accepting "yes" would be more robust.
| @@ -0,0 +1,14 @@ | |||
| package gorules | |||
There was a problem hiding this comment.
[Agent Swarm Review] [Nit]
This new gorule and the testserver timestamp changes are unrelated to the IDE settings prompt improvements. Consider splitting into a separate PR for cleaner review.
There was a problem hiding this comment.
Seems indeed unrelated. The output changes are good though
a177bea to
e8fa14a
Compare
- Wrap settings JSON in { } with proper indentation for visual clarity
- Add blank lines around the settings block
- Default to yes (Y/n) when prompting to apply settings
- Shorten inline comments for less noise
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
b221e9b to
c280d1d
Compare
Summary
{ }with proper indentation so it stands out visually[Y/n]) — pressing Enter accepts// Global settinginstead of// Global setting that affects all remote ssh connections)Stacked on #4701.
Test plan
🤖 Generated with Claude Code