Conversation
PR Summary by QodoOpen kubeconfig contexts in isolated browser tabs
AI Description
Diagram
High-Level Assessment
Files changed (10)
|
Code Review by Qodo
1.
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 4 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want higher recall? High effort reviews run extra passes and find more bugs. A team admin can switch effort levels in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 202e813. Configure here.

Description
Allow standalone local Radar users to open another kubeconfig context in an isolated browser tab without retargeting the current tab.
Unknown errorType of change
How has this been tested?
Validation performed:
make buildcd web && npm run tscgo test ./internal/server -run 'TestWaitForLocalListener' -count=1The full
go test ./...run passes all changed packages but the existinginternal/aiTestCursorForceGrantEndToEndprobe times out when run in the concurrent full suite; it passes in isolation.make lintreports existing copylock warnings ininternal/server/exec_origin_test.goandinternal/server/localterm_disable_test.gobecause their table cases copyServervalues containingvitalsMetricsMemo.Checklist
Related issues
None.
Note
Medium Risk
The feature spawns local child processes with kubeconfig credentials and opens new loopback listeners, but it is restricted to unauthenticated standalone mode with same-origin checks on the launch API.
Overview
Standalone local Radar can open another kubeconfig context in a new browser tab without switching the current tab’s cluster. The UI adds a per-row open in new tab action on the cluster switcher when
contextTabsEnabledis true.The backend implements this by
POST /api/contexts/{name}/tab, which starts a loopback siblingradarprocess (own K8s clients, caches, SSE) with CLI flags--context,--context-source,--context-in-file, waits on a readiness file for the bound port, returns a local URL, and tracks/kills child processes on parent shutdown. Explorer gains matching flags plus validation that the three context-ref flags are all-or-nothing; child tabs useRADAR_SETTINGS_PATHfor isolated settings.Capability gating disables context tabs for auth, Cloud, in-cluster, and shared listeners; cluster info exposes
contextTabsEnabled.GetContextSourcein single-file kubeconfig mode now resolves non-current contexts (with tests). Docs added indocs/context-tabs.md.Reviewed by Cursor Bugbot for commit 4c2f6d0. Bugbot is set up for automated code reviews on this repo. Configure here.