fix(desktop): hide single Host settings selector - #3799
Merged
Conversation
The Host selector provides no choice when only one profile is enabled. Render it only when multiple enabled Hosts are available while retaining unavailable enabled entries in the selector. Generated-by: Codex
liuxiaocs7
approved these changes
Aug 25, 2026
Wait for the asynchronously refreshed Host catalog before interacting with the selector in the generation-revalidation story.
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.
English
Summary
Hide the Runtime Host selector in Settings when only one Host is enabled. The selector remains visible when multiple enabled Hosts provide a real choice, including enabled Hosts that are temporarily unavailable.
Verification
git diff --checkpassedScreenshots
AI use
Tool(s) and scope: OpenAI Codex implemented the condition and performed type, formatting, lint, and real-window verification under maintainer direction
Checklist
Does this PR entail a change in behavior?
简体中文
摘要
当 Settings 中只有一个已启用 Host 时隐藏 Runtime Host selector。存在多个已启用 Host、因而确实可选择时仍显示 selector,包括暂时不可用但仍处于启用状态的 Host。
验证
git diff --check通过截图
AI 使用
工具与范围:OpenAI Codex 在维护者指导下实现条件修改,并完成类型、格式、lint 与真实窗口验证
检查清单
本 PR 是否会改变行为?