From b9fc134c99de6d10b14621695fa87e658a17dfe5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=80=A7=E9=A9=8A?= Date: Fri, 6 Nov 2026 19:55:40 +0800 Subject: [PATCH] Phone: a step's name stays on one line; every step says what it does MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From looking at the real phone page after the fixes: a long command squeezed its step's name into one character per line (執/行/指/令), and sending a file showed as 「工具」. The name keeps its width, the detail is cut with an ellipsis, and send_file, react and view_demo_step have names; the window says 「正在傳檔案給你」 instead of 「正在記下來」 while a file is sent. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Uirha2RVfSYmrhqNnqx9Z4 --- mobile/index.html | 3 ++- src/app/chat_ui.rs | 4 +++- src/tools.rs | 3 +++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/mobile/index.html b/mobile/index.html index 9c16e19..0682308 100644 --- a/mobile/index.html +++ b/mobile/index.html @@ -90,7 +90,8 @@ header .sub{font-size:12px;color:var(--text3);font-weight:400} .tool .st{width:14px;text-align:center;color:var(--text3);flex:none;display:inline-flex} .ic{vertical-align:-2px;flex:none} .tool.waiting .st{color:var(--accent)}.tool.failed .st{color:var(--danger)} -.tool .d{font:12px var(--mono);color:var(--text3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0} +.tool .d{font:12px var(--mono);color:var(--text3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;flex:1} +.tool>span:nth-child(2){flex:none;white-space:nowrap} .att{display:inline-flex;gap:6px;align-items:center;font-size:12.5px;background:var(--raise);border-radius:8px;padding:3px 8px;margin:3px 0 0;color:inherit;text-decoration:none;cursor:pointer} .attimg{margin:6px 0 0;max-width:100%}.attimg img{display:block;max-width:100%;max-height:70vh;border-radius:12px;border:1px solid var(--line);cursor:zoom-in}.attimg .wait{font-size:12.5px;color:var(--text3)} .card{border:1px solid var(--line);border-radius:14px;padding:12px 14px;margin:6px 0;background:var(--surface);max-width:420px} diff --git a/src/app/chat_ui.rs b/src/app/chat_ui.rs index 80ac997..7373d23 100644 --- a/src/app/chat_ui.rs +++ b/src/app/chat_ui.rs @@ -33,7 +33,9 @@ pub fn status_phrase(tool: Option<&str>, on_box: bool, waiting: bool, has_text: let Some(name) = tool else { return if has_text { pick(&WORKING) } else { pick(&THINKING) } }; match name { "read_file" | "list_dir" | "search" => "正在讀取檔案".into(), - "edit_file" | "send_file" => "正在記下來".into(), + "edit_file" => "正在記下來".into(), + "send_file" => "正在傳檔案給你".into(), + "computer_use_show" => "正在把畫面傳給你".into(), "shell" | "write_terminal" => "正在執行幾個指令".into(), "read_terminal" => "正在等待結果".into(), "web_fetch" | "browser_read" => "正在閱讀資料".into(), diff --git a/src/tools.rs b/src/tools.rs index bef09ab..ce41a4a 100644 --- a/src/tools.rs +++ b/src/tools.rs @@ -77,6 +77,9 @@ pub fn label(name: &str) -> &'static str { "read_terminal" => "查看背景指令", "write_terminal" => "輸入到背景指令", "open_for_person" => "打開給你看", + "send_file" => "傳檔案給你", + "react" => "按表情", + "view_demo_step" => "看示範", "publish_site" => "發布網站", "place_call" => "打電話", "send_sms" => "傳簡訊",