Repository navigation
Settle a pane operation from the topology that arrived before its answer - #477
Merged
Merged
Conversation
Herdr's session update showing a zoom, resize or split can reach the runtime while the request is still unanswered. observe_pane_operations skips an operation that is still transmitting, and Herdr sends nothing more once the layout stops moving, so the operation stayed awaiting topology until its deadline and turned away every later pane operation in the tab. The answer now checks the layout the core already holds.
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 #424
Summary
Windows web e2e
s2.spec.ts:55failed on its first attempt: aftertoggle_zoomthe second zoom never reached Herdr (data-zoomedstayedtrue), and afterresize_panethe nextclose_panenever closed.Cause: Herdr's session update that shows a pane operation's effect can reach the core before the answer to the request does.
The update is skipped because the operation is still
transmitting, Herdr sends nothing more once the layout stops moving, and the operation staysawaiting_topologyuntil its 5 s deadline, turning away every later zoom, resize and close in that tab (pane.operation_in_progress, not shown by design).The answer now also checks the layout the core already holds, so the operation settles at once.
Review
herdr-core/src/runtime/operations.rs- the confirmation predicate and completion are extracted unchanged fromobserve_pane_operations; the new call is at the answer (ingest_pane_mutation_result), no work under the lock beyond a map lookup.acknowledge_remote_operation/observe_remote_operations) has the same shape and is untouched; do we want a follow-up issue?Evidence
a_pane_operation_whose_topology_arrived_before_its_answer_settles_on_the_answer(control_order.rs) orders update-then-answer itself withFakeHerdr; it fails without the change and passes with it.herdr-coresuite 1418 passed, fmt and clippy-D warningsclean.s2.spec.ts:55yet; the Windows web e2e lane should show the first attempt passing. The local fix is proven on the ordering, not on Windows timing. Close failure ats2:382(run 37268688639) is the same chain: an unconfirmedresize_paneblocked the close, per the hided log.