-
Notifications
You must be signed in to change notification settings - Fork 7
More normalized Python project naming #383
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughThe update standardizes the key construction in the Changes
Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
✨ Finishing Touches
🧪 Generate Unit Tests
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🔭 Outside diff range comments (1)
cmd/agent.go (1)
408-426:⚠️ Potential issueState map may drop remote agents on normalisation collision
Both assignment sites (
state[normalizedName] = …) now use the shortened key.
If two remote agents collide, whichever is processed last wins; the first simply disappears from the reconciliation making it impossible to delete or rename it from the CLI.Consider switching
stateto amap[string][]agentListState(bucket per key) or performing the collision check mentioned above.
🧹 Nitpick comments (1)
cmd/agent.go (1)
433-476: Local file reconciliation inherits the same collision risk
key := normalizedNamerepeats the pattern, so a second local directory that normalises to the same key replaces the first one and itsFoundLocalflag.
The user will only see one of the directories inagent list, making debugging painful.If maintaining the simpler key is desired, emit a warning and keep all filenames (e.g. slice in the struct) to avoid data loss.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
cmd/agent.go(3 hunks)
🧰 Additional context used
🧬 Code Graph Analysis (1)
cmd/agent.go (4)
internal/project/project.go (1)
Project(145-154)cmd/cloud.go (1)
Agent(45-49)internal/agent/agent.go (1)
Agent(12-17)internal/util/io.go (1)
Exists(14-19)
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: Analyze (go)
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Summary by CodeRabbit