feat(list): list TUI サブメニューの「戻る」に ← を追加し即応化#46
Merged
Conversation
Esc は矢印キーのエスケープシーケンス先頭バイトと衝突するため、 prompt_toolkit のフラッシュ待ち (約0.5秒) 分の遅延が体感される。 左矢印 (\x1b[D) は完結した曖昧さの無いシーケンスなので、これを running 操作サブメニューの主たる「戻る」キーとして即時反応させる。 Esc は互換のため残す。プロンプト文言も「← ・Esc 戻る」に更新。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
takemi-ohama
commented
Jun 9, 2026
takemi-ohama
left a comment
Contributor
Author
There was a problem hiding this comment.
🤖 cross-review | round 1 | codex | APPROVE
修正必須の指摘はありません。
takemi-ohama
commented
Jun 9, 2026
takemi-ohama
left a comment
Contributor
Author
There was a problem hiding this comment.
🤖 cross-review | round 1 | gemini | APPROVE
PR の変更内容を確認しました。修正すべき点はありません。
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.
概要
devbase listの running 操作サブメニューで、Esc による「戻る」の反応が体感的に重い問題を解消する。左矢印 (←) を「戻る」キーとして追加し即時反応させる。Esc (
\x1b) は矢印キーのエスケープシーケンス (\x1b[A等) の先頭バイトと同一のため、prompt_toolkit は単独 Esc か矢印キーの途中かを判別する目的でフラッシュ待ち (約0.5秒) を挟む。これが「重さ」の正体。左矢印 (\x1b[D) は完結した曖昧さの無いシーケンスなので、タイムアウト待ちゼロで即応する。サブメニューは検索絞り込み (
use_search_filter) を使わないため、←をカーソル移動と衝突させずに割り当てられる。Esc は互換のため残す。関連 Issue
変更点
_with_escape_backに左矢印 (Keys.Left) のバインドを追加し、←を主たる「戻る」キーとして即応化(Esc は互換のため据え置き)Esc 戻る→← ・Esc 戻るに更新Keys.Leftバインド存在・_MENU_BACK返却のアサーションを追加やらないこと
use_search_filter=Trueで←が検索カーソル移動に使われうるため変更しない(Esc / Ctrl-C のまま据え置き。Ctrl-C は元々即時)動作確認
tests/cli/test_project_list.py51 件すべて green (uv run pytest)devbase list→ running プロジェクト選択 →←の即応を確認