Skip to content

Replace the Workspace layout switch with a side panel over the agents - #173

Merged
yansfil merged 40 commits into
mainfrom
web-view-overlay
Sep 27, 2026
Merged

yansfil merged 40 commits into
mainfrom
web-view-overlay

Conversation

@yansfil

@yansfil yansfil commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Related: Closes #170

Summary

  • 첫 빌드에서 같은 동작이 두 곳에 있었던 문제(툴바 토글과 패널 Hide, 툴바 Explorer 토글과 EXPLORER ×)를 #170의 최신 결정 댓글 "Side panel hierarchy, revised"대로 고쳤습니다: 모든 컨트롤은 자신이 바꾸는 컨테이너 위에 한 번만 있습니다.
  • 사이드 패널은 툴바 줄까지 Workspace 전체 높이이고, 툴바(경로)는 에이전트 열만 차지합니다. 패널 1행은 View 탭과 영역마다 "+", 그 뒤 tool column 토글, Expand, Pin, ◫이고, 2행은 문서 헤더와 tool column 위의 Explorer/History 아이콘 탭입니다.
  • core는 Workspace마다 두 개의 explorer/changes 플래그 대신 도구 하나(tool)와 column 표시 여부(tools)를 저장하고, 예전 플래그로 저장된 Workspace는 도구 하나로 다시 열립니다.
  • 모양은 S2입니다: 패널 안의 모든 것(탭 줄, 문서 헤더, 에디터, diff, 페이지, 빈 본문)이 --card 위, 왼쪽 --spacing-sm 틈(pinned일 때 resize grip), --radius-lg 왼쪽 위 모서리, --border hairline, 그림자 없음.
  • 문서가 --background(흰색)에서 --card(#F4F4F5)로 옮겨가면서 Light의 색 토큰 일곱 개가 본문 대비 4.5:1(AA) 아래로 떨어져, design/tokens.json에서 Light 값만 명도를 낮췄습니다: --muted-foreground, --file-blue, --diff-removed, --destructive, 그리고 원래도 모자랐던 --file-yellow, --file-orange, --file-green. 색상과 채도는 그대로이고 --card에서 4.6:1, --background에서 5.1:1입니다. Dark는 바뀌지 않았고 web/src/tokens.css와 Pen 변수는 생성물입니다.
  • 리뷰 후속 결정(web: open a file view over the Agent area instead of shrinking it #170 "Follow-ups from the review"): 패널 왼쪽 틈에 hover하면 hairline과 ⇆ pill이 있는 resize grip이 보이고(Pen Component / Side panel grip), 도구만 있는 패널도 떠 있든 pinned든 폭을 조절해 Workspace마다 따로 저장합니다(tools_share, 처음엔 tool column 폭). ⌘E는 패널을 Explorer로 열고 tool column을 보이게 하며, Explorer가 이미 보이면 column을 숨깁니다. 사이드바 Agents/Projects 전환은 기본 chord 없이 Settings > Shortcuts에서 묶을 수 있습니다.
  • 좁은 창에선 Expand와 Pin이 숨고 도구는 임시 overlay로 열립니다. over 상태에선 터미널을 resize하지 않고(Pin만), 저장된 폭과 패널 옆 에이전트 조작, 좁은 창에서 에이전트 선택 시 드러내기는 그대로입니다.

파일 하나: 1행 탭과 "+", 오른쪽 끝 도구 토글, Expand, Pin, ◫; 2행 문서 헤더와 Explorer/History 탭

Pinned, Light: 에이전트가 패널 왼쪽 틈까지 좁아지고 틈에 hover하면 hairline과 ⇆ pill grip

도구만 있는 pinned 패널, 틈 hover: 같은 grip으로 폭 조절

페이지와 diff 두 영역: 웹 호스트에서도 페이지 주소가 2행에 있어 두 영역의 2행이 맞음

빈 패널: view 없음, 도구 숨김. 1행에 "+", 본문은 ⌘P만 안내

Review

  • 판단해 주세요:
    • 사이드바 전환의 chord는 데스크톱 앱에서 Swift 앱과 공유하는 macOS 세트에 toggle_sidebar_view 키로 저장됩니다. Swift는 모르는 키가 있으면 세트 전체를 기본값으로 되돌리므로, 이 키를 받아들이되 무시하고 Swift에서 저장할 때도 보존하게 PaneShortcutSettings.swift/ShellModel.swift를 고쳤습니다. 이미 설치된 예전 Swift 앱은 이 키를 보면 자기 pane chord를 기본값으로 돌리니, 데스크톱에서 이 chord를 묶기 전에 Swift 앱을 새로 설치해야 합니다.
    • Swift 앱의 ⌘E는 그대로 사이드바 전환입니다(결정은 웹 셸 대상). 두 호스트의 ⌘E 의미가 다릅니다.
    • 에디터 선택 색은 --terminal-selection(셸이 그리는 유일한 텍스트 선택 색), 현재 줄과 코드 블록, diff hunk는 --secondary입니다. --card 위에서 현재 줄과 선택이 구분되도록 골랐습니다.
    • 문서 헤더는 체크아웃 기준 상대 경로이고, 그래도 넘치면 앞쪽을 잘라 파일 이름을 남깁니다(direction: rtl + bdi).
    • Light 토큰 일곱 개가 조금 어두워졌습니다. 사이드바, 설정, 팔레트 등 패널 밖의 --muted-foreground 글자와 파일 색 표시도 같이 어두워지니, Light에서 패널 밖 화면이 괜찮은지 봐 주세요.
    • 비활성 영역의 보이는 탭은 docs/UI_BEHAVIOR.md대로 제목 색만으로 표시되고 밑줄은 활성 영역에만 있습니다.
  • main 병합(사이드바 가독성: 오른쪽 조작, 흔들리지 않는 행, Projects 계보 접기 #180 사이드바 가독성): web/e2e/wire.ts는 두 쪽 도우미를 모두 남겼습니다. design/hide-screens.pen은 JSON을 손으로 합치지 않았습니다. main 파일에 이 브랜치의 screen-workspace를 transplant한 뒤, 깨끗이 병합된 scripts/pen-screens.mjs로 gen-screens.mjs를 다시 돌렸습니다. 병합 전 두 쪽 파일이 각자 생성기 출력과 같았으므로, 재생성 결과가 screen-workspace 안 main의 사이드바 변경과 이 브랜치의 패널을 모두 담습니다. transplant만 했다면 main의 사이드바 변경과 토큰 변수가 빠졌습니다. hide-ui.lib.pen은 자동 병합됐고 gen-pen.mjs 출력과 같습니다.
  • 디자인 후속: Pen의 사이드바(side-e, psb-kbd-*)는 아직 Agents/Projects 옆에 ⌘E를 그립니다. 앱은 chord가 묶였을 때만 보여 줍니다. 병합 전 두 쪽에 모두 있던 것이라 디자인 쪽에서 지울 항목입니다.
  • 조심해서 볼 파일:
    • herdr-core/src/workspace_views.rs - 상태 파일: StoredView가 tool/tools와 예전 explorer/changes를 읽고 새 키만 씁니다. schema 2 그대로입니다.
    • herdr-core/src/runtime/workspace_view.rs - Herdr/core ownership: workspace_view payload의 tool/tools, 모르는 도구는 workspace_view.unknown_tool로 거절, reveal은 Explorer로.
    • herdr-core/src/model.rs - snapshot wire: WorkspaceViewSnapshot의 explorer/changes가 tool/tools로 바뀜. Swift snapshot에는 없습니다.
    • web/src/WorkspaceScreen.tsx, web/src/workspace.ts(panelFrame) - 렌더마다 도는 순수 계산이고 폭 드래그는 놓을 때 이벤트 한 번입니다.
    • web/src/shortcuts.ts, desktop/src/main/menu.ts, macos/Sources/HerdrMacOS/PaneShortcutSettings.swift - 공유 설정: 기본 chord가 없는 명령(메뉴 항목은 accelerator 없이), 공유 macOS 세트의 웹 전용 키.
    • herdr-core/src/workspace_views.rs 등 - 상태 파일과 snapshot wire에 tools_share(Option, 없으면 쓰지 않음) 추가.
    • web/src/Tools.tsx - failure path 인접: overlay 바깥 클릭 판정이 이제 메뉴(role="menu")를 overlay의 일부로 봅니다. 아니면 Explorer 행 메뉴 항목을 고르는 순간 overlay가 닫혀 항목이 사라졌습니다.
  • 질문: Swift 앱의 ⌘E도 Explorer로 옮길까요, 아니면 Swift는 동결 상태 그대로 둘까요?

Evidence

  • 확인한 것:
    • core: verify-cargo.sh lint(fmt, clippy)와 herdr-core lib 테스트 통과. 두 플래그로 저장된 Workspace가 도구 하나로 다시 열리고 다시 쓴 파일에 "explorer":/"changes": 키가 없는 테스트, 모르는 도구 거절, 닫힌 패널에서 도구를 고르면 패널이 열리는 테스트를 추가·수정했습니다.
    • web: typecheck, lint, vitest 378개, check-design-contract.mjs 통과.
    • web e2e(격리된 HOME, HERDR_SOCKET_PATH, SHELL=/bin/zsh, 새로 빌드한 hided와 private Herdr, headless Chromium): 최종 head에서 전체 66개 통과(한 번은 s3/s4/s6/s7 49개, 나머지 17개로 나눠 돌림). s6은 ⌘⇧B, 탭 전환, 팔레트 Hide History, 빈 상태 ⌘P 문구, 도구 토글을, s7은 좁은 창(overlay, Pin/Expand 없음, overlay 안 행 메뉴로 이름 바꾸기 후 Escape로 닫힘)을 확인합니다.
    • 캡처: 디자인 에이전트의 h2 보드 12개 상태를 실제 web shell에서 Dark/Light로 찍은 24장을 Pen과 나란히 비교했고, 1차 비교의 앱 쪽 항목(패널 안 전부 --card, 활성 탭의 --background 칸 제거, 웹 호스트 페이지의 2행 주소, 상대 경로 헤더)을 고친 뒤 다시 찍었습니다. 빈 패널 1행의 "+"와 grip 가이드(쉬는 상태에선 안 보이고 hover/focus에서만)는 이미 맞았습니다. Light 토큰을 바꾼 c010a8f에서 24장을 모두 다시 찍어 마지막 비교에 넘겼습니다.
    • tool column 폭: Pen처럼 card의 hairline을 --size-panel-ideal 안에 셉니다. 도구만 있는 패널의 card가 355, view 옆 column과 card 오른쪽 hairline을 합쳐 355이고 s6 e2e가 둘 다 잽니다. 드래그 계산은 최소 폭(need)만 1~2px 줄었습니다.
    • 후속 라운드: core lib 테스트 전체(834개 포함), vitest 380개, desktop vitest 37개와 typecheck/lint 통과. s6 e2e에 도구만 있는 패널의 hover grip, 드래그 가이드, 놓을 때 {tools_share} 한 번과 폭, ⌘E의 숨기기/보이기/History 교체/닫힌 패널 열기를 추가했습니다. h2-05, h2-12(도구만, pinned, grip hover)를 포함해 26장을 다시 찍었습니다. Swift 테스트는 CI swift shell 잡에 맡겼습니다.
    • 리뷰: 코드 리뷰(Fix now는 중복된 reveal 조건 하나, 고침)와 결정 댓글·Pen 대조 리뷰(⌘E만 남음, 위 질문)를 돌렸습니다.
    • main 병합 뒤(8288cbf): web typecheck, lint, vitest 385개, verify-cargo.sh lint, check-design-contract.mjs, 디자인 테스트 4개(53개), 두 PR이 건드린 e2e(s2, s3, s4, s6, s7, projects-sidebar, sidebar-status) 53개 통과.
    • desktop e2e: relaunch 뒤 Playwright가 복원된 브라우저 display 페이지를 먼저 잡던 경쟁을 shellPage()로 고쳤습니다(bd4213e). Electron은 로컬에서 돌리지 않았고 CI에서만 확인합니다.
    • CI: 8288cbf에서 rust workspace, swift shell, web shell(desktop e2e 포함), desktop app, repository invariants, static-design, verify 7개 모두 통과.
  • 확인하지 못한 것:
    • Electron 앱과 desktop e2e는 운영자 Mac이라 로컬에서 돌리지 않았고 CI web shell 잡에만 맡겼습니다. browser.spec.ts는 없어진 Explorer 토글 대신 도구 column 토글과 탭으로 바꿨습니다.
    • Swift 셸은 이 경로를 쓰지 않아 verify-swift.sh는 로컬에서 돌리지 않았습니다(CI swift shell은 통과).
    • 큰 interface scale에서의 패널 1행은 보지 않았습니다.
  • 생성물: web/src/tokens.css와 design/*.pen의 토큰 변수는 design/tokens.json에서 생성했습니다(check-design-contract.mjs 통과).

AI tooling: 대부분 AI 도구. Pen 보드와 앱 캡처 비교는 디자인 쪽 에이전트가 픽셀로 했고, 사람 눈으로는 위 스크린샷 네 장과 결정 댓글을 대조해 주세요.

A file, diff or page opened from Agents only now keeps the layout and
raises views_over_agents, drawing the View areas over an Agent area that
keeps its size, so no terminal resizes. The flag is Workspace presentation
in the core: an agent or tab choice or an explicit Agents only takes it
down, the last view leaving takes it down, and a toolbar toggle, the
toolbar menu and the palette take it down and bring it back without
closing a view. The covered Agent area is inert.
…ff the agents, and offer the toggle while a file is opening
… agents

The panel sits inset on the Agent area's right with the popover elevation,
and its left edge is a divider whose width the core keeps per Workspace as
views_over_share. The agents to its left stay live: a click or tab choice
there carries in_place and leaves the panel up, and chords follow the
keyboard. The Agent area keeps its full size throughout.
A Workspace's presentation is now a side panel over the agents: closed,
open or expanded, pinned or not, at its share of the body. The three
layouts, the agents' share and the floating Views flag are gone; an entry
stored with them restarts into the nearest panel state. Opening a file, a
diff or a page opens a closed panel, showing a tool while it is closed
opens it, and an explicit agent choice closes an unpinned panel.
The toolbar keeps one panel toggle, with a count of open views while the
panel is closed, beside the Explorer and History toggles. The panel sits
on the body's right edge over an Agent area that keeps its full width, so
opening, closing, resizing and expanding it resize no terminal; Pin docks
it and narrows the agents once. Its actions (New tab, Pin, Expand, Hide)
sit in its top row, and with no view open it is only as wide as the tool
column. The floating inset panel, the Views over agents toggle and the
narrow region switch are gone.
# Conflicts:
#	docs/ARCHITECTURE.md
#	docs/UI_BEHAVIOR.md
#	herdr-core/src/runtime/events.rs
#	web/src/actions.ts
…and badge

- Nothing is placed before the Workspace body is measured, so a pinned
  panel no longer gives the agents a negative inset on the first frame.
- Only views expand: an expanded panel with no view is drawn at its width
  instead of covering the agents with the empty state.
- A tool toggle pressed while the panel is closed opens the narrow panel's
  tools overlay in the same press.
- The toggle, Pin and Expand keep one accessible name with aria-pressed.
- The closed panel's count badge has a height of its own; leading-none
  resolved to the 0px spacing token and collapsed it.
- The ⌘⇧B command is titled Toggle side panel.
@yansfil yansfil changed the title Draw the View areas over the agents when a file opens from Agents only Replace the Workspace layout switch with a side panel over the agents Sep 26, 2026
Reveal in Explorer with the side panel closed now marks the Explorer as
asked for, as a tool toggle does, so the panel that the reveal opens in a
narrow window shows the Explorer instead of a closed overlay.
The test window is 1024 points wide, so the panel already covers the
Workspace body and draws no Expand button; the palette stores the
expanded state the two areas need once the Explorer steps aside.
@yansfil

yansfil commented Sep 26, 2026

Copy link
Copy Markdown
Contributor Author

운영자님, #170 사이드 패널을 이 PR에 올렸습니다. 병합은 하지 않았습니다.

된 것

  • 세 갈래 레이아웃 스위치와 inset 패널을 지우고 결정 댓글대로 사이드 패널로 바꿨습니다: over가 기본, Pin은 Workspace별로 폭과 함께 저장, 툴바엔 토글 하나(닫힘 + view 있음이면 개수 배지), 패널 줄에 New tab, Pin, Expand, Hide.
  • view가 없으면 tool column 폭, Explorer도 숨기면 빈 상태. 예전 agents/together/views로 저장된 Workspace는 closed/pinned open/expanded로 열립니다.
  • over 상태의 열기, 닫기, 폭 조절, Expand는 터미널을 resize하지 않고 Pin만 resize한다는 것을 s6 e2e가 확인합니다. main을 병합했고(Recent Panels가 패널을 열도록 맞춤) docs/UI_BEHAVIOR.md, docs/ARCHITECTURE.md를 고쳤습니다.

CI: 11381ec에서 전부 통과, mergeable CLEAN. 로컬에선 core 테스트와 lint, web unit 377개, web e2e 전체 64개(중간 head)와 최종 head의 s3/s4/s6/s7 48개가 통과했습니다.

판단이 필요한 것 (본문 Review에 자세히)

  • Pen 라이브러리 master와 Screen / Workspace 시트는 운영자 Mac에서 그려야 합니다(Pen CLI 없음, .pen 미수정).
  • 좁은 창에서 뜬 pinned 패널은 에이전트를 골라도 닫히지 않습니다. 닫게 하려면 창 폭을 core에 알리는 방법을 정해야 합니다.
  • Explorer 필터 입력란은 만들지 않았고, 상단 "한 줄"은 View 탭 줄과 tool column 헤더가 나란한 모양입니다.
  • 업그레이드한 Together Workspace는 pinned로 시작하고, 새 Workspace는 닫힌 채 시작합니다. 마지막 view가 닫혀도 패널은 열린 채입니다.

Brings in the pane-scoped Workspace controls and remote Browser routing
(#181). A `--reveal` from a pane goes through the Views intent, so it
opens that Workspace's side panel when it was closed, and an open without
it leaves the panel as it was; the docs say so and a core test pins both.
The Workspace CLI and remote Workspace e2e show their views with the side
panel instead of the removed layout switch.
Add Component / Side panel to hide-ui.lib.pen with its three masters
(the toolbar panel toggle with the open-view count badge, the panel
actions, the S2 panel: --spacing-sm gap on the left, --radius-lg on the
top-left corner, --border hairline, no shadow) and their states: pinned
with the gap as the resize grip, the Explorer-only card carrying the
actions on its EXPLORER row, and the empty panel. Remove the obsolete
Component / Layout switch.

Redraw Screen / Workspace with the side panel open over the full-width
agents and closed with two views open; the toolbar keeps one panel
toggle and no layout switch. Issue #170.
In a window too narrow for the agents beside it, the side panel takes the
whole body and a pinned one floats there. The web now tells the core so
with `panel_covers`, naming the Workspace it draws, only when that fact
changes against the `workspace_view.covered` the core echoes, never per
resize. The core takes it for the Workspace in front only, keeps it in
memory, drops it when the front moves, and closes that Workspace's pinned
panel on an agent or tab chosen from elsewhere, as it does a floating one.
Another Workspace's panel is never touched.
… shadow

Pressing History while the side panel is closed opens it with History
only, and the Explorer toggle with the Explorer only, whatever the other
tool was stored as. The narrow window's tools overlay is drawn with its
border and no shadow, as the library has no drop shadows.
…move the tool-alone rule to the core

- `panel_covers` now says whether the Workspace's panel would take the
  whole body when it shows, so opening or closing it sends nothing and a
  pinned panel opened in a narrow window is already known to cover.
- A page skips a report that matches the core or its own last report, so
  two pages that disagree each send once; a fresh snapshot after a
  reconnect lets a dropped report go again, and a page that stops drawing
  a covered Workspace reports false for it.
- The core opens a closed panel with the tool asked for alone, for any
  client; the web sends only the pressed tool.
- The docs name the case this leaves: an agent chosen in another
  Workspace whose pinned panel covers a narrow window stays under it.
… a reveal with the Explorer alone

- The page forgets its last report when it draws another Workspace or its
  connection goes down, as the core forgets its value when the front
  moves, so going away and back, or a report lost to a reconnect, is told
  again.
- The Workspace screen no longer reports false when it unmounts: an agent
  of the front Workspace chosen from All projects is uncovered as on
  screen, at the cost of one close if the window was widened meanwhile.
- `reveal_path` opens a closed panel with the Explorer alone, like a tool
  shown through `workspace_view`.
…oth All-projects cases

The round trip through beta also passed without the fix, because beta
reports on its own and so replaced the page's last report. Gamma holds no
view and fits the window, so it reports nothing, and only forgetting the
report with the Workspace makes the fixture report again. UI_BEHAVIOR and
ARCHITECTURE now say what an agent chosen from All projects does when the
window was narrowed or widened meanwhile.
Every control sits once, on the container it changes (issue #170,
"Side panel hierarchy, revised").

Component / Side panel: row 1 holds each area's tabs and its New tab,
then the tool-column toggle, Expand, Pin and the panel toggle; row 2
holds the document header and the Explorer and History tool tabs (new
Component / Side panel tool tabs master). The Hide action, the EXPLORER
title row and its close are gone. States cover the tools hidden, the
tools-only panel with Pin, the empty panel naming Cmd-P, and the narrow
window without Expand and Pin.

Screen / Workspace: the panel runs the Workspace's full height beside a
toolbar that spans only the agent column and has no Explorer or History
toggles.
The Workspace view keeps one active tool (Explorer or History) and a
tools-shown flag instead of two independent explorer/changes flags
(issue 170, "Side panel hierarchy, revised"). workspace_view takes
tool and tools; choosing a tool shows the column and opens a closed
panel, a reveal chooses the Explorer, and an unknown tool is refused.
An entry stored with the old flags restarts on the tool it showed.
The side panel runs the Workspace's full height beside a toolbar that
spans only the agent column (issue 170, "Side panel hierarchy,
revised"). Row 1 holds each area's tabs and New tab, then the tool
column toggle, Expand, Pin and the panel toggle, which stays in the
same top-right spot on the toolbar while the panel is closed. Row 2
holds the document header and the Explorer and History icon tabs; the
column shows one tool with no title row or close. The panel is a card
with a left gap that is its resize grip. The toolbar's tool toggles,
the panel's Hide and the empty state's buttons are gone.
…unt the panel's frame in its minimum

In a window too narrow for the agents beside the panel the tools open as
the temporary overlay (issue 170), so the width-based fold, which the
panel's minimum already made unreachable, is gone. The gap and the
card's hairlines count toward the panel's minimum so a View area keeps
its own, and the conflict bar wraps at that minimum.
…as the web shell has them

The side panel master used the native Document toolbar (breadcrumb plus
search, help, folder and open-externally icons); the web header is the
path in caption, then Live, Wrap and Find as ghost buttons. The Explorer
root row is as tall as a tab strip with a bottom hairline and a regular
caption name, so it lines up with the agents' tab strip when the card is
the tool column. The Workspace toolbar sits on --sidebar.
…r, and drive the desktop browser spec through the tool column toggle
The web shell opens the tool column at --size-panel-ideal (355) and
keeps --size-panel-min (260) as its floor; the side panel master, its
tools-only state and Screen / Workspace drew the floor.
…om its checkout, and keep a page's address row in a plain browser tab
The side panel puts documents on --card (#F4F4F5), where these Light
values fell below 4.5:1: --file-blue, --muted-foreground,
--diff-removed and --destructive, and the already failing
--file-yellow, --file-orange and --file-green. Each keeps its hue and
saturation and only drops HSL lightness until it reaches 4.6:1 on
--card (5.1:1 on --background). --diff-removed and --destructive stay
one value; Dark values are unchanged. Regenerated web/src/tokens.css
and the Pen token variables.
@yansfil

yansfil commented Sep 27, 2026

Copy link
Copy Markdown
Contributor Author

c010a8f에서 CI 7개 모두 통과했습니다(web shell 잡의 desktop e2e 포함). 병합하지 않았습니다.

이번 라운드에서 바뀐 것:

  • 패널 안의 모든 것(문서 헤더, 에디터, diff, 페이지, 빈 본문)을 --card 위로 옮겼습니다. 활성 View 탭의 --background 칸은 없애고 밑줄만 남겼습니다. 에디터 선택은 --terminal-selection, 현재 줄과 코드 블록, hunk는 --secondary입니다.
  • 문서 헤더는 체크아웃 기준 상대 경로를 보여 주고, 넘치면 앞을 잘라 파일 이름을 남깁니다. 웹 호스트의 페이지 영역에도 주소가 있는 2행이 생겨 옆 영역과 2행이 맞습니다.
  • 디자인 쪽 c010a8f: 문서가 --card로 옮겨가며 AA 아래로 떨어진 Light 토큰 7개(--muted-foreground, --file-blue, --diff-removed, --destructive, --file-yellow, --file-orange, --file-green)의 명도만 낮췄습니다. --card에서 4.6:1이고 Dark는 그대로입니다.
  • 좁은 창 overlay에서 Explorer 행 메뉴 항목을 고르면 overlay가 먼저 닫히던 문제와, 이름 입력을 끝내면 키보드가 페이지로 빠지던 문제를 고쳤습니다(s7 e2e에 추가).

확인: 로컬 web e2e 66개(격리 HOME, HERDR_SOCKET_PATH, headless), vitest 378개, design contract. Pen 비교용 앱 캡처 24장은 c010a8f에서 다시 찍었습니다.

남은 결정: ⌘E를 "패널을 Explorer로 열기"로 다시 묶을지, 지금처럼 사이드바 Agents/Projects 전환으로 둘지. Swift 셸도 같은 chord를 씁니다.

Component / Side panel grip is a reusable part: a --size-hairline line in
--muted-foreground at --opacity-secondary, broken by a --size-icon-button-toolbar
pill (--card, --border hairline, --radius-md) holding arrow-left-right at
--size-icon-sm. Its states are rest (nothing shows), hovered (the master) and
dragging (kept as hovered). It replaces the primary guide in the pinned state
and is added to a pinned tools-only state, since that panel resizes too.
…ace, and draw the resize grip as a hairline with a pill
@yansfil
yansfil merged commit b4e3ce5 into main Sep 27, 2026
7 checks passed
@yansfil

yansfil commented Sep 27, 2026

Copy link
Copy Markdown
Contributor Author

8288cbf(main #180 병합 포함)에서 CI 7개 모두 통과했습니다. 병합 충돌은 web/e2e/wire.ts(두 쪽 도우미 모두 유지)와 design/hide-screens.pen(transplant 뒤 병합된 pen-screens.mjs로 재생성) 두 곳이었습니다. desktop e2e의 relaunch 경쟁은 shellPage()로 고쳐 이번 CI에서 통과했습니다. 병합하지 않았습니다.

@yansfil
yansfil deleted the web-view-overlay branch September 27, 2026 03:41
HyunjunJeon pushed a commit to HyunjunJeon/hide that referenced this pull request Nov 9, 2026
A test's own sshd chose its port by binding port 0 and letting it go, and
reported itself ready when any listener answered on that port. Another test's
sshd took the port first, the test's sshd exited with "Address already in
use", and the daemon signed in to the other server and stopped at
host_key_changed (with-hide/hide-private#210). A server is now ready only when
its own log says it listens, and one that lost the bind is started again on
another port.

The device pane asker asked the node for a credential as soon as its program
started, before the holder wrote the pane's record as running, and was
refused once with no retry (with-hide#503). The test now releases the asker after the
node's proof of the pane, and a failed wait shows the asker's screen.

The node's caller cap probe wrote its request to a connection the node had
already answered and ended (with-hide#149), and the setup renderer's receipt wait gave
up after 64 frames of a busy daemon (with-hide#294); one now only listens, the other
waits by time.

The remote hook's miss and the relay's non-binary frame (with-hide#173, with-hide#457) now say
which stage ran out and which message arrived. The remote mailbox lane can be
repeated by hand on a branch (repeat input).
HyunjunJeon pushed a commit to HyunjunJeon/hide that referenced this pull request Nov 9, 2026
Closes with-hide/hide-private#210
Closes with-hide/hide-private#503
Closes with-hide/hide-private#149
Closes with-hide/hide-private#294
Related: with-hide/hide-private#718 with-hide#719 (제품 쪽 후속), with-hide#173 (hook 시간 초과는 원인
미확정, 진단만 추가), with-hide#457 (relay, 진단만 추가), with-hide#339 with-hide#398 (WSL, 이슈에 원인과 남은 일을 적음)

## Summary

기기 연결 테스트가 가끔 실패하던 원인 넷을 고쳤습니다. 제품 코드는 바뀌지 않고 테스트 보조 코드와 CI 입구만 바뀝니다.

- with-hide#210: 테스트용 sshd가 고른 포트를 다른 테스트의 sshd가 먼저 잡아도 "준비됨"으로 통과해서, 데몬이 남의 서버에
붙고 `host_key_changed`로 끝났습니다. 이제 자기 sshd가 "listening"을 로그에 쓸 때까지 기다리고,
포트를 잃었으면 다른 포트로 다시 시작합니다.
- with-hide#503: 질문하는 프로그램이 holder가 pane 기록을 `running`으로 쓰기 전에 물어서 한 번 거절당했습니다.
테스트가 노드의 증명을 확인한 뒤에 풀어 주게 순서를 고정했습니다.
- with-hide#149: 거절 순서 문제는 `133b05fe9`가 이미 고쳤고, 남은 BrokenPipe는 상한 확인용 연결이 이미 닫힌
연결에 요청을 쓰던 테스트 경쟁이라 듣기만 하게 바꿨습니다.
- with-hide#294: 설정용 renderer가 프레임 64개에서 포기하던 것을 시간 상한으로 바꿨습니다. 이슈 본문의 첫 증상인
doorbell 시간 초과는 with-hide#173 댓글대로 10월 28일 뒤 재발이 없어, frame 상한을 고친 이 PR로 닫습니다.
- remote mailbox 레인을 브랜치에서 손으로 N번 반복할 수 있습니다: `gh workflow run
remote-mailbox.yml --ref <branch> -f repeat=10`.

## Review

- **판단해 주세요**: 반복 실행을 새 workflow가 아니라 `remote-mailbox.yml`의
`workflow_dispatch` + `repeat` 입력으로 둔 것. `test_vt_cache.py`가 vt-cache 사용
workflow 목록을 고정해서 새 파일은 정책 검사에 걸립니다.
- **조심해서 볼 파일**: `hided/tests/it/support/sshd.rs` - 준비 판정을 연결 성공에서 자기
로그의 "Server listening ... port N."으로 바꾼 곳(macOS sshd로 문구 확인).
재시작(`online(false)` 뒤 `online(true)`)은 로그가 이어 쓰이므로 spawn 뒤에 쓰인 부분만 읽고,
같은 포트를 잃으면 이유를 말하며 실패합니다. `system_ssh`에 이 경로를 확인하는 시험을 더했습니다.
- **조심해서 볼 파일**: `hided/tests/it/device_own_engine.rs` - asker가 파일이 생길
때까지 기다리는 셸 반복. 상태를 기다리는 것이고 시간을 기다리지 않습니다.
- **질문**: #173의 11월 7일 실패는 hook이 제품 예산(`INTAKE_BUDGET` 1.65초) 안에 답을 못 받은
것입니다. 부하 때문에 예산을 못 지키는 경우를 테스트가 어떻게 다룰지(병렬도를 줄일지) 정하지 못해 이번엔 진단만 넣었습니다.

- **후속 이슈**: #149의 남은 틈(노드가 연결을 닫은 뒤에 자리를 돌려주는 것)은 제품 쪽이라 #718에, #503의
제품 쪽 경쟁(holder 기록이 Running이 되기 전의 첫 `hide` 호출 거절)은 #719에 적었습니다. 테스트 쪽
원인은 이 PR이 고쳤습니다.
- 반복 실행은 `--retries 0`으로 돌아, 한 번의 실패가 job의 실패입니다.

## Evidence

- **확인한 것**: `cargo check`와 `clippy -D warnings`(hided, hide-relay 테스트)가
통과합니다. 포트 충돌 메시지(`Bind to port N on 127.0.0.1 failed: Address already in
use`)와 listening 문구는 이 Mac의 sshd에서 직접 확인했습니다.
- **확인한 것**: with-hide#210 원인은 실패한 CI 실행(42085737360)의 보관된 sshd 로그에 `Address
already in use`와 데몬의 `host_key_changed`가 함께 있는 것으로 확인했습니다.
- **확인하지 못한 것**: #503의 원인은 코드 읽기로 좁힌 것입니다(`hide-holder/src/holder.rs`의
spawn 뒤 `running` 기록 사이). 실패한 CI에는 asker 화면이 없었고, 이번 변경이 다음 실패 때 그 화면을
남깁니다.
- **확인한 것**: remote mailbox 레인(Linux)을 이 브랜치에서 `repeat=10`으로 돌려 10회 모두
통과했고(33개 x 10, 재시도 0번, `FLAKY` 줄 없음)
https://github.com/with-hide/hide/actions/runs/42386421651 에서 볼 수 있습니다.
- **확인한 것**: 재시작 경로를 고친 head 6817f7c09에서 `--retries 0`으로 다시 `repeat=10`을
돌려 10회 모두 통과했습니다(33개 x 10, `no flaky test`)
https://github.com/with-hide/hide/actions/runs/42429757957
- **확인하지 못한 것**: 고치기 전 실패율은 이슈별로 며칠에 한두 번이라 10회 통과가 재발 없음을 증명하지는 않습니다. 이
Mac에서는 레인을 돌리지 않았습니다.
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.

web: open a file view over the Agent area instead of shrinking it

1 participant