Fixed in b7938e0. RAII TerminalGuard with Drop cleanup. 88 tests pass. tmux integration test verified terminal restored on error exit (exit code 1) and normal exit (exit code 0).
Fixed in b7938e0. RAII TerminalGuard with Drop cleanup. 88 tests pass. tmux integration test verified terminal restored on error exit (exit code 1) and normal exit (exit code 0).
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
文件:
tui/main.rs:17-30分类: 终端安全
问题: 先启用 raw mode + alternate screen,再加载文件。加载失败时调用
process::exit(1),绕过所有终端恢复逻辑,导致用户 shell 不可用。建议修复: 使用 RAII guard(
TerminalGuard),Drop时恢复终端;文件加载移到终端初始化之前。Fixed in
b7938e0. RAII TerminalGuard with Drop cleanup. 88 tests pass. tmux integration test verified terminal restored on error exit (exit code 1) and normal exit (exit code 0).