fix(cmd): lowercase pro logout log strings - #1087
Open
devsy-app[bot] wants to merge 1 commit into
Open
Conversation
## cmd/ subdirectory reviewed
`cmd/pro/` — specifically `cmd/pro/logout.go`.
## Issue found
AGENTS.md states that log messages must be lowercase. `cmd/pro/logout.go` had four log strings that started with an uppercase letter, inconsistent with both the repo convention and the rest of the file (which already uses lowercase log strings throughout `cleanupLocalWorkspaces`):
- `log.Warnf("Failed to list workspaces: %v", err)`
- `log.Warnf("Failed to shut down daemon: %v", err)`
- `log.Debug("Waiting for daemon to shut down")`
- `log.Warnf("Failed to wait for daemon to be stopped: %v", err)`
## Minimal change
Lowercased the four offending log strings in `cmd/pro/logout.go`. No logic, flag, error-handling, or import changes.
## Verification performed
- `task cli:format` — clean (no formatting changes beyond the intended edits).
- `task cli:lint:ci` — **0 issues**.
- `task cli:test` — passes, except for two pre-existing failures that also fail on a clean `origin/main` checkout and are unrelated to this change:
- `pkg/git` (`TestRepoClone*`) — the documented known pre-existing stale-assertion failure.
- `pkg/docker` (`TestRunCmd_CancelKillsProcessGroup`) — a sandbox process-group timing test; confirmed failing on a clean `origin/main` tree with this change stashed.
- `go build ./cmd/...` — clean.
- `go test ./cmd/...` — all `cmd/` tests pass.
This PR was created by an AI agent as part of an automated daily CLI review job.
✅ Deploy Preview for devsydev canceled.
|
✅ Deploy Preview for images-devsy-sh canceled.
|
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 0 |
| Duplication | 0 |
AI Reviewer: run a review on demand. To trigger the first review automatically, go to your organization or repository integration settings. AI can make mistakes. Always validate suggestions.
TIP This summary will be updated as you push new changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
cmd/ subdirectory reviewed
cmd/pro/— specificallycmd/pro/logout.go.Issue found
AGENTS.md states that log messages must be lowercase.
cmd/pro/logout.gohad four log strings that started with an uppercase letter, inconsistent with both the repo convention and the rest of the file (which already uses lowercase log strings throughoutcleanupLocalWorkspaces):log.Warnf("Failed to list workspaces: %v", err)log.Warnf("Failed to shut down daemon: %v", err)log.Debug("Waiting for daemon to shut down")log.Warnf("Failed to wait for daemon to be stopped: %v", err)Minimal change
Lowercased the four offending log strings in
cmd/pro/logout.go. No logic, flag, error-handling, or import changes.Verification performed
task cli:format— clean (no formatting changes beyond the intended edits).task cli:lint:ci— 0 issues.task cli:test— passes, except for two pre-existing failures that also fail on a cleanorigin/maincheckout and are unrelated to this change:pkg/git(TestRepoClone*) — the documented known pre-existing stale-assertion failure.pkg/docker(TestRunCmd_CancelKillsProcessGroup) — a sandbox process-group timing test; confirmed failing on a cleanorigin/maintree with this change stashed.go build ./cmd/...— clean.go test ./cmd/...— allcmd/tests pass.This PR was created by an AI agent as part of an automated daily CLI review job.