Repository navigation
대기 중인 TUI의 100ms 재그리기 깜빡임 수정 - #147
Merged
Merged
Conversation
입력을 기다리는 동안에도 100ms마다 커서를 화면 구석으로 보내 크기를 묻고 (ESC[6n) 입력창을 지웠다 다시 그렸다. iTerm2에서는 깜빡임으로 보이고, 한글 IME 조합 글자가 입력줄이 아닌 곳에 그려졌다(tmux 실측 대기 5초 61KB). - 시간 재그리기는 spinner가 돌 때와 resize 뒤 1초 동안만 한다. - 화면 크기 조회는 PTY 보고 크기가 바뀌었거나 resize 직후일 때만 한다. PTY 지연 대응(f1171ba)은 그대로 유지된다. - 같은 프레임은 쓰지 않고, 나머지는 동기화 출력(?2026)으로 감싼다. - REPL 메시지가 오면 항상 다시 그려 상태 변화를 놓치지 않는다. 대기 5초 출력 0바이트, smoke-inline-tui 3종(rapid-resize·PTY 지연 포함) 통과. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tmux는 resize 중에 입력창 뒤 화면을 reflow·잘라내므로, 마지막으로 그린 프레임과 같다는 것이 화면이 그대로라는 증거가 되지 않는다. 건너뛰기 때문에 rapid-resize 스모크의 heldout-burst-restored가 CI에서 실패했다. resize 뒤 2초 동안은 항상 다시 그린다. 스모크의 stty.txt 대기는 셸이 파일을 만든 직후 빈 내용을 읽어 "raw mode not restored"로 가끔 실패했다. mode 목록이 써질 때까지 기다린다. 맥 로컬 rapid-resize: 수정본 8/8 통과, main 7/8(같은 heldout-burst-restored 조각 잔상은 기존에도 가끔 난다, MEMORY.md 기록). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
문제
대화형 TUI가 입력을 기다리는 동안에도 100ms마다 다음을 반복했다.
ESC[6n).ESC[2K) 다시 그린다.iTerm2에서는 계속 깜빡이고, 한글 IME 조합 글자가 입력줄 아래에 그려졌다. tmux에서 재 보면 대기 5초 동안 61KB가 출력됐다.
수정
?2026)으로 감싼다.검증
smoke-inline-tui.py기본·--rapid-resize·--results --rapid-resize통과(macOS,TMPDIR=/tmp)cargo test -p xgen-cli243 passed, clippy·fmt 통과, 새 단위 테스트only_a_running_or_resizing_pane_is_repainted_on_a_timer🤖 Generated with Claude Code