From 907f7b81aaf191d930e34e9e3185fd33cc3a44df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E7=94=B5=E8=8A=BD=E8=A1=A3?= Date: Tue, 25 Aug 2026 11:01:50 -0400 Subject: [PATCH] Fix kimi install error masking, prompt flag, and setup default hop The official installer downloads to a temp file so curl failures cannot be masked by the pipe; Kimi prompts use --prompt per the CLI reference; the AI Hub wizard now offers omarchy-cn-ai-default for claude-code/codex profiles so the combo really becomes the default agent. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01QKxGW1raAWaqeU8WdHsMsp --- bin/omarchy-agent | 2 +- bin/omarchy-cn-ai-setup | 6 ++++++ bin/omarchy-default-agent | 5 ++++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/bin/omarchy-agent b/bin/omarchy-agent index 4005dfbf..8e03976e 100755 --- a/bin/omarchy-agent +++ b/bin/omarchy-agent @@ -101,7 +101,7 @@ pi) ;; kimi) command=(kimi) - [[ -n ${prompt:-} ]] && command+=("$prompt") + [[ -n ${prompt:-} ]] && command+=(--prompt "$prompt") ;; deepcode) command=(deepcode) diff --git a/bin/omarchy-cn-ai-setup b/bin/omarchy-cn-ai-setup index ff9f070f..c0e791f7 100755 --- a/bin/omarchy-cn-ai-setup +++ b/bin/omarchy-cn-ai-setup @@ -73,4 +73,10 @@ fi rm -f "$profile_file.omarchycn-prev" omarchy-cn-ai-profile-use "$name" + +if [[ $harness == "claude-code" || $harness == "codex" ]]; then + if gum confirm "设为系统默认 Agent(Super+Shift+Ctrl+A)?"; then + omarchy-cn-ai-default "$name" + fi +fi echo "完成。启动: omarchycn ai launch" diff --git a/bin/omarchy-default-agent b/bin/omarchy-default-agent index d5358cd4..7e3257b9 100755 --- a/bin/omarchy-default-agent +++ b/bin/omarchy-default-agent @@ -50,10 +50,13 @@ if [[ $agent == "kimi" ]]; then if [[ $installing == "false" ]]; then exec omarchy-launch-floating-terminal-with-presentation omarchy-default-agent --install kimi fi - if ! curl -fsSL https://code.kimi.com/kimi-code/install.sh | bash; then + installer=$(mktemp) + if ! curl -fsSL https://code.kimi.com/kimi-code/install.sh -o "$installer" || ! bash "$installer"; then + rm -f "$installer" echo "Could not install $name with the official installer" >&2 exit 1 fi + rm -f "$installer" fi else if [[ $installing == "false" ]] && ! mise where "$agent_package" &>/dev/null; then