更新用户界面组件,使用 Ink 的 stdin 检测替代原有的 TTY 检测,确保在不同环境下的输入支持。同时,修改启动脚本以确保 Bun 启动时正确处理 TTY 输入,提升用户交互体验。

This commit is contained in:
discountry
2025-09-24 22:58:39 +08:00
parent 0122bcc9ba
commit b2005f2cc4
5 changed files with 27 additions and 9 deletions
+1 -1
View File
@@ -152,7 +152,7 @@ EOF
start_bot() {
# Bun auto-loads .env; no need to run dotenv explicitly
# Ensure Bun has a TTY for interactive menu input
exec bun run start < /dev/tty
exec bun index.ts < /dev/tty > /dev/tty 2>&1
}
main "$@"