Repository navigation
feat(settings): configure workspaces in a Settings tab - #426
Merged
Merged
Conversation
Settings > Workspaces lists the workspaces of ~/.infer/daemon.yaml with their reachability and adds, edits and deletes Kubernetes ones. An edit keeps the keys the form does not know and every other entry of the file. Part of #417
…running sessions Detect clusters adds a Kubernetes workspace for every kubeconfig context that has none. Each Kubernetes workspace shows whether its cluster has agent-sandbox, the Gateway API, the operator and a managed namespace, and how many sessions run there.
edenreich
marked this pull request as ready for review
November 5, 2026 16:38
This was referenced Nov 5, 2026
Contributor
|
🎉 This PR is included in version 0.53.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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.
Summary
Workspaces - the compute an agent's own computer runs on - could only be set up by editing
~/.infer/daemon.yamlby hand. This adds Settings > Workspaces: a list of the daemon's workspaces with their reachability, and a form to add, edit and delete them. Kubernetes is the only type for now, and the form has a Type selector so more can be added.Part of #417. It covers that issue's Settings part on top of the daemon workspaces from #422, which replaced the issue's pure-
kubectldesign. Moving a running chat to a workspace is not in this PR.Changes
frontend/components/WorkspacesTab.tsx: the tab. Each workspace shows its type, context and namespace, and whether the daemon can reach it, with the daemon's error when it cannot.gateway_env), forwarded variables (forward_env) and environment.backend/src/workspace_settings.rs:workspace_configs,save_workspace,delete_workspaceandkube_contexts. An edit keeps the keys the form does not know, such asmode, and every other entry ofdaemon.yaml. A new workspace with a name that exists is refused.daemon.yamlwhen it starts, so a change shows a Restart CLI now button. It is not automatic, because the restart stops running chats.infer-workspacesnamespace, with the CLI image of the installedinferversion and the names of the saved API keys for its gateway. Existing workspaces are never replaced.inference-gateway.com/managedlabel. A cluster that has everything gets a check mark, one that does not gets a warning naming what is missing and how to fix it. It reads the cluster withkubectl.frontend/lib/workspace-form.ts: form parsing and validation, with unit tests.tests/workspace-settings.yamladds a workspace through the form and finds it indaemon.yaml.AGENTS.mdadds the new button names and input ids to the DOM contract, and the README points at the tab.Testing
task e2e -- tests/workspace-settings.yamlpasses. The rest of the macOS e2e suite was not run.task devagainst a realdaemon.yamlwith two Kubernetes workspaces, read-only: both are listed, one reachable and one unreachable with the daemon's error.daemon.yaml, and the restart button, were only exercised through the e2e test's own home directory and the unit tests.task devagainst two real clusters, read-only: one shows "Cluster has everything it needs" with a "0 running" badge, the other a warning that it cannot be reached. A badge above zero was not seen for real, the count is unit-tested.cargo fmt --check, clippy and backend tests pass.