Repository navigation
Start the Agent cycle at the pane the page reported before the core echoes it - #548
Merged
Merged
Conversation
…choes it Since the pane order moved into the core, the cycle read the core's order, which moves only when the core echoes a pane_visit. A cycle opened in that gap started at the pane before. Until the core's order moves after a report, the reported pane now leads the order the page reads.
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.
Refs #540
Summary
#513이 들인 회귀를 고칩니다. Agent pane cycle이 방금 옮긴 pane이 아니라 그 전 pane에서 시작하던 문제입니다.
ui_state.recent_pane_ids)로 옮겼습니다. page는 방문마다pane_visit을 보내고, cycle은 snapshot의 순서를 읽습니다.pane_visit을 반영한 snapshot이 올 때 바뀝니다.recent.spec.ts:181, 기대w2:p1, 실제w1:p1)는 cycle로w2:p1에 옮긴 직후, sidebar에서 다시 cycle을 연 단계였습니다. Keep the Agent cycle's recent pane order across restarts #513 머지 직후 첫 queue run에서 처음 났습니다.web/src/recent.ts):docs/UI_BEHAVIOR.md와docs/ARCHITECTURE.md의 순서 문장에 echo 전의 읽기를 더했습니다.Review
web/src/recent.ts- failure path.unechoedVisit은 순서가 움직였다고 처음 본 순간 기다림을 끝냅니다. 순서가 처음 값으로 돌아와도 다시 살아나지 않게 하려는 것이고, 기존 test 하나가 그 경우를 잡았습니다.Evidence
areaCycle.test.ts"starts at the pane the page just reported, before the core echoes it, then follows the core"['t2-pane', 'other-tab-pane'](옛 순서)였고, 수정 후에는 보낸 pane이 맨 앞입니다.yes6개) 아래에서 다음을 반복했습니다.recent.spec.ts8/8 통과recent-agents-restart.spec.ts5/5 통과