Skip to content

fix(tuios): prefix x / Xの確認を1キーで答えられるようにする - #449

Merged
shonenm merged 1 commit into
mainfrom
fix/tuios-confirm-single-key
Oct 20, 2026
Merged

shonenm merged 1 commit into
mainfrom
fix/tuios-confirm-single-key

Conversation

@shonenm

@shonenm shonenm commented Oct 20, 2026

Copy link
Copy Markdown
Owner

Summary

prefix x / prefix X の確認を、tmux の confirm-before と同じく Enter なしの1キー(y / n)で答えられるようにする。

Changes

  • tui confirm の入力を read_key に変更。端末では raw mode で1文字読み、端末でない場合(パイプ)は1行読む。
  • docs/tools/tuios.md に、remote session では popup がそのホストの ~/dotfiles で動くので、ホスト側も git pull(dotsync)で揃える必要があることを追記。

背景

remote session で prefix x が効かなかった。原因は、ailab の dotfiles が #446 より前のままで、tui confirm がなかったこと。ailab は git pull --ff-only で #448 まで更新済み。この PR をマージした後も、ailab で同じく pull が必要。

Test plan

  • python3 scripts/test-tui.py
  • 隔離した daemon で、prefix x の後に n だけを押すと閉じず、y だけを押すと閉じることを確認(どちらも Enter なし)
  • ailab 上で tui confirm pane に n を渡し、プロンプトが表示され、pane が閉じないことを確認

🤖 Generated with Claude Code

tmux の confirm-before と同じく y / n を押した時点で確定する。
remote session では popup がホスト側の dotfiles で動く点も文書化する。
@shonenm
shonenm merged commit 7307ce9 into main Oct 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant