You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
refactor(agentcontainer): split IDE setup out of setup.go and share helpers - #1584
Moves the IDE-installation block (VS Code, JetBrains, notebook IDEs, browser IDE, background extension install) from cmd/internal/agentcontainer/setup.go into setup_ide.go (//go:build !windows, same tag as the moved code).
Dedupes two copy-pasted flows: vscodeSettingsJSON replaces the settings-marshal in setupVSCode and setupBrowserIDE; startExtensionsInstallInBackground replaces the duplicated command.StartBackgroundOnce launcher.
setupVSCode's two early-return checks collapse to one len(Extensions) == 0 check.
Why
setup.go mixes IDE setup with container, git, and mount wiring. Isolating IDE setup shrinks it and removes duplicated launcher code. Behaviour, log text, lock keys, and arg order are unchanged.
Validation
mise run cli:format: clean, no new changes.
mise run cli:lint:ci: 0 issues.
go test ./cmd/internal/...: pass.
go build ./cmd/... on darwin, linux, windows: pass.
go vet ./cmd/internal/agentcontainer/ (darwin, windows): pass.
GOOS=windows golangci-lint run ./cmd/internal/agentcontainer/...: 5 issues, identical on base 91c36557c (pre-existing, not introduced).
CodeRabbit CLI
coderabbit review --agent --committed --base-commit 91c36557c failed twice with WebSocket closed (recoverable connection error). No findings were produced. Not verified.
Auto-merge
Eligible: yes. Non-test changed lines: ~288 counting the verbatim move once (218 moved + 39 edited/added + 25 new-file header + 6 removed imports); 456 raw add+delete. 2 files, no test files touched.
Next
Move mount streaming and git credentials out of setup.go.
Summary by CodeRabbit
Improvements
IDE setup continues to support VS Code, JetBrains, browser-based IDEs, and notebook environments.
Configured extensions continue to install in the background where supported.
Setup and configuration errors are reported when setup cannot be completed.
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: 306a6258-7e7f-4fd9-9352-07dfff7191aa
📥 Commits
Reviewing files that changed from the base of the PR and between 91c3655 and 6bea087.
📒 Files selected for processing: 2
cmd/internal/agentcontainer/setup.go
cmd/internal/agentcontainer/setup_ide.go
💤 Files with no reviewable changes: 1
cmd/internal/agentcontainer/setup.go
Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.
📝 Walkthrough
IDE setup registries, dispatch, installation paths, and background extension-install helpers move from setup.go into a non-Windows implementation in setup_ide.go.
Changes: IDE setup
Layer / File(s)
Summary
Registries and dispatch cmd/internal/agentcontainer/setup.go, cmd/internal/agentcontainer/setup_ide.go
setup.go removes IDE-specific imports, registries, and installation helpers. setup_ide.go adds registries and dispatch for VS Code flavors, JetBrains servers, browser IDEs, and notebook IDEs. It also handles none and unmatched names.
VS Code and browser installation cmd/internal/agentcontainer/setup_ide.go
VS Code setup formats and serializes settings, installs the selected flavor, and starts background extension installation when configured. Browser IDE setup configures and installs the selected server, optionally starts background extension installation, and then starts the server.
Background helpers build internal setup commands and resolve the current executable. The browser helper uses the IDE’s async command for its lock key and subcommand.
No actionable issue was established in the IDE setup move. The change is ready for normal merge checks.
Pre-merge checks: 3 · 2
Failed checks: 2 warnings
Check name
Status
Explanation
Resolution
Description check
The description explains the refactor, motivation, behavior expectations, validation results, and known pre-existing lint issues. It does not follow the repository template because it omits the requir…
Update the description to use the repository template. Mark Refactor as the change type, complete the AI assistance section, state the issue reference, document the test commands and the reason no integration test was needed, complete the c…
Docstring Coverage
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 1 files.
Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed checks: 3 passed
Check name
Status
Explanation
Title check
The title clearly identifies the main change: moving IDE setup out of setup.go and sharing helper logic.
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Description check
Explanation
The description explains the refactor, motivation, behavior expectations, validation results, and known pre-existing lint issues. It does not follow the repository template because it omits the required Type of change, AI assistance, Checklist, and structured Testing sections, and it does not state an issue reference such as “none.”
Resolution
Update the description to use the repository template. Mark Refactor as the change type, complete the AI assistance section, state the issue reference, document the test commands and the reason no integration test was needed, complete the checklist, and retain the existing validation details and reviewer notes.
Fix all pre-merge checks with AI
✨ Finishing Touches
✨ Simplify code
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
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
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.
Summary
cmd/internal/agentcontainer/setup.gointosetup_ide.go(//go:build !windows, same tag as the moved code).vscodeSettingsJSONreplaces the settings-marshal insetupVSCodeandsetupBrowserIDE;startExtensionsInstallInBackgroundreplaces the duplicatedcommand.StartBackgroundOncelauncher.setupVSCode's two early-return checks collapse to onelen(Extensions) == 0check.Why
setup.gomixes IDE setup with container, git, and mount wiring. Isolating IDE setup shrinks it and removes duplicated launcher code. Behaviour, log text, lock keys, and arg order are unchanged.Validation
mise run cli:format: clean, no new changes.mise run cli:lint:ci: 0 issues.go test ./cmd/internal/...: pass.go build ./cmd/...on darwin, linux, windows: pass.go vet ./cmd/internal/agentcontainer/(darwin, windows): pass.GOOS=windows golangci-lint run ./cmd/internal/agentcontainer/...: 5 issues, identical on base91c36557c(pre-existing, not introduced).CodeRabbit CLI
coderabbit review --agent --committed --base-commit 91c36557cfailed twice withWebSocket closed(recoverable connection error). No findings were produced. Not verified.Auto-merge
Eligible: yes. Non-test changed lines: ~288 counting the verbatim move once (218 moved + 39 edited/added + 25 new-file header + 6 removed imports); 456 raw add+delete. 2 files, no test files touched.
Next
Move mount streaming and git credentials out of
setup.go.Summary by CodeRabbit