fix(panel): support Orchestrator (Neon) and prevent future variants from falling back to Carbon

# Conflicts:
#	sidecars/panel/index.html
#	sidecars/panel/test/backend-harness.mjs
This commit is contained in:
fish
2026-11-20 16:30:37 +09:00
parent 168c2b1536
commit e1c3134e72
9 changed files with 363 additions and 62 deletions
@@ -169,7 +169,7 @@ function findHostTitlebar() {
const COMPOSER_EXCLUDED_ANCESTOR_SELECTOR =
'.part.titlebar, .part.statusbar, .quick-input-widget, .suggest-widget, .find-widget, .scm-editor, .search-view, [class*="@container/titlebar"]';
const COMPOSER_MODEL_LABEL_RE =
/\b(?:gemini|claude|gpt|argon|carbon|hydrogen|helix|flash|sonnet|opus|haiku|orchestrator|llama|deepseek|qwen|mistral|model_placeholder|placeholder_m\d+|o[134](?:-\w+)?)\b/i;
/\b(?:gemini|claude|gpt|argon|carbon|neon|hydrogen|helix|flash|sonnet|opus|haiku|orchestrator|llama|deepseek|qwen|mistral|model_placeholder|placeholder_m\d+|o[134](?:-\w+)?)\b/i;
const COMPOSER_MODEL_ATTR_RE =
/\bmodel[-_\s]?(?:select|picker|switch|selector|menu|name)\b|选择模型|切换模型/i;
const COMPOSER_MODE_EXACT_RE = /^(?:auto|自动)$/i;