Skip to content

Do not send a zoom on a tab's only pane - #737

Merged
yansfil merged 2 commits into
mainfrom
fix/zoom-single-pane
Oct 7, 2026
Merged

yansfil merged 2 commits into
mainfrom
fix/zoom-single-pane

Conversation

@yansfil

@yansfil yansfil commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Summary

pane이 하나뿐인 tab에서 zoom(⌥⌘↩)을 누르면, 그 뒤로 그 tab의 split(⌘D)·zoom·resize·close가 hided 재시작 전까지 전부 조용히 무시됐습니다.
Herdr는 pane이 하나인 tab의 zoom에 changed:false, reason:"single_pane"으로 답하는데, core는 이 답을 보지 않고 zoom 상태가 바뀌기를 기다립니다.
바뀌지 않으니 작업 기록이 unknown이 되고 기한도 사라져, 같은 tab의 다음 작업을 모두 "이미 진행 중"으로 거절했습니다.
이제 core가 pane 하나짜리(zoom되지 않은) tab의 zoom을 Herdr에 보내지 않고 진단 로그(pane.zoom.single_pane, device는 remote.control.zoom_single_pane)만 남깁니다.
우클릭 메뉴는 이미 이 경우 Zoom pane을 비활성화하고 있었고, 단축키 경로만 빠져 있었습니다.

Review

  • 판단해 주세요: 막힌 zoom을 화면에 알리지 않고 로그로만 남깁니다(메뉴 비활성과 같은 결과, 설계 원칙 Move live and remote Herdr parsing to the typed boundary #13).
  • 조심해서 볼 파일: herdr-core/src/runtime/events.rs, herdr-core/src/runtime/agents.rs - runtime mutex 안에서 도는 이벤트 처리. 추가된 것은 이미 들고 있는 layout을 한 번 조회하는 것뿐입니다.
  • 질문: 이미 unknown에 기한 없이 남은 작업이 tab을 무기한 막는 경로(expire_pane_operations, expire_remote_operations) 자체는 그대로 둡니다. 다른 원인으로 같은 상태가 생길 수 있어 별도 이슈로 다룰지 의견 주세요.

Evidence

  • 확인한 것: 별도 Herdr 0.9.1 서버에서 pane 하나 tab의 pane zoom이 changed:false, reason:"single_pane"을 반환하고, split 후에는 zoom이 정상 토글됨을 직접 확인했습니다.
  • 확인한 것: 운영 중인 앱 로그에서 13:29 zoom 이후 같은 tab의 pane.split.*.requested 8건이 Herdr로 하나도 나가지 않았고, snapshot에 그 zoom 기록이 unknown, 기한 null로 남아 있었습니다.
  • 확인한 것: 새 runtime 테스트 2개(local FakeHerdr, device)가 가드를 끄면 실패하고 켜면 통과합니다. herdr-core 전체 1641개 통과, verify-cargo.sh lint 통과.
  • 확인한 것: 단일 pane tab을 zoom하던 기존 테스트 3개는 fixture에 두 번째 pane을 넣어 원래 의도(여러 pane tab의 zoom 확정 순서)대로 고쳤습니다.
  • 확인하지 못한 것: 패키징한 앱에서 직접 눌러본 수동 확인은 하지 않았습니다(설치된 앱 교체 권한 없음). web/desktop e2e는 CI에 맡깁니다. 해당 spec은 여러 pane tab만 zoom합니다.

Herdr answers a zoom on a lone pane unchanged (single_pane), so no
topology ever confirmed the operation; once its deadline passed it sat
unknown with no deadline and refused every later split, zoom, resize and
close in the tab until hided restarted. The core now refuses such a zoom
before it reaches Herdr, on this machine and on a device, and logs it.
@yansfil
yansfil merged commit ae20a1c into main Oct 7, 2026
20 checks passed
@yansfil
yansfil deleted the fix/zoom-single-pane branch October 7, 2026 09:50
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