Repository navigation
Hold a tab's pane and layout until the tab is announced - #846
Merged
Merged
Conversation
On CI a tab's pane_created and layout_updated can reach the core before its tab_created. Inside the reconcile window the replica dropped both as already held by the snapshot, which held neither; the tab_created then applied and the tab waited for a layout that had already come. A tab waiting for its layout holds its whole workspace back from publishing, so the agent tab strip stopped changing at whatever it last showed (issues 754 and 756: 4, 7, 8, 9 or 15 of 16 tabs). Every failed run with logs carries the same two event.reconciled lines, and a captured burst replayed with one tab_created moved after its pane and layout froze the published strip the same way. Outside the window the same order rebuilt the replica and reported a failure. The replica now holds such pane and layout events, as it already holds a focus that comes before its tab, and applies them in arrival order when the tab arrives. At most 64 are held; one more is a divergence that rebuilds the replica. Closes #754 Closes #756
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 #754
Closes #756
Closes #744
Summary
pane_created와layout_updated가 그 탭의tab_created보다 먼저 core에 닿을 때가 있습니다.tab_created로 탭은 이미 지나간 layout을 기다리게 됩니다.Review
herdr-core/src/session_sync/replica.rs- Herdr contract의 순서 가정과 publish 보류 규칙을 바꿉니다. reconcile 창 밖(Strict)에서 같은 순서는 전에는 replica 재구성과 화면 실패였고, 이제는 같은 보류입니다.Evidence
event.reconciled"created pane references a missing tab"와 "layout references a missing tab".tab_created를 그 pane·layout 뒤로 옮기면 CI와 같은 두 줄이 찍히고 publish된 탭이 3개에서 멈춥니다.a_pane_and_layout_announced_before_their_tab_apply_when_it_arrives(Reconcile, Strict 두 모드)는 main의 replica에서 실패하고 이 변경에서 통과합니다.tab-strip-fit.spec.ts로컬 12/12 통과.tab_created보다 먼저 보내는지는 로컬에서 재현하지 못했습니다(macOS에서는 배치마다 tab, pane, layout 순서). 근거는 CI 로그와 재생입니다.ENOTEMPTY로 실패했습니다. 탭 개수와 무관한 정리 경쟁이라 이 PR에 넣지 않았습니다.