Repository navigation
feat: split the right lane into a viewing column and a tool column - #1552
Merged
Merged
Conversation
…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
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.  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>      </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이 닫혀 있으면 보여 줄 항목이 없으니 `…`는 꺼집니다. 핀 동작은 바뀌지 않았습니다.  캡션: 왼쪽 넷은 라이트, 오른쪽 넷은 다크. 각 칸은 레일 위쪽과 아래쪽이고 가운데 빈 곳은 잘라 냈습니다. 맨 아래 핀만 상태에 따라 바뀝니다. ## 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>
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 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).
Review
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 이후) 같은 검사를 다시 돌렸어요.view_areas.rs), web 단위 2개(laneCalls.test.ts,MemoryTab.test.tsx,workspace.test.ts), e2e 3개(work-prs · s7 · right-lane).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…".core_move테스트가 저장 키view_layout대신layout을 읽던 것(핀 Herdr로 로컬 통과), session-panel의 옛 레일 기대값, new-tab(@needs-focus)의 1024px 핀 상태(두 칸이 최소폭으로 들어가 docked가 맞음)./Applications/hide.app은 바꾸지 않았고(지시) 화면 확인은 격리 후보(Playwright의 web shell, Electron e2e)에서만 했어요. Windows · Linux는 CI lane이 대신해요.browser.spec.ts(@platform, 페이지 폭 900 규칙)와 remote-workspace · browser-cdc 등 나머지 desktop spec은 로컬에서 안 돌렸고 CI의 desktop e2e에 맡겨요.추가 증거
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