Skip to content

feat: split the right lane into a viewing column and a tool column - #1552

Merged
yansfil merged 13 commits into
mainfrom
gen-prd/lane-two-columns
Oct 22, 2026
Merged

yansfil merged 13 commits into
mainfrom
gen-prd/lane-two-columns

Conversation

@yansfil

@yansfil yansfil commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Related: PRD lane-two-columns (PR 1 of 2; PR 2, the project tool, follows session-record-goal-flow)

Summary

오른쪽 lane에서 한 번에 하나만 보여서 PR 카드를 열면 보던 도구가 가려지고, Changes에서 커밋을 열면 목록이 사라졌어요.
lane을 두 칸으로 나눴어요: 에이전트 쪽 보는 칸은 문서나 보기 항목(PR 카드 · 기록 · 미션 지도)을 담고, 레일 옆 도구 칸은 Memory · PRs · Explorer · Changes 중 하나를 담아요. 무언가를 열면 보는 칸만 바뀌고 도구는 그대로예요.
Files 도구는 없어졌어요. 트리는 Explorer 도구(⇧⌘E)가 되고, 레일 맨 위의 문서 버튼이 열린 문서 수를 세며 문서를 앞으로 가져오거나 접어요.
저장 형식은 schema 4예요. 옛 lane 상태(도구 · 트리 · 폭)는 옮기지 않고 닫힌 기본 모양으로 시작하며, 열린 문서 · 분할 · 코멘트는 그대로 남아요(D-10, B23).

두 칸 lane: 왼쪽 보는 칸에 문서(a.md), 오른쪽 도구 칸에 Explorer, 레일 맨 위에 문서 버튼과 그 아래 도구 네 개

Review

  • 판단해 주세요: 레일 위쪽의 문서 버튼(파일 아이콘 + 배지)이 "열린 문서"로 읽히는지, 대표 이미지에서 두 칸 사이 구분이 충분한지.
  • 판단해 주세요: D-12의 디자인 보드는 저장소 밖이라 갤러리 RightLaneScene으로 대신함 (closed · overlay · pinned · explorer-overlay · explorer-only · expanded · prs · memory · changes · narrow).
  • 조심해서 볼 파일: herdr-core/src/workspace_views.rs - 저장 형식 schema 4와 schema 3 → 기본값 읽기(옮기지 않음); 옛 문서 목록만 살려야 해요.
  • 조심해서 볼 파일: herdr-core/src/runtime/workspace_view.rs - workspace_view 이벤트 처리(runtime mutex 안): open · documents · tool · reveal이 각각 끝 상태 하나를 적고, documents:true · open:true가 호출(lane_called)로 세어지는 규칙.
  • 조심해서 볼 파일: web/src/workspace.ts - laneFrame/fitColumns: 두 칸 폭 배분, 좁은 창에서 보는 칸 → 도구 칸 순으로 줄이고 그래도 안 되면 쌓기(B19).
  • 조심해서 볼 파일: web/src/actions.ts - ⌘E · 레일 버튼 · 닫기가 보내는 이벤트와 키보드 이동(B11, B15, B16).
  • 조심해서 볼 파일: web/src/viewFocus.ts - ⌘W 소유자에 detail이 생겼고 도구 칸은 아무것도 닫지 않아요(B13, B16).
  • 조심해서 볼 파일: herdr-core/src/runtime/detail.rs - 리뷰 1차: open:false는 보기 슬롯을 내리지 않고(⌘E가 카드를 되돌림), 슬롯 버튼은 닫힌 lane을 열어요(B15, B22). 호출마다 앞으로 낸 칸을 lane_called_side로 기록해 쌓인 lane이 추정 없이 그 칸을 그려요(B19). lane-check 2차: 슬롯이 앞으로 오는 모든 경로(카드 · 기록 · 지도 · ← · 레일 버튼)가 한 곳 call_front_lane을 지나 lane이 이미 열려 있어도 보는 칸 호출로 기록돼요(B9).
  • 비용 검토: 상시 작업 변화 없음. 스냅샷의 workspace_view에 필드가 늘었지만 발행 조건은 같고, 접힌 문서는 전처럼 마운트된 채 inert예요.

Evidence

  • 확인한 것: scripts/verify-cargo.sh test와 lint(clippy + rustfmt) 통과. web typecheck · lint(e2e 크기 예산 포함) · vitest 229 파일 1963개, desktop typecheck · lint · vitest 238개, node scripts/check-design-contract.mjs 통과. main을 한 번 머지한 뒤(feat: show the session record as goal flows #1548 이후) 같은 검사를 다시 돌렸어요.
  • 확인한 것: 리뷰 1차 수정 8개(⌘E 카드 복원, checkout 바꾼 뒤 보기 버튼, 쌓인 lane의 reveal · 폴더 링크, 배지 항상, 좁은 핀 문구, 꺼진 문서 버튼 힌트, 본문보다 넓은 lane, 문서 정리)마다 회귀 테스트를 더했어요: core 2개(view_areas.rs), web 단위 2개(laneCalls.test.ts, MemoryTab.test.tsx, workspace.test.ts), e2e 3개(work-prs · s7 · right-lane).
  • 확인한 것: lane-check 2차의 남은 하나(쌓인 lane에서 PRs 목록의 PR을 눌러도 카드가 뒤에 남음, B9)를 고치고 회귀를 더했어요: core every_way_the_slot_comes_forward_is_a_viewing_column_call(카드 · 두 번째 카드 · 보인 슬롯의 버튼 · ←), e2e work-prs "in a stacked lane with the PRs tool in front, a row brings its card forward…".
  • 확인한 것: CI 1차에서 떨어진 셋을 로컬에서 재현해 고쳤어요: core_move 테스트가 저장 키 view_layout 대신 layout을 읽던 것(핀 Herdr로 로컬 통과), session-panel의 옛 레일 기대값, new-tab(@needs-focus)의 1024px 핀 상태(두 칸이 최소폭으로 들어가 docked가 맞음).
  • 확인한 것: 바뀐 web e2e 20개 spec을 격리 Herdr + hided + Chromium으로 로컬 실행. right-lane(7), s6, s4, s7, s3, close-policy, lane-last-tool, lane-hidden-tool, pane-scroll-find, view-close-focus, work-prs, new-tab, view-toolbar-shortcuts, tab-strip-fit, view-bookmarks, view-feedback, recent, workspace-cli, overview-device 모두 통과(처음 실패한 11개는 기대값 · 두 가지 shell 수정 뒤 재실행해 통과).
  • 확인한 것: desktop e2e(Electron, 격리 Herdr + hided)로 right-lane · close-policy · new-tab · session-work-ledger · terminal-links · memory-reconcile 6개 spec, background 프로젝트 14개 통과(SSH 1개는 로컬에서 skip). 새 narrow 테스트는 한 번 기대값을 고친 뒤 통과. 리뷰 1차 뒤 new-tab(needs-focus) 1개와 session-work-ledger(머지 충돌 해소분, background)를 다시 돌렸어요.
  • 확인하지 못한 것: /Applications/hide.app은 바꾸지 않았고(지시) 화면 확인은 격리 후보(Playwright의 web shell, Electron e2e)에서만 했어요. Windows · Linux는 CI lane이 대신해요.
  • 확인하지 못한 것: desktop browser.spec.ts(@platform, 페이지 폭 900 규칙)와 remote-workspace · browser-cdc 등 나머지 desktop spec은 로컬에서 안 돌렸고 CI의 desktop e2e에 맡겨요.
  • 확인하지 못한 것: s3 "draft recovery after restart" 테스트가 세 spec 동시 실행 중 한 번 재접속 실패(connection refused)로 떨어졌고 단독 재실행에서는 통과했어요. lane과 무관한 부하 flake로 봐요.
추가 증거

Memory가 도구 칸에 열려도 문서는 보는 칸에 그대로이고, 두 칸 사이 끌개가 폭을 나눈다

  • 갤러리 RightLaneScene 상태: closed · overlay · pinned · explorer-overlay · explorer-only · expanded · prs · memory · changes · narrow.

Breaking change

  • workspace-views.json이 schema 4로 바뀌어요. 이전 빌드가 쓴 파일은 lane 상태(도구 · 트리 · 폭) 없이 닫힌 기본 모양으로 읽고 문서 목록은 그대로 살려요(PRD D-10). 이 빌드가 쓴 파일을 이전 빌드가 읽으면 그 빌드의 "unknown schema" 경로로 보존(kept aside)돼요.
  • toggle_file_tree · toggle_lane_files 단축키 이름이 없어지고 toggle_lane_explorer(⇧⌘E) · toggle_lane_documents(기본 chord 없음)가 생겨요. 옛 이름에 묶인 chord는 진단만 남기고 버려져요.
Verification record
  • PRD: agents/prd/lane-two-columns/prd.md (local), PR 1 of 2
  • base: main 3316e3c (branched at f3cdcb4, main merged once after feat: show the session record as goal flows #1548), head: 27e3a34 (review round 1: 9c13705 fix, dd91809 test, 8f8f08f merge; lane-check 2: 27e3a34 fix)
  • suites: verify-cargo test PASS, verify-cargo lint PASS, web typecheck/lint/test PASS, desktop typecheck/lint/test PASS, check-design-contract PASS, web e2e (20 specs) PASS after fixes, desktop e2e (6 specs, background) PASS after fixes; round 1 on the merged tree: verify-cargo test/lint PASS, core_move external test PASS with the pinned Herdr, web e2e right-lane · work-prs · session-panel · s6 · s7 (2 tests) PASS, desktop e2e new-tab (needs-focus) · session-work-ledger PASS
  • evidence: agents/runs/lane-two-columns/ (local): web-e2e-batch1..5.log, desktop-e2e-batch3..4.log, shots/, round1-.log, merge-.log, ci-fail/
  • change paths: herdr-core, hided/tests, web/src, web/e2e, desktop/src/main/menu.ts, desktop/e2e, design/tokens.json, docs/UI_BEHAVIOR.md, docs/ARCHITECTURE.md

…e core

The Workspace's lane is stored as whether it is open, whether its viewing column shows the documents, the one tool of its tool column and four widths (schema 4). A file written by the one-tool lane reads back closed at the defaults with its documents kept (PRD lane-two-columns D-10). Closing the last document closes the viewing column alone, a reveal turns the tool column to the Explorer, and ⌘E brings back the columns a whole-lane close kept.
The viewing column holds the documents or the 보기 slot, the tool column one of Memory, PRs, Explorer or Changes, and the rail's top carries the documents button with its badge. The Files tool, its header toggle and the tree-only state are gone; ⇧⌘E toggles the Explorer tool and the lane's columns stack in a window too narrow for both (PRD lane-two-columns B1-B24).
The fold handoff sent the keyboard to the pane whenever the documents went out of sight, before the close's own follow-up could focus the Explorer left in the tool column; documents that closed with their last view are now left to that follow-up. The documents region is marked only while it is drawn, so a folded column no longer counts as a View area.
…nts count

Review round 1 of PR 1 of PRD lane-two-columns.

- `open: false` keeps the window's 보기 slot shown, so the lane chord brings the
  card back with the columns it had; only `documents: true` leaves the slot.
- The slot button opens the front checkout's closed lane when the slot is
  already shown, so it works after a checkout switch.
- The core records which column each lane call brought forward
  (`lane_called_side`): a tool, a reveal or a folder link the tool column, an
  open, the slot or the chord the viewing column. A stacked lane draws that
  column in front instead of guessing from a tool that did not change.
- The documents badge always counts the open views, shown or folded, and the
  disabled button still opens its hint (`aria-disabled`).
- The pin item says `Pin · too narrow, drawn over` where docking has no room,
  and a body narrower than one column is the lane's whole width.
- Docs: ⌘W closes nothing in the tool column, the slot comes back with ⌘E,
  the PRs tool is written as `prs`, pages live among the viewing column's documents.
# Conflicts:
#	desktop/e2e/session-work-ledger.spec.ts
#	web/src/shortcuts.test.ts
A card, a record, the map, ← and the rail's slot button all pass through
one point, `call_front_lane`, which opens a closed lane and numbers the call
as the viewing column's even when the lane was already open on a tool, so a
stacked lane draws the slot over the tool instead of leaving it behind
(PRD lane-two-columns B9, B19).
@yansfil
yansfil merged commit f58a143 into main Oct 22, 2026
141 of 154 checks passed
@yansfil
yansfil deleted the gen-prd/lane-two-columns branch October 22, 2026 17:44
yansfil added a commit that referenced this pull request Oct 22, 2026
…debar PR list (#1567)

Related: PRD lane-two-columns PR 2, after #1552

## Summary

The right lane's Memory and PRs tools become one **Project tool** with
two tabs, 현황 and 기억.
현황 shows the project in front: four tiles (sessions, PRs, Git, 7-day
cost) and a 할 일 list (new asks, then 다시 볼 것, then my PRs and reviews).
The pull request list moves to the sidebar as a third list beside 프로젝트
and 태스크 (⇧⌘R, and ⇧⌘B turns through all three).
The Git and cost tiles open a worktree table and a cost page in the 보기
slot; the core derives the status and prices each local project's last
seven days on the usage worker.

![Project tool 현황 (right), sidebar PR list (left), cost opened in the 보기
slot
(middle)](https://github.com/yansfil/pr-assets/blob/main/hide/gen-prd-project-tool/d247fe7/window-cost.png?raw=true)
Isolated daemon with a stand-in `gh`: look at the tile layout and
whether the 할 일 list reads as "what is mine to do".

## Review

- **판단해 주세요**: 할 일's asks (B34) are the task cards in Needs You and 다시 볼
것, then each live session whose record still holds an open ask (unread
row: new ask; read row: 다시 볼 것). One line per pane; a pane a card
already holds keeps the card's line, so an ask both the live state and
the record know shows once. A closed session's ask makes no line: no
agent waits on it, it blocks nothing and stays in its record (B34, D-24;
Conductor agreed).
- **판단해 주세요**: a chord the operator bound to the old Memory or PRs tool
now runs Open Project Memory or Open PR list through one rename table
(`RENAMED_KEYS` in `web/src/shortcuts.ts`, B25; test "runs a chord bound
to the removed Memory and PRs tools…").
- **판단해 주세요**: "안 올림" on the Git tile counts commits on a worktree's
branch that no pull request carries and that are ahead of its upstream
(Conductor confirmed).
- **판단해 주세요**: the rail's Memory dot is gone; the dot now sits on the 기억
tab, and the rail shows the 할 일 count (B38).
- **조심해서 볼 파일**: `herdr-core/src/agent_state/tally/scope.rs` - status is
derived inside the scope cache, so it is rebuilt only when tasks, the PR
board or Git facts change (B42; nothing read under the runtime lock).
- **조심해서 볼 파일**: `herdr-core/src/usage_ledger/worker.rs`,
`project_cost.rs` - cost is built on the ledger worker, at most every 30
s, capped at 200,000 calls (`limited` plus one diagnostic past it).
- **조심해서 볼 파일**: `herdr-core/src/workspace_views.rs` - schema 5; a
schema 4 lane saved on Memory or PRs opens with no tool column (D-10).
- **조심해서 볼 파일**: `herdr-core/src/links/ledger_store.rs` - the link
worker's summary read now counts each session's open record asks in one
grouped query off the lock; the scope cache compares them as input.
- **조심해서 볼 파일**: `herdr-core/src/usage/model.rs`,
`contracts/hided-ws.schema.json` - `nodes[].projects` is absent until
the first cost build succeeds and `projects_failed` is new, so a tile
tells "not read yet" and "failed" from $0.00.
- **비용 검토**: one extra comparison per publish in the scope cache; cost
adds one read of `events` per rebuild on the worker, none on the
snapshot path.

## Evidence

- **확인한 것**: `verify-cargo.sh lint` clean; `verify-cargo.sh test
--no-fail-fast` 5642 passed. After merging main: herdr-core lib
3041/3041, web typecheck/lint, 1955 web unit tests, web and desktop
build, `check-design-contract.mjs`.
- **확인한 것**: web e2e on the pinned Herdr: memory-tab, lane-last-tool,
work-prs (16, incl. a stacked lane where the sidebar PR row, the 할 일 PR
row, the Git and cost tiles and the slot button each bring the viewing
column forward), right-lane, s2, s6, s7, new-tab, link-graph,
hide-ai-home, hide-ai-usage-limit, session-panel. Desktop e2e (no
`@needs-focus`): memory-progress, memory-reconcile, project-settings,
browser, right-lane.
- **확인한 것**: review round 1 (7 fixes) at 3e7f4b5: herdr-core lib 3045
(new: record ask create -> read -> answered, failed cost build retries
and keeps the last, mixed priced/unpriced agent, marks past the 96-dot
cap), web unit 1957, clippy, typecheck, eslint; web e2e work-prs,
right-lane, memory-tab, lane-last-tool, hide-ai-usage-limit,
weekly-usage, session-work-ledger, session-record-restore, hide-ai-home
36/36; desktop right-lane, memory-progress, memory-reconcile,
project-settings 9 passed.
- **확인한 것 (round 2, 04ec134)**: the to-do overflow now links to the
list that holds each kind (agents' rows -> sidebar 태스크, pull requests ->
sidebar PR list, one link per kind, both narrowed to the project), a
usage store that cannot open shows the cost as failed (`–`), and a PR
row's agent mark keeps its own width beside the hover buttons so the
pointer and the keyboard reach it. New tests: core `todo_agents` count,
worker `a_usage_store_that_cannot_open_reports_the_costs_failed`,
ProjectTool per-kind overflow links, e2e work-prs B41 agent mark press
(fails on the old row). herdr-core lib, web unit 1958, clippy, eslint;
web e2e work-prs, right-lane, memory-tab, lane-last-tool,
hide-ai-usage-limit, weekly-usage, hide-ai-home 29/29.
- **확인한 것 (1a90d50)**: CI's rust workspace failed
`labels::tests::record_tests::unchanged_panes_sharing_a_conversation_do_not_repeat_metadata_writes`
twice with `links_store_busy`; the race is on main too (the test is
unchanged there). The test's own store connection writes while the link
worker writes its start metas, and a deferred read-then-write
transaction fails busy at once without the busy timeout.
`LinkStore::apply_answer_observed` now begins IMMEDIATE, so it waits for
the writer. Locally the test failed 1 run in 8 before and passed 24 of
24 after; links 111 and labels 181 pass.
- **확인한 것**: the captures found and fixed two defects: a tile's hover
tint covered its text, and worktree sizes wrapped onto two lines.
- **확인하지 못한 것**: cost with real priced calls (the isolated daemon has
none, so it shows $0.00 and "No priced calls"); the price grouping is
covered by unit tests only.
- **확인하지 못한 것**: projects on a connected device show no cost: cost reads
only the machine Hide runs on, since another device's usage would need a
new remote call (follow-up); full desktop e2e and the `@needs-focus`
tests were not run locally.
- **확인하지 못한 것**: under load 20-36, a few tests timed out and passed when
rerun alone: vitest OverviewGraph and mobile/sleep, cargo
`moved_terminal_keeps_registration_letters_and_watch_after_restart`,
`a_linked_node_s_sessions_are_read_through_its_link` and hided
`mobile::a_foreign_entry_or_a_failed_command_leaves_mobile_unexposed`,
e2e s2 and desktop right-lane.

<details><summary>추가 증거</summary>

![프로젝트 도구 현황
탭](https://github.com/yansfil/pr-assets/blob/main/hide/gen-prd-project-tool/d247fe7/project-status.png?raw=true)
![프로젝트 도구 기억 탭 (isolated daemon, Auto memory
off)](https://github.com/yansfil/pr-assets/blob/main/hide/gen-prd-project-tool/d247fe7/project-memory.png?raw=true)
![사이드바 PR
목록](https://github.com/yansfil/pr-assets/blob/main/hide/gen-prd-project-tool/d247fe7/sidebar-prs.png?raw=true)
![Git 타일이 여는 워크트리
표](https://github.com/yansfil/pr-assets/blob/main/hide/gen-prd-project-tool/d247fe7/worktrees.png?raw=true)
![다크
테마](https://github.com/yansfil/pr-assets/blob/main/hide/gen-prd-project-tool/d247fe7/window-status-dark.png?raw=true)

</details>

## Breaking change

- `workspace-views.json` is written as schema 5; an older build keeps
that file aside and starts lanes from defaults.
- A lane saved on the Memory or PRs tool opens with no tool column (the
rest of the lane and its View layout stay).

<details><summary>Verification record</summary>

Head 1a90d50 (review round 2 and a link store busy fix; origin/main
merged at d247fe7 after #1552 landed). Local run evidence stays
outside the repository.

</details>
yansfil added a commit that referenced this pull request Oct 23, 2026
Related: #1552 (Files 도구와 함께 핀 버튼이 빠진 PR)

## Summary

#1552에서 Files 도구를 없앨 때 그 머리에 있던 핀 버튼이 같이 사라져, 핀은 레일 `…` 메뉴 안에만 남아 찾기
어려웠습니다.
이제 핀은 레일 맨 아래, `…` 바로 위의 아이콘 버튼입니다. lane이 열려 있든 닫혀 있든, 어느 칸이 보이든 같은 자리에
있습니다.
꺼지면 빈 핀, 켜지면 채운 핀에 눌린 바탕이고, 힌트는 메뉴 항목의 세 문구(핀 / 핀 해제 / 너무 좁아 겹쳐 보임)를 그대로
씁니다.
`…` 메뉴에는 Expand만 남고, lane이 닫혀 있으면 보여 줄 항목이 없으니 `…`는 꺼집니다. 핀 동작은 바뀌지
않았습니다.

![레일 맨 아래 핀: 닫힘/열림 × 꺼짐/켜짐,
라이트·다크](https://github.com/yansfil/pr-assets/blob/main/hide/fix-lane-pin-on-rail/76b19e0/pr-rail-pin.png?raw=true)

캡션: 왼쪽 넷은 라이트, 오른쪽 넷은 다크. 각 칸은 레일 위쪽과 아래쪽이고 가운데 빈 곳은 잘라 냈습니다. 맨 아래 핀만
상태에 따라 바뀝니다.

## Review

- **판단해 주세요**: 켜진 핀은 눌린 바탕과 채운 아이콘만 쓰고, 도구 버튼의 왼쪽 primary bar는 없습니다. 그
bar는 "이 칸이 지금 보인다"는 뜻이라서 뺐습니다.
- **판단해 주세요**: lane이 닫혀 있으면 `…`가 꺼집니다(메뉴가 비기 때문). 숨기면 핀이 한 칸 내려가서 자리가
바뀌기 때문에 숨기지 않았습니다.
- **조심해서 볼 파일**: `web/e2e/wire.ts` - `pinState`/`setLanePinned`가 메뉴 대신
버튼을 읽고 누릅니다. web·desktop e2e 스무 곳 넘게 이 둘을 씁니다.

## Evidence

- **확인한 것**: `bash scripts/verify-web.sh` (web·desktop의 typecheck, lint,
unit, build) 통과.
- **확인한 것**: 새 `web/src/Tools.test.tsx` 2개. 세 상태(off/on/narrow)의
`aria-pressed`와 힌트, `…` 바로 위 위치, 닫힌 lane에서 누르면 `workspace_view {pinned:
true}` 하나를 보냄.
- **확인한 것**: web e2e 15개를 private Herdr 0.9.5와 hided로 돌려 통과. `s7` 좁은 창 핀
문구, `overview-device` 핀 토글, `right-lane`, `s6`, `s7` lane 관련.
- **확인한 것**: 갤러리 `RightLaneScene`에 `closed-pinned` 상태를 더했습니다. 닫힘/겹침/붙임 ×
핀 꺼짐/켜짐을 라이트·다크로 캡처했고, 켜진 핀의 힌트는 hover로 확인했습니다.
- **확인하지 못한 것**: desktop e2e(Electron, `setLanePinned`를 쓰는 7개 spec)는
로컬에서 돌리지 않았습니다. CI `desktop e2e`가 맡습니다.
- **확인하지 못한 것**: 설치된 앱이나 격리 `web-dev.sh`로 실제 화면은 보지 않았습니다. 화면은 갤러리 캡처로만
확인했습니다.

<details><summary>Verification record</summary>

- base: `1db22890c`, head: `76b19e0b7`
- `bash scripts/verify-web.sh`: PASS
- `bash scripts/verify-web.sh web e2e e2e/s7.spec.ts
e2e/overview-device.spec.ts e2e/right-lane.spec.ts e2e/s6.spec.ts
e2e/view-close-focus.spec.ts -g "stacked lane|record|pin|lane"`: 15
passed
- `node scripts/check-design-contract.mjs`: ok
- Changed: `web/src/Tools.tsx`, `web/src/Tools.test.tsx`,
`web/e2e/wire.ts`, `web/e2e/s7.spec.ts`,
`web/e2e/overview-device.spec.ts`, `web/src/gallery/RightLaneScene.tsx`,
`docs/UI_BEHAVIOR.md`

</details>
yansfil added a commit that referenced this pull request Oct 29, 2026
…d stages (#1837)

Closes with-hide/hide-private#252
Related: with-hide/hide-private#221, with-hide/hide-private#171,
with-hide/hide-private#135, with-hide/hide-private#207,
with-hide/hide-private#216

## Summary

On Windows a right-click on a terminal link also opened the link, beside
the menu: a folder link revealed its folder and an HTML link loaded its
page again.
xterm opens a link on the release of any mouse button, and on Windows
the right-click menu appears after that release; now a right-click opens
only the menu, and the primary and middle buttons open links as before.
Separately, the first page a test opens on Windows sometimes stays
`loading` for the whole 10 s `--wait`, and nothing said where it
stopped.
Each load the core asks for now logs when its route came, when it
committed and when its own load call settled, against that load alone,
with the display, the native page id and the time; the browser spec
records the native page's own state when that first wait gives up.

스크린샷 없음: the shell change is which mouse button opens a terminal link;
nothing drawn changes.

## Review

- **조심해서 볼 파일**: `web/src/terminalLinkProvider.ts` - both link paths
(detected and OSC 8) go through one `opens(event)` check, which refuses
only the right button.
- **조심해서 볼 파일**: `desktop/src/main/browser.ts` - each `load()` holds its
own `CoreLoad`; a commit counts only after its own `loadURL`, its stop
is that call's promise, a newer load or failed route ends it; three
lines per core-asked load.

### Per issue

- #252 terminal-links "terminal HTML opens a rendered page": fixed at
the cause above; the spec now also asserts one `browser_open`, which a
right-click activation adds on Windows every run.
- #221, #171, #135, #207 (browser.spec first `--wait` open stays
`loading`, status 2): cause not proven yet. Host log shows
`view_created`/`page_visible` then nothing for 10 s, no route or load
failure; core log has no stale-report refusal, so the core got `loading`
and never `loaded`. Only the first page of a fresh profile fails. This
PR adds the evidence that names the stage.
- Their older signature, `shellPage` 30 s in `fixture.ts`, is the
desktop startup flake handled by the flaky2-win-desktop change.
- #216 reveal-external (rail tool click left unpressed): last seen
2026-10-20, before the rail was rebuilt (#1552); not touched here.

## Evidence

- **확인한 것**: web unit test that a right-click's release opens no link
fails without the fix and passes with it.
- **확인한 것**: macOS desktop e2e 1/2 failed once fetching the pinned Herdr
(`curl: Failed to connect to github.com`); its rerun passed.
- **확인한 것**: desktop unit tests: a reopen waiting for its route while
the earlier load commits and stops, two checkouts' same id and load told
apart by `contents`, a failed route then a page navigation; all three
fail on the previous code.
- **확인한 것**: web unit tests: right button opens nothing, primary and
middle open; ⌘-click on macOS, Ctrl-click on Windows/Linux still open
externally.
- **확인한 것**: Windows desktop e2e 19/19, no flaky test, in three runs: PR
verify 40852660304 and nightly `lane=windows` 40857562866 on e09dc15,
PR verify 40873166675 on 1b89a27 (all jobs green).
- **확인하지 못한 것**: the stage of the stuck first load: neither Windows run
reproduced it; the issues say how to read the next failure.
- **확인하지 못한 것**: nightly 40857562866 failed `agent journey fake model
(windows)` on `guidance_memory`; untouched by this diff, passed on
main's 10-28 nightly, not checked on current main.
- **확인하지 못한 것**: the full web unit suite locally (67 failures at load
average ~300 on this Mac, not read); CI's web unit lane passed on
1b89a27.

<details><summary>Verification record</summary>

- Head 1b89a27; CI tested merge bf853d1 (1b89a27 into main
1849300), PR verify 40873166675: success, every job.
- Earlier head e09dc15: PR verify 40852660304 success after one rerun
of the macOS desktop job (github.com unreachable fetching Herdr);
nightly `lane=windows` 40857562866: desktop and web e2e green, `agent
journey fake model (windows)` failed on `guidance_memory`, outside this
diff.
- Local (this Mac, load 100-300): web and desktop typecheck and lint
pass; desktop unit 297 passed; `terminalLinkProvider.test.ts` 43 passed;
`browser.test.ts` 26 passed.
- Not run: desktop e2e locally (no build on this disk), Windows locally
(no Windows host).
- Limit: the stuck first page load did not recur in three Windows runs,
so its stage is still unproven; #221, #171, #135 and #207 stay open with
the reading guide.

</details>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant