Repository navigation
fix(migrate): 실행을 시작한 뒤 첫 스냅샷 전까지 Plan 화면에 머문다 - #126
Merged
Merged
Conversation
시작하면 Plan 상태가 starting/started로 바뀌는데, 실행 스트림의 첫 스냅샷이 오기 전에는 run이 없어 단계가 setup으로 떨어졌다. 그래서 '이전 실행' 뒤 대상 선택 화면이 잠깐 보이고, 스냅샷이 와야 이전 지도가 떴다. runId가 있으면 Plan 검토 화면을 유지한다.
csh1668
added a commit
that referenced
this pull request
Nov 8, 2026
## 문제 승인(이전 시작) 버튼을 누르면 아래 이주 지도가 잠시 사라졌다가 다시 나타났다. #126 뒤에도 남은 증상이다. ## 원인 승인 뒤 `startMigration`이 시작 검사로 몇 초 걸리는 동안, Plan 목록 폴링이 Plan 상태 `starting`을 먼저 가져온다. 이때 `runId`는 아직 없어서 #126의 조건(`runId && plan`)에 걸리지 않고 단계가 setup이 된다. setup 화면에는 지도가 없어서(`map=null`) iframe이 언마운트되고, runId가 오면 새로 마운트되어 지도 페이지를 다시 불러온다. ## 변경 Plan이 있고 반려되지 않았으면(`pending_approval`, `approved`, `starting`, `started`) review 단계를 유지한다. 반려와 '다른 경로로 이전'은 planRef를 지우므로 setup으로 돌아간다. ## 확인 - `tsc --noEmit` 통과 - `vitest run src/App.test.tsx src/data` 20 files, 270 tests 통과
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.
문제
AI 없이 Plan을 만들고 이전을 실행하면, 잠시 뒤 대상 선택 화면으로 돌아갔다가 한참 뒤에야 이전 지도가 보였다.
원인
시작 직후 Plan 상태는
starting/started가 된다. 단계 판정은run이 있으면 run, Plan이pending_approval/approved면 review, 아니면 setup이다.useRun스트림의 첫 스냅샷이 오기 전에는run이 없어서 setup(대상 선택)으로 떨어졌다.변경
runId가 있고 Plan이 있으면 review 단계를 유지한다. 첫 스냅샷이 오면 run 단계로 넘어간다.확인
tsc --noEmit통과vitest run src/App.test.tsx src/data20 files, 270 tests 통과