fix(install): make install-lite rerunnable after interrupted setup#138
Draft
ljluestc wants to merge 1 commit into
wanikua:mainwanikua/danghuangshang:mainfrom
ljluestc:private/fix-132-install-lite-rerunljluestc/danghuangshang:private/fix-132-install-lite-rerunCopy head branch name to clipboard
Draft
fix(install): make install-lite rerunnable after interrupted setup#138ljluestc wants to merge 1 commit intowanikua:mainwanikua/danghuangshang:mainfrom ljluestc:private/fix-132-install-lite-rerunljluestc/danghuangshang:private/fix-132-install-lite-rerunCopy head branch name to clipboard
ljluestc wants to merge 1 commit into
wanikua:mainwanikua/danghuangshang:mainfrom
ljluestc:private/fix-132-install-lite-rerunljluestc/danghuangshang:private/fix-132-install-lite-rerunCopy head branch name to clipboard
Conversation
ljluestc
marked this pull request as draft
April 19, 2026 19:47
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题背景
Issue #132 反馈:
install-lite.sh在首次配置出错并强制退出(如Ctrl+C)后,再次运行可能表现为“无回显/无反应”。根因分析
read -s被打断后终端状态可能残留。变更内容
1)
install-lite.shstty)。INT/TERM/EXITtrap,支持中断后可直接重跑。-t 0/-t 1),非交互场景快速失败并提示。$CONFIG_DIR/.install-lite.lock2)
tests/install-lite.test.js新增回归测试,覆盖以下关键防护逻辑:
EXIT/INT/TERM清理与恢复 trap。验证
bash -n install-lite.sh✅npx --yes jest tests/install-lite.test.js✅(1 suite, 3 tests passed)风险评估
影响范围
install-lite.shtests/install-lite.test.js关联 Issue
Closes #132
Co-Authored-By: Oz oz-agent@warp.dev