Repository navigation
fix: read the engine state under its current name in the restart wait - #2398
Merged
Merged
Conversation
yansfil
commented
Nov 10, 2026
yansfil
left a comment
Contributor
Author
There was a problem hiding this comment.
첫 리뷰. head 8e0b3b9878d102cb1acf09a605ce7e27c7b38d07, base 8284fb6fb53a657d453545d53c9d77d4ece835da.
판정: pass. 요청한 필드 이름 수정 범위에서 차단 의견 없습니다.
hide-core/src/model.rs:7421의 직렬화되는 실제 필드는engine이고 별도 rename이 없습니다. 변경된web/e2e/hided-fixture.ts:283,287은web/src/App.tsx:341과web/src/navigation.ts:183,321,339가 읽는 필드와 일치합니다.- web·desktop·core·daemon에서 옛
status.herdr연결 상태를 읽는 다른 곳은 찾지 못했습니다. 남은herdr_import와herdr_import_devices는 이전 데이터 가져오기 기능의 별도 유효 필드입니다. - 상태 이름의 타입 선언과 접근만 바뀌었습니다.
connected판정, 저장 Workspace 확인, 대기 한도, 연결의 finally 정리와 실패 시 daemon 정리는 그대로입니다. sleep·retry·조건 완화가 없고 공유 fixture에서 모든 재시작 호출을 함께 고칩니다. engineering 원칙 13에 맞는 공통 원인 수정입니다. git diff --check통과. 로컬 e2e나 앱 조작은 하지 않았습니다. 이번 긴급 요청과 노드 범위에 따라 필드 계약만 검토했으며, Linux·Windows 재시작 CI 성공을 요구하는 별도 c2 및 ci 줄의 통과를 대신하지 않습니다.- minor, non-blocking: PR 템플릿의 접힌
Verification record에 head와 최종 CI 결과를 남겨 주세요.
정확성·공통화·단순성·모듈 경계·소유권과 한도·테스트 관점에서 추가 차단 사항 없습니다.
yansfil
enabled auto-merge
November 10, 2026 15:30
This was referenced Nov 10, 2026
HyunjunJeon
pushed a commit
to HyunjunJeon/hide
that referenced
this pull request
Nov 12, 2026
Closes with-hide/hide-private#526 Closes with-hide/hide-private#599 Refs with-hide/hide-private#395, with-hide/hide-private#530, with-hide/hide-private#117, with-hide/hide-private#586 Refs with-hide/hide-private#832 ## Summary - Start the checkout PR flow on Main after its setup has focused another workspace. - Prevent Windows test browsers from losing local page or resource requests during shell startup. - Retain the failed row and pointer state for a separate, unreproduced late card-hover failure. ## Review - **Risky files**: browser-launch.cjs merges installed runner defaults; the desktop preload extends effective flags. - **Risky files**: checkout-pr.spec.ts retains discovery's connection, then resets first-run selection before Main. - **Risky files**: desktop browser.spec.ts uses the shared arguments for its plain Chromium launch and checks the applied features through CDP. - **Decide**: The narrow upstream fix uses the locked runner's internal argument API; a changed shape fails startup. - An entire runner upgrade would also replace the browser revision and is outside this stabilization change. - **Cost**: The hover observer exists only for one test phase, retains 32 transitions, and is removed on every exit. - **Cost**: Splitting the plain-browser notice from the native-view lifecycle adds one isolated fixture start so Windows CI checks that launcher too; its existing notice assertions are retained. - [Windows run 41016473655](https://github.com/with-hide/hide/actions/runs/41016473655/job/123933953907), tracked by [private with-hide#130](with-hide/hide-private#130), records the same document-load error. - [with-hide#832](with-hide/hide-private#832) tracks one later card-hover failure; this PR does not claim its cause is fixed. ## Tests - **Layer**: Unit feature merging; real browser startup and desktop recovery cross the actual host launch boundary. - The desktop plain-browser case checks the effective final disabled-feature list, retained runner defaults and the Windows loopback fix before opening the shell. - It passed its first Windows CI attempt on the final head in [the desktop lane](https://github.com/with-hide/hide/actions/runs/42860546110/job/129985854339). - Units cannot observe which feature list the launched browser applies; the startup check reads that applied state. - **Catches**: Removing the Windows feature fix failed two merge checks; restoring it passed all three. - **Repeat**: Linux/macOS: five flows x20, [100 passed each](https://github.com/with-hide/hide/actions/runs/42832076296). - Desktop recovery/relaunch: each x10 on macOS/Windows, retries 0, [40 passed](https://github.com/with-hide/hide/actions/runs/42831271844). - Final Windows: five flows x20, retries 0, [100 passed](https://github.com/with-hide/hide/actions/runs/42844846265/job/129929485236). - **Waits**: No new wait, delay, retry, timeout or threshold; the existing Main assertion follows explicit state setup. ## Evidence - **Verified**: Local startup/checkout flows, desktop recovery/relaunch, unit 3, lint, types, builds and policy checks. - **Verified**: The split desktop plain-browser and native-view flows passed locally without retries; desktop lint and typecheck passed. - **Verified**: A controlled trigger replacement preserved the original failure and captured mounts=2 before teardown. - **Verified**: [Required CI](https://github.com/with-hide/hide/actions/runs/42860546110) and independent review passed on final head c532660. - **Not verified**: The historical reference-only causes and the late hover cause. <details><summary>Failure evidence and review boundaries</summary> - with-hide#526's run 42780431716 drew Workspace while the test expected Main after setup focused its agents. - with-hide#599's run 42080456072 had an unmounted shell, a successful document and a failed entry script with ERR_NO_BUFFER_SPACE. - Private with-hide#130 is handled separately by public PR with-hide#2372; its Windows host log recorded window.load_failed ERR_NO_BUFFER_SPACE after a normal daemon start. - The test-only startup fix follows [the upstream fix](microsoft/playwright#43605) and [the browser defect](https://issues.chromium.org/issues/572515601). - The locked runner 1.63 lacks that fix. The helper reads its installed defaults rather than copying a version-specific list. - with-hide#395's run 42140863283 attached its daemon before its shell wait failed, with no page-side or failed-load signature for that exact wait. Its initial report used the retired fixture startup path; neither identifies this PR's connection cause. - with-hide#530's original failure drew Main with a failed sidebar boundary. A controlled stylesheet abort reproduced that screen and a missing CSS-token diagnostic, but the original artifact retained no asset-failure signature. - with-hide#117's latest retained record has only a whole-test timeout. Its historical lost step remains unidentified. - with-hide#586's run 42359435922 explicitly reports the loopback error, but its initial whole-test timeout and its separate focus flow were not resolved by the targeted repetitions. - For those next failures, inspect pageSide screen/project state, request status, failed requests, renderFailures and renderDiagnostics. The dump now retains failed regions and the newest eight relevant render diagnostics. Each reference-only issue has a comment with its confirmed facts, remaining gaps and next dump. - with-hide#536 was closed separately because commit 8be1505 deleted its Home collision test. The current no-project startup spec does not replace that behavior. - The first Windows repetition had 99/100 passes: checkout-pr.spec.ts:273 failed at the final light-theme hover after the shell, row, PR glyph and browser display had already drawn. - A diagnostic-only repeat at 5eefccb passed 100/100: all 20 checkout attempts retained one trigger mount, had PR facts ready and hit that row with the pointer. The card opened after its normal hover delay. This did not reproduce or establish the cause of the earlier failure. - The replacement diagnostic captures the failing state inside that step, before teardown can add a disconnected banner and move the row. It records the checkout key, mounts, pointer hit, geometry, focus, visibility, drag marks and tooltip state, preserves the original error, and reports independent cleanup failures. - The old conversation-date fixture also caused automatic sleep of the Main setup agent in the failed run. A current-clock proposal removes that sleep locally, but its relationship to the hover failure is unconfirmed. It remains an uncommitted local patch documented in with-hide#832. - No product input, runtime mutex, snapshot wire or rendering path changes. The operator's installed application was untouched. </details> <details><summary>Verification record</summary> - Final head: c532660. - Startup repeat candidate 4231d60: Linux/macOS each five flows x20, no retry. - Desktop repeat candidate ce0dffe: JSON reports on each OS show expected=20, unexpected=0, skipped=0, flaky=0, repeatEach=10 and retries=0. - Diagnostic-only Windows candidate 5eefccb: run 42838637529, five flows x20, no retry, 100 passed. The temporary early observer and trace flag were reverted. - Final Windows repeat candidate 49b560a: run 42844846265, five flows x20, retries=0, 100 passed; job log confirms the exact tested commit. - All temporary workflow changes are reverted. The repeated specs, shared startup fixtures and guide match the final Windows repeat candidate; the later desktop browser.spec.ts regression and its smaller size baseline are the only differences in those test trees. - Head 1933d66 is a source-identical verification commit after f45c106, added to regenerate the synthetic merge against the corrected base. - Review follow-up c532660 applies the shared launch settings to the desktop plain browser and separates that existing notice contract into a Windows-covered case. - Local current source: checkout hover flow passed without retries; a controlled browser replacement captured the original failure and two mounts; web lint and test-size budget passed. - Earlier unchanged-source checks: web build; web/desktop lint; desktop typecheck; startup/checkout 3; desktop recovery/relaunch 2; merge unit 3; design contract and policy checks passed. - Manual repeat dispatches that skipped every test and draft-only verify failures are excluded from verification evidence. - Independent review and required CI 42860546110 passed on c532660. - Ready run 42849933157 checked synthetic merge 83a0f35 against base 8284fb6, which predates with-hide#2398. - That merge still waited on the retired status.herdr field; current main uses status.engine. All hard web failures were at that restart boundary. One required failed-job rerun was started. - The regenerated merge f4ed9d1 includes the corrected status.engine wait. - Final run 42860546110 tests merge 6b977ba containing c532660; completed job logs confirm that checkout. - Its Linux suite has 412 passes and eight Windows-only skips, the retry-free changed-spec repeat has 80 passes, Windows web has 85 passes, and Windows desktop has 24 passes and one existing platform skip. The new plain-browser startup case passed its first attempt in 6.9 seconds. </details>
HyunjunJeon
pushed a commit
to HyunjunJeon/hide
that referenced
this pull request
Nov 12, 2026
…e#2392) ## Summary 알림을 준비하는 사이 수신자의 상태가 바뀌면, 거절 기록과 편지 읽기가 서로 기다리던 문제를 고칩니다. 거절 판정과 그 기록을 분리해 다른 편지 요청도 계속 처리합니다. 이 PR은 잠금 문제만 수정합니다. 읽기가 디스크 저장을 기다리다 시간 초과되는 문제는 별도 이슈로 남기며 #173은 열린 채로 유지합니다. Refs with-hide/hide-private#173 Refs with-hide/hide-private#831 Refs with-hide/hide-private#823 ## Review - **조심해서 볼 파일**: `hide-core/src/delivery/doorbell.rs`, 예약 이후 거절 경로가 `Mutex<Runtime> 아래 blocking I/O 금지` 규칙을 지키도록 판정 값을 먼저 꺼내 잠금을 해제합니다. 새 벨과 잃어버린 벨의 Enter 처리가 같은 수정 경로를 씁니다. - **순서 검증**: 기존 벨 fixture가 실제 예약 완료를 확인한 뒤 입력을 도착시킵니다. 거절 기록 완료, 입력 미전송, 편지 보류를 확인합니다. 기존 원격 테스트의 기대값과 대기 예산은 그대로입니다. - **인접 경로 검토**: 알림·composer 주변의 임시 잠금과 동기 기록 경로를 확인했습니다. 같은 잠금을 보유한 채 저장 응답을 기다리는 추가 경로는 찾지 못했습니다. - **비용 검토**: 새 작업자·큐·주기 작업·알림 발행을 추가하지 않습니다. 기존 판정 결과의 잠금 범위만 줄입니다. ## Evidence - **확인한 것**: 상태 전이를 고정한 회귀 검사는 수정 전 `doorbell.transaction_failed: delivery_timeout`으로 실패했습니다. 수정 후 관련 벨 처리 검사 63개와 최종 커밋의 회귀 검사 1개가 통과했고, 관련 정적 검사와 전체 포맷 검사가 통과했습니다. - **반복 검증**: [원격 mailbox ARM 실행](https://github.com/with-hide/hide/actions/runs/42835065538)에서 대상 검사 `connected_remote_panes_receive_once_and_disconnect_keeps_the_same_letter_pending`는 재시도 0으로 20 PASS, 0 FAIL입니다. 전체 nextest 요약은 `20/20 stress run iterations: 18 passed, 2 failed`이며 실패 목록은 다른 두 검사입니다. #823 때문에 실행 색은 증거로 쓰지 않습니다. - **남은 범위**: [저장 지연 이슈](https://github.com/with-hide/hide-private/issues/831)에 전송 2ms, 자격 확인 0ms, 저장 1,926ms, hook 시간 초과 1,248ms의 측정과 crash 후 재전달 정책의 결정 필요성을 기록했습니다. 이 PR은 해당 저장 경계를 변경하지 않습니다. - **확인하지 못한 것**: [이전 전체 CI](https://github.com/with-hide/hide/actions/runs/42836142714)의 Linux·Windows e2e가 재시작된 core와 저장된 Workspace를 기다리다 실패했습니다. 공유 재시작 fixture 수정 [with-hide#2398](https://github.com/with-hide/hide/pull/2398)이 main에 반영되어, 수정된 main을 포함한 새 merge commit으로 CI를 다시 확인합니다. 아직 전체 통과로 주장하지 않습니다. 화면 변경이 없어 네이티브 화면 검사는 실행하지 않았습니다. <details><summary>Verification record</summary> - Base: `10723b6412b857261ba0cb7df43fc780b6799eb8`. - Head: `f78492feed12258788d0a86803e0b33815d5b45b`. - 수정 전 회귀 검사: 1 failed, exit 101, `delivery_timeout`, 5.29s. - 수정 후 관련 검사: 63 passed, 0 failed, 1.64s. - 최종 커밋의 회귀 검사: 1 passed, 0 failed, 0.27s, exit 0. - `scripts/verify-cargo.sh clippy -p hide-core --lib --tests -- -D warnings`: exit 0. - `scripts/verify-cargo.sh fmt-check`: exit 0. - ARM 반복 대상: 1/20부터 20/20까지 각 1 PASS, FAIL 목록에 대상 검사 없음. 전체 lane의 두 실패는 `node_contract::a_device_s_pane_socket_lives_with_its_link`와 `remote_delivery::a_spawn_with_machine_starts_the_agent_on_the_device_under_its_caller`입니다. - [수정 전 진단 실행](https://github.com/with-hide/hide/actions/runs/42834157902): 대상 검사 2회 실패. `rd-6UCRRp`는 상태 검사 완료 후 저장 1,926ms, `rd-ukmkNU`는 상태 재검사 진입 후 미완료로 두 원인을 보여줍니다. - 계측 코드와 임시 artifact 보존 설정은 모두 제거했습니다. 최종 변경은 벨 처리 코드와 전달 동작 문서 두 파일입니다. - 공유 fixture 수정의 main merge: `330094332f0d5c446102e9d24d0a12dd4313d926` (with-hide#2398). 본문 갱신으로 새 CI를 요청하며 실제 checkout SHA와 포함 관계를 확인합니다. - 독립 검토: 위 head에서 통과. 잠금 수정, 수정 전후 회귀 근거와 대상 ARM 20회 재시도 0을 확인했습니다. </details> <!-- CI refreshed on merge 65f7246 (main 3300943, after with-hide#2398) -->
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.
Related: #2376 (added the restart wait), #2393 (blocked by this)
Summary
Every web e2e test that restarts hided fails on main with
timed out after 15000 ms waiting for the restarted core's engine and saved Workspace(main run 42838673383, and 115 times in #2393's run 42835956543).The shared restart wait added in #2376 reads the engine state as
status.herdr.state, but the snapshot names itstatus.engine.statesince the web shell's engine identifiers were renamed; the two pull requests passed apart and broke together.This reads the field under its current name, the same one
web/src/App.tsxandweb/src/navigation.tsread.Review
web/e2e/hided-fixture.ts- the restart boundary every restart test shares; the wait itself is unchanged.Tests
Evidence
git grepon main findsstatus?.engine?.stateinweb/srcand only this fixture still readingstatus.herdr.