What's Changed
Script Execution Improvements
- Shebang support: Script files with shebang lines (e.g.
#!/opt/homebrew/bin/bash) now use the specified interpreter instead of the UI-selected shell - Homebrew shell support: Automatically loads
brew shellenvfor Homebrew-installed interpreters (e.g. bash 5)
Output Handling
- ANSI escape code stripping: Removes color codes, cursor control sequences from script output for clean display
- Carriage return simulation: Properly handles
\r-based progress spinners in live output - Robust UTF-8 decoding: Fixes blank stdout when scripts emit ANSI codes that split multi-byte CJK characters
- Smart output fallback: Success notifications and strong reminders prefer stdout; fall back to stderr only when stdout is empty
Strong Reminder
- Panel height now adapts to content (min 160px, max 500px) instead of fixed 360px
更新内容
脚本执行改进
- 支持 Shebang:脚本文件中的 shebang(如
#!/opt/homebrew/bin/bash)现在会被识别并使用指定的解释器执行 - Homebrew Shell 支持:自动为 Homebrew 安装的解释器加载
brew shellenv(如 bash 5)
输出处理
- ANSI 转义码剥离:去除颜色代码、光标控制等不可见序列,输出更干净
- 回车符模拟:正确处理
\r进度动画,实时输出只显示最新状态 - UTF-8 容错解码:修复脚本输出包含被 ANSI 码截断的中文字符时标准输出为空的问题
- 智能输出选择:成功通知和强提醒优先显示标准输出,仅在标准输出为空时显示错误输出
强提醒面板
- 面板高度根据内容自适应(最小 160px,最大 500px),不再固定 360px
Full Changelog: v1.3.3...v1.3.4