Repository navigation
feat: let agents drive browser displays over a scoped CDP endpoint - #373
Merged
Merged
Conversation
Contributor
Author
|
진단 13줄 커밋 6ed75a77을 push했고 격리 재현 프로세스를 모두 정리했습니다; Linux 1/6·desktop 실패 판단은 새 CI 로그로 이어가며, 추가 native8/clients3 검증은 실행하지 않았습니다. |
Contributor
Author
Contributor
Author
Contributor
Author
|
리드 판단으로 이번 마무리에서 #373을 보류하고 draft로 유지합니다.
최신 CI의 진단 JSON 원문: {"reason":"page_wait_timeout","state":"pending","load":1791091798492,"native":[{"protocol":"http","loading":false,"manual":false},{"protocol":"file","loading":false,"manual":true}],"events":[{"event":"browser.cdp_started"},{"event":"browser.control_registered"},{"event":"browser.view_created"},{"event":"browser.cdp_connected"},{"event":"browser.cdp_request_failed","method":"Page.navigate","code":-32000},{"event":"browser.cdp_connected"},{"event":"browser.cdp_request_failed","method":"Target.createTarget","code":-32000},{"event":"browser.cdp_disconnected"},{"event":"browser.cdp_request_failed","method":"Network.loadNetworkResource","code":-32000},{"event":"browser.view_created"}]}위 세 |
yansfil
added a commit
that referenced
this pull request
Oct 4, 2026
Related: #299, #377 ## Summary - macOS의 순차 클릭 40회가 보류 요청의 기존 5초 제한을 넘겨, coalescing 대신 unknown 이후 동작을 검증했습니다. - 같은 20쌍의 실제 Chromium 마우스 입력을 순서대로 묶어 보내 브라우저 왕복 지연을 제거합니다. - 실제 전송된 포커스 변경의 코어 수락을 확인한 뒤 gate를 해제해, 마지막 진단과 시각에 의존하던 판정을 교체합니다. ## Review - **조심해서 볼 파일**: `web/e2e/pane-focus-ordering.spec.ts` - 입력은 CDP의 실제 mouse events이며 DOM 이벤트나 dispatch를 대체하지 않습니다. - **비용 검토**: burst당 120개 입력 명령, 관측 프레임 64개, CDP 세션은 `finally`에서 해제합니다. - 단일 요청 상한, 마지막 pane의 실제 키 입력, Herdr 최종 포커스, 외부 포커스 추종 검증은 유지합니다. - 클릭 횟수, timeout, retry, skip, quarantine을 변경하지 않습니다. ## Evidence - **원인 확인**: 세 macOS 실패의 hided 로그 모두에서 첫 요청이 5001~5002ms에 unknown으로 끝난 뒤 클릭이 계속됐습니다. - [#372 실패](https://github.com/modakbul-gongbang/hide/actions/runs/37179805703/job/111370084688), [#373 실패](https://github.com/modakbul-gongbang/hide/actions/runs/37179682304/job/111369954345), [#378 실패](https://github.com/modakbul-gongbang/hide/actions/runs/37179657967/job/111369590200)의 원본 로그와 artifacts를 보존했습니다. - **macOS 실제 동작**: 격리된 pinned Herdr/hided/Chromium에서 두 focus 사례가 통과했습니다. rapid 12.6s, unknown 14.4s. - held burst의 마지막 코어 수락은 첫 요청 후 251ms였고, 첫 요청은 526ms에 superseded, 최종 pane은 confirmed로 끝났습니다. - `scripts/verify-web.sh` PASS: web 904개, desktop 99개, hcoord unit 59개/e2e 36개와 typecheck/lint/build. - `scripts/verify-cargo.sh cli`, design contract, workstation identity, attribution 검사 PASS. 모든 격리 실행 프로세스를 정리했습니다. - **미실행**: Linux E2E, 전체 Rust suite, native QA. PR의 필수 `verify`는 CI에서 확인합니다. <details><summary>추가 증거</summary> - Base: `5286f6958df7af0ea52556451406733d6e2073f2`; tested/pushed head: `0b87fc5355300f6ebe249451356c2399b8729115`. - 실행: `pnpm --dir web exec playwright test e2e/pane-focus-ordering.spec.ts --workers=1 --max-failures=1 --trace=on`. - 기존 test 30s / assertion 5s 제한을 유지했으며, 두 사례의 trace와 입력 관측은 로컬 ignored run에 보존했습니다. - 이번 변경 경로는 위 테스트 파일 하나입니다. 제품 source와 Herdr pin은 변경하지 않았습니다. </details>
yansfil
added a commit
that referenced
this pull request
Oct 4, 2026
Related: #373 (원래 이 수정이 들어 있던 PR, 보류 중) ## Summary 새 plain pane은 `pane_created` 시점에 셸이 시작되기 전 물려받은 작업 폴더를 cwd로 들고 있을 수 있습니다. core는 `agent.list`가 읽어 온 실제 cwd를 같은 pane 기록에 반영하지 않아, 그 pane이 엉뚱한 checkout으로 분류될 수 있었습니다. #373에서 Linux `web/e2e/checkout-owner.spec.ts` 실패의 원인으로 찾은 수정을 따로 뗀 것입니다. `agent.list` 갱신 때 같은 workspace·tab에 있는 같은 pane의 cwd만 갱신하고, 목록이 topology를 만들거나 옮기지는 못하게 했습니다. ## Review - **조심해서 볼 파일**: `herdr-core/src/session_sync/replica.rs` - Herdr가 주는 cwd를 core 기록에 반영하는 자리(Herdr/core ownership). workspace·tab이 다르면 반영하지 않습니다. ## Evidence - **확인한 것**: 새 회귀 테스트 `agent_refresh_reconciles_a_plain_new_panes_live_checkout_cwd`가 수정 전 FAILED, 수정 후 ok. - **확인한 것**: `agent_refresh_does_not_move_a_pane_or_clear_its_known_cwd` 포함 `session_sync` 테스트 51개 통과(1개 기존 ignored), rustfmt check 통과. - **확인하지 못한 것**: 이 PR의 첫 CI에서도 `checkout-owner.spec.ts:80`(기대 3, 실제 2)이 실패했습니다. 이 수정만으로 그 e2e가 풀린다는 근거는 아직 없습니다. 실패 job을 다시 돌려 flaky인지 확인 중입니다.
This was referenced Oct 4, 2026
yansfil
marked this pull request as ready for review
October 5, 2026 03:49
yansfil
added a commit
that referenced
this pull request
Oct 5, 2026
## Summary Two pull requests that were each green broke `main` together (#435 and #373): `verify` is required, but with strict status checks off nothing checks the two merged. The merge queue will check that, once enabled in the repository settings after this merges; the required `verify` check then has to run on the queue's group commit too. This adds the `merge_group` trigger (`checks_requested`) to `pr.yml`, and `ci-plan.py` plans a group from `merge_group.base_sha` to the group's commit: the tree `main` becomes, so a group queued behind others plans for their changes too. The `plan` step fetches that base (it can be several queued merges back, past the checkout's depth); a base it cannot fetch leaves the comparison unavailable, which plans every lane as before. ## Review - **판단해 주세요**: a group is planned by the same path rules as a pull request (not every lane); every lane still runs on the push to `main` that follows, as today. - **판단해 주세요**: the push to `main` keeps its full `verify` run. It is the only run whose rust-cache saves (`save-if` main; caches a group saves would be scoped to its temporary `gh-readonly-queue/...` ref, which later pull requests cannot read), and it is the net under a narrowed plan. - **조심해서 볼 파일**: `.github/workflows/pr.yml` `on:` and the `plan` step: `BASE` is `merge_group.base_sha`, or `HEAD^1` for a pull request as before; `concurrency` is unchanged (a group's `github.ref` is its own, and only `pull_request` cancels), with its comment corrected: a newer main run replaces a pending one, which is what happened to 25 of 26 cancelled main runs on 2026-10-05. - **질문**: none; the merge queue setting (ruleset or branch protection, merge commits) is switched on separately after this merges. ## Evidence - **확인한 것**: `test_a_merge_group_plans_every_queued_change_from_its_base` builds a repository with two pull requests merged in queue order (a `desktop/src` change, then a docs change): the second group's own merge plans `policy` alone, the group from its base plans `policy`, `desktop-checks`, `desktop-e2e`, and a base the checkout lacks plans every lane. Against `main`'s `ci-plan.py` the test fails (the group planned every lane). - **확인한 것**: `test_the_merge_queue_runs_verify_from_the_groups_base` holds the trigger, the base expression and the `pull_request`-only cancellation in `pr.yml`. - **확인한 것**: `python3 -m unittest discover -s scripts/tests` passes (127 tests); `actionlint` 1.7.12 reports nothing for `pr.yml`, `web-e2e.yml`, `os-contract.yml`. - **확인하지 못한 것**: no `merge_group` event has run, because the queue is not enabled yet; the first queued pull request after enabling it is that check (its `plan` summary should list the group's paths, and `verify` should report on the `gh-readonly-queue/main/...` commit).
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 #156. Related: #158. Follow-up (not in this PR): #159.
Summary
hide browser connect [--display <id>]가cdp_http_url과browser_ws_url을 돌려줍니다.탭 제목 옆의 링크 배지가 에이전트가 붙어 있다는 표시입니다.
Review
noDefaults)입니다. MCP의--browser-url은 capability prefix를 잃어--wsEndpoint를 안내합니다.desktop/src/main/browserCdp.ts,browser.ts- 세션 소유권과 네이티브file:접근 경계(HTTP/blank 페이지는 첫 load 전에 file 접근을 거부, 수동 파일 display는 유지).herdr-core/src/runtime/{session,device_catalog,projects}.rs의 변경 꼬리 - capability를 coalesced 전달보다 먼저 회수하는 자리.hided/src/server.rs,browser_control.rs- loopback 전용, capability gate, 실패 경로.docs/PERFORMANCE_TESTING.md).Evidence
desktop/e2e/browser-cdp.spec.ts8개 케이스를 로컬 격리 환경에서 통과했습니다(셸 target 비노출, 닫기 순서, 파일 경계, 다운로드 취소 포함).verify가 통과했습니다. Linux 탭 projection 실패는 재현되지 않았습니다.page_wait_timeout은 CI에서만 났고 로컬에서는 재현되지 않아 원인을 특정하지 못했습니다. 이번 head의 CI에서는 통과했습니다. 실패 시 core 진단이 출력되도록 e2e 진단만 보강했습니다.hide browser snapshot/click은 이 PR 범위가 아닙니다.agent-tab-names.spec.ts:6(탭 이름 입력 focus)은 이 PR이 닿지 않는 경로의 실패입니다. 이 브랜치에서 로컬 10회 모두 통과했고 실패한 job만 재실행해 통과했습니다.추가 증거
hide browser connect)를 쓰도록 고쳤습니다. display 전용 capability는 new-target을 거부하는 보안 경계 그대로입니다.hide-agent-hooksfixture 변경은 #156에 필요 없어 이 PR에서 뺐습니다.