Repository navigation
Adapt work tabs to available width - #117
Merged
Merged
Conversation
yansfil
force-pushed
the
prd/browser-like-tab-sizing
branch
from
September 20, 2026 08:04
3d23027 to
6ad678e
Compare
yansfil
added a commit
that referenced
this pull request
Oct 28, 2026
…dows shell never draws (#1810) Closes with-hide/hide-private#200 Related: with-hide/hide-private#116, with-hide/hide-private#117, with-hide/hide-private#154, with-hide/hide-private#312 ## Summary Linux desktop nightly가 매일 실패하던 원인을 고치고, Windows web e2e에서 첫 화면이 안 그려지는 flaky의 원인을 다음 실패에서 알 수 있게 기록합니다. - #200: Herdr 화면에는 줄바꿈 표시가 없어서, 줄 끝까지 꽉 찬 주소는 다음 줄 첫 단어로 이어진다고 읽습니다. Linux에서는 이 테스트의 pane이 정확히 29칸이고 `http://127.0.0.1:PORT/a.html`도 29자라, 다음 줄 `osc8`이 주소에 붙었습니다. 주소 다음 줄을 비워 폰트 폭과 무관하게 했습니다. - #116, #117(같은 증상 #123 #133 #146 #217): Windows에서 shell이나 프로젝트 줄이 20초 안에 안 그려집니다. 남은 증거로 원인을 확정하지 못해 이 PR에서 닫지 않습니다. `enterWorkspace`의 대기가 실패하면 페이지 상태, 각 요청의 응답, 응답 없이 끝난 요청(최대 32개, Chromium의 이유 포함)을 failure dump로 남깁니다. 통과한 테스트는 아무것도 출력하지 않습니다. - #154: #1650(4fc9b8c)이 이미 고쳤습니다. 이후 flaky 3건은 모두 그 수정이 없는 커밋이고 10-24 이후 재발이 없어, 근거와 함께 이슈를 닫았습니다. ## Review - **판단해 주세요**: #200의 제품 동작은 이 PR에서 고치지 않았습니다. 꽉 찬 URL 뒤에 상관없는 줄이 오면 운영자에게도 틀린 링크가 열리지만, 화면 격자만으로는 진짜 줄 넘김과 구분할 수 없습니다(이어지는 조각도 URL 문자로 시작). Herdr는 `recent_unwrapped`로 그 사실을 알고 있어서, 그것을 링크 판단까지 가져오는 일을 with-hide/hide-private#312로 남겼습니다. - **판단해 주세요**: #116/#117은 원인 수정이 아니라 진단 추가입니다. 분석은 #116, #117 코멘트에 있습니다. - **조심해서 볼 파일**: `web/e2e/wire.ts` - 모든 web spec이 지나는 길입니다. 대기를 감싸기만 하고 timeout, 재시도, 단언은 그대로입니다. - **조심해서 볼 파일**: `web/e2e/failure-dump.ts` - 실패한 요청 기록은 페이지마다 32개 상한이고 페이지가 닫히면 버립니다. 주소의 hash에 daemon token이 있어서 경로만 기록합니다. ## Evidence - **확인한 것**: 10-27 nightly 스크린샷(`terminal-url-menu.png`)에서 주소가 pane 오른쪽 끝에 정확히 닿고 다음 줄이 `osc8`로 시작합니다. 수정 전 9회 nightly가 모두 두 시도에서 받은 값 `.../a.htmlosc8`로 실패했습니다. - **확인한 것**: 361a08faa에서 nightly `lane=linux`를 두 번 dispatch했습니다(40718149961, 40718546910). 두 번 모두 desktop e2e linux 19/19 통과, 고친 테스트 첫 시도 통과, flaky 없음입니다. - **확인한 것**: 같은 커밋의 PR verify(40718258556)가 통과했습니다. 고친 테스트는 macOS와 Windows desktop e2e에서도 첫 시도에 통과했고, desktop·web e2e 모든 shard에 flaky가 없었습니다. - **확인한 것**: 9d7fd7c(실패 요청 버퍼)는 web e2e eslint, 타입 검사, `playwright test --list`(387 tests)가 통과했습니다. CI는 이 커밋에서 다시 돕니다. - **확인하지 못한 것**: 로컬 desktop e2e는 돌리지 못했습니다. 디스크 여유가 759 MiB라 debug build가 불가능해 실행 근거는 모두 CI입니다. - **확인하지 못한 것**: #116/#117의 원인. 다음 Windows 실패의 `[failure dump] shell start` / `project row` 줄이 근거가 됩니다. <details><summary>Verification record</summary> - Base: `8915cb3d8878` (origin/main at branch start) - Heads: `361a08faa` (spec fix and dump), `9d7fd7c38` (failed requests kept for the dump only) - Nightly dispatch `lane=linux` on 361a08f: run 40718149961 success; run 40718546910 desktop e2e nightly-linux success. Both: `✓ terminal-links.spec.ts:420:5 ... @platform`, `19 passed`, `no flaky test in this run`. - PR verify 40718258556 on 361a08f: success. desktop e2e macOS 1/2 and 2/2, windows desktop, web e2e linux 1-6/6, web e2e windows: each `no flaky test in this run`. - Before the fix: nightly runs 39158794370 through 40586138794 (9) failed `terminal-links.spec.ts` on both tries with `Received: ".../a.htmlosc8"`. - Local on 9d7fd7c: `eslint e2e/wire.ts e2e/failure-dump.ts` exit 0; `tsc --noEmit --strict` on both files exit 0; `playwright test --list` 387 tests in 119 files. - #154: last flaky comment 2026-10-23T19:16Z on commits without 4fc9b8c; main 115b63c run 40706855580 desktop e2e macos 2/2 `ok 72 new-tab.spec.ts:130`. </details>
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>
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: PRD
agents/prd/browser-like-tab-sizing/prd.mdSummary
…를 표시하며 렌더링과 드래그가 같은 기하를 사용합니다.Review
HideMainView.swift,ShellModelNavigation.swift- 고빈도 렌더링과 드래그 기하를 잇습니다.Evidence
design/hide-ui.lib.pen은 탭 내부 계약과 동기화됐고, 이번 외부 inset 변경에는 수정이 필요하지 않았습니다.Verification record
agents/prd/browser-like-tab-sizing/prd.md(sha256 49baa94f2a45e7455d61d3b008a14457f075205a9365a5463501e028c50d3dbd)origin/main28ddff6.agents/runs/browser-like-tab-sizing/verification-report.jsonandverification-report.mdbash scripts/verify-cargo.sh testbash scripts/verify-swift.sh testbash scripts/verify-cargo.sh lintnode scripts/check-design-contract.mjsbfb4997: Fix now 없음.native/amendment2-bfb4997/를 Amendment 2의 기준 증거로 사용합니다.bfb4997: Fix now 없음.me.grab.hide.browser-like-tab-sizing, version0.0.0-dev+bfb4997native/amendment2-bfb4997/.origin/mainDESIGN.mdagents/prd/browser-like-tab-sizing/prd.mddesign/hide-ui.lib.penmacos/Sources/HerdrMacOS/HideMainView.swiftmacos/Sources/HerdrMacOS/HideTheme.swiftmacos/Sources/HerdrMacOS/ShellModelNavigation.swiftmacos/Tests/HerdrMacOSTests/AdaptiveTabStripPresentationTests.swiftmacos/Tests/HerdrMacOSTests/TabDragPlacementTests.swift(adaptive tests로 통합)scripts/pen-token-map.json