Skip to content

Close a pane's record on the press that sees it drawn - #1214

Merged
yansfil merged 1 commit into
mainfrom
fix/pane-record-toggle
Oct 15, 2026
Merged

yansfil merged 1 commit into
mainfrom
fix/pane-record-toggle

Conversation

@yansfil

@yansfil yansfil commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Related: #1185

Summary

main went red after #1185 on web e2e windows: overview-device.spec.ts pressed a pane head's record button twice and the record stayed open.
The test pressed before the fixture's label had moved the pane to its labelled session, so on a slow runner the second press asked for a different session and opened it, as it should.
Reading the toggle also found a real misread: it decided "the record is shown" from the lens the core keeps, while the lane draws Sessions for a project with no pull request whatever lens is kept, and the first press's lens change can still be on its way.
Now the lane's record says which record it draws (ui.drawnRecord), and the button closes it when that record is its session's and the lane is up; the e2e waits for the button to carry the labelled session.

Review

  • 판단해 주세요: 레인이 그리는 기록을 기준으로 닫는 것이 맞는지. 레인을 Escape로 치워 둔 상태의 누름은 예전처럼 기록을 다시 보여 줍니다.
  • 조심해서 볼 파일: web/src/SessionRecord.tsx - 기록이 mount될 때 drawnRecord를 쓰고 unmount 때 자기 것일 때만 지웁니다. web/src/actions.ts togglePaneRecord.

Evidence

  • 확인한 것: 실패를 로컬에서 재현. CPU 8배 느리게 3번 중 1번 실패, 두 번째 누름 때 pane의 session이 fixture-w1-p1에서 label-…로 바뀌어 있었음.
  • 확인한 것: 고친 뒤 같은 조건에서 6/6 통과. overview-device.spec.ts와 session-panel.spec.ts 전체 4개 통과.
  • 확인한 것: 새 unit test(코어가 PRs lens를 들고 있어도 그려진 기록은 닫힘)는 고치기 전 실패, 고친 뒤 통과. web tsc, lint, vitest 1645 통과.
  • 확인하지 못한 것: Windows 러너에서 직접 돌리지 않았습니다. 이 PR의 CI가 처음입니다.

…he labelled session in its e2e

The pane head's button decided from the lens the core keeps, while the lane draws Sessions for a project with no pull request whatever lens is kept, and the first press's lens change can still be on its way; the lane's record now says which record it draws and the button reads that. The e2e pressed before the fixture's label moved the pane to its labelled session, so the second press opened the new session's record on a slow runner; it now waits for the button to carry the labelled session.
@yansfil
yansfil merged commit b1e7637 into main Oct 15, 2026
38 of 40 checks passed
@yansfil
yansfil deleted the fix/pane-record-toggle branch October 15, 2026 23:09
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