mirror of
https://github.com/Comfy-Org/ComfyUI.git
synced 2026-08-25 10:22:12 +08:00
feat: register supports_terminal CLI feature flag
Add a registered, bool-typed supports_terminal flag so a terminal host (e.g. ComfyUI Desktop) can advertise interactive-terminal availability to the frontend via --feature-flag supports_terminal=true. Registration is required so the value coerces to a real boolean; the frontend gates the terminal UI on a strict === true check. Amp-Thread-ID: https://ampcode.com/threads/T-019e9464-f097-7430-a762-405ffb717dae Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
@@ -25,6 +25,11 @@ CLI_FEATURE_FLAG_REGISTRY: dict[str, FeatureFlagInfo] = {
|
||||
"default": False,
|
||||
"description": "Show the sign-in button in the frontend even when not signed in",
|
||||
},
|
||||
"supports_terminal": {
|
||||
"type": "bool",
|
||||
"default": False,
|
||||
"description": "An interactive terminal host is available for this server (e.g. ComfyUI Desktop), so the frontend may surface a terminal/console UI",
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user