Repository navigation
Conversation
A success answer confirms a tab focus when the session Hide last read already shows its tab. While an older request to the same checkout is still remembered as superseded, that session predates the older one: Herdr reports the older tab and then this one again. The confirmed tab is now remembered as superseded too, so its report is consumed instead of followed after the operator has moved on; following it moved the keyboard to the other Agent area in the middle of typed input.
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.
Closes #660
Summary
Agent edge drag splits the desktop column into two live tab groups에서 두 번째 Agent 영역에 친 글자가 중간에 빠졌다(desktop-group-live가desktp-gp-live,desktop-glive로 도착).원인은 테스트가 아니라 core의 탭 포커스 판정이다. 드롭(t2), 첫 영역 클릭(t1), 둘째 영역 클릭(t2)이 이어질 때 Herdr의 성공 응답은 세션 스트림보다 앞서 온다.
t1 클릭은 응답 시점에 Hide가 마지막으로 읽은 세션(드롭 전)이 t1을 보여 "응답으로 확인"됐지만, Herdr는 그 뒤에 t2(드롭)와 t1(클릭)을 차례로 다시 알린다.
그 늦은 t1 알림이 둘째 영역에 타이핑하는 도중 도착해 Herdr 자신의 이동으로 따라졌고, 키보드가 첫 영역으로 170~250 ms 넘어갔다 돌아왔다.
이제 같은 checkout의 이전 요청이 아직 superseded로 남아 있을 때 응답으로 확인된 탭도 superseded로 기억해, 그 늦은 알림을 그 요청의 답으로 소비한다.
Review
herdr-core/src/runtime/session.rsconfirm_tab_focus_already_shown- Herdr/core ownership(탭 포커스 권한). 확인은 그대로 하고, superseded가 남아 있을 때만 확인된 탭을 같은 목록(최대 16개, 3초 만료)에 더한다.view_focus.timed_out을 남긴다.Evidence
confirmed_by_answer t1->late_answer t2->confirmed_by_answer t2->followed t2->t1->followed t1->t2, 두 follow 사이에 둘째 영역 타이핑.view_authority_answers_confirmed_ahead_of_their_events_are_not_followed. TEMP CI에서 수정 없이 실패(늦은 t1이 탭을 t2에서 t1로 옮김, 두 번 모두), 수정 후 결과: 통과(herdr-core 1600개 모두 통과, retry 없음).--repeat-each 60) main에서 60회 중 4회 실패, 모두 둘째 영역 입력의 글자가 빠짐(deskt-group-live,n'deskto-group-live등), 4회 모두 hided 로그가 위와 같은 순서. 수정 후: 같은 조건 60회 모두 통과.