You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
원격 device pane 조작의 answer가 session 관측보다 늦으면 같은 탭의 다음 조작이 거절된다 #479
원격 device의 pane 조작(split, zoom, close)과 tab close는 PendingRemoteOperation으로 추적하고, 요청 answer가 와서 awaiting_topology가 된 뒤의 원격 session 관측으로만 확정된다(observe_remote_operations, herdr-core/src/runtime/operations.rs).
answer보다 먼저 도착한 원격 session 관측은 조작이 아직 transmitting이라 건너뛴다.
그 뒤 관측이 오기 전까지 조작이 남고, 같은 scope_id의 다음 조작은 remote.control.in_progress로 거절된다(herdr-core/src/runtime/agents.rs).
deadline(5초) 뒤 unknown이 되어도 거절 대상이라, 다음 관측이 확정해야 풀린다.
로컬 pane 조작의 같은 모양이 Windows web e2e s2.spec.ts:55를 흔들었고 #477이 로컬 경로를 고쳤다(Herdr server 로그에서 마지막 pane.zoom 미수신, hided에서 pane.operation.accepted 뒤 topology_confirmed 없음).
확인한 것: 원격 경로는 코드 읽기로 같은 모양이다. acknowledge_remote_operation은 awaiting_topology로만 바꾸고, observe_remote_operations는 awaiting_topology | unknown만 본다.
확인하지 않은 것: 원격 session 관측의 주기에 따른 피해 크기(주기 관측이 있으면 다음 관측까지 지연, 없으면 deadline까지 거절). 재현은 만들지 않았다.
What you expected
answer가 조작을 awaiting_topology로 바꾸는 시점에, 코어가 그 target에 대해 이미 받은 마지막 원격 session으로 한 번 더 확정을 시도한다.
session pass와 answer가 같은 판정 함수를 쓴다(#477의 로컬 방식).
완료 조건:
원격 zoom(또는 split/close)에서 관측이 answer보다 먼저 도착하는 순서를 테스트가 정해 만들고, answer 직후 remote_operations가 비며 다음 조작이 거절되지 않는 runtime 테스트가 있다.
원격 판정(observe_remote_operations의 확정 조건)이 함수 하나로 뽑혀 session pass와 answer가 함께 쓴다.
target별 마지막 원격 session을 새로 보관해야 하면 그 보관에 크기 상한이 있다.
timeout, 재시도, sleep을 바꾸지 않는다.
Steps to reproduce
원격 device의 탭에서 pane zoom을 요청한다.
원격 session 관측이 요청 answer보다 먼저 도착하는 순서가 되게 한다(테스트에서 순서를 정해야 한다).
같은 탭에서 다음 zoom, resize, close가 remote.control.in_progress로 거절되는지 본다.
Activity
test: start each e2e agent only once the core has started the one bef…