Skip to content

사이드바: 일하는 프로젝트를 앞에, 제목 표시줄과 도구 줄을 한 줄로 - #1021

Merged
yansfil merged 18 commits into
mainfrom
gen-prd/sidebar-titlebar-refresh
Oct 12, 2026
Merged

yansfil merged 18 commits into
mainfrom
gen-prd/sidebar-titlebar-refresh

Conversation

@yansfil

@yansfil yansfil commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Related: follows #1008 (Settings left nav) · PRD agents/prd/sidebar-titlebar-refresh/prd.md

Summary

  • 사이드바가 일하는 프로젝트를 앞에 둡니다: 에이전트 없는 프로젝트는 No agents N에 접히고, 일하는 에이전트가 있는 프로젝트만 600 굵기입니다.
  • 에이전트가 모두 잠든 프로젝트는 ☾ 4d 칸 하나로 접히고, 펼치면 깨어날 때까지 펼친 채로 있습니다. 판정은 모두 코어가 하고 웹은 그리기만 합니다.
  • 프로젝트·폴더 줄에 포인터나 초점이 있으면 +(그 프로젝트에서 시작)와 ⋯(맥락 메뉴)가 배지 자리에 나오고, 섹션 머리는 스크롤해도 위에 붙습니다.
  • macOS 제목 표시줄과 Workspace 도구 줄을 한 줄로 합쳤습니다: 신호등 옆 This Mac, 가운데 project / checkout과 아이콘 넷. Home 줄과 위쪽 검색 아이콘 대신 Search ⌘K 줄을 둡니다.
  • 톱니 앞 ? Help 메뉴(단축키, Copy diagnostics, Report an issue, 버전)와 checkout·폴더 메뉴의 Open in VS Code를 더했습니다.

후보 앱: 신호등 옆 This Mac과 가운데 alpha / main이 한 줄, Search 줄, 600 굵기의 일하는 프로젝트, No agents 2 접기, 줄 위 + ⋯

폴더 줄 ⋯ 메뉴의 Open in VS Code

Review

  • 판단해 주세요: 첫 이미지에서 신호등과 This Mac, 가운데 경로가 한 줄에 놓인 높이와 간격이 승인된 r3 보드처럼 읽히는지.
  • 판단해 주세요: 잠든 프로젝트를 펼친 상태는 깨어 있는 에이전트 줄이 보일 때만 끝납니다. 재연결로 줄이 잠깐 비어도 유지하려는 것이고, 깨자마자 다음 갱신 전에 끝난 에이전트는 열쇠를 남깁니다(D-19 해석).
  • 조심해서 볼 파일: herdr-core/src/runtime/agents.rs - refresh_inactive_groups가 에이전트 이벤트마다 도는 경로에 프로젝트별 presence 계산을 더함(high-frequency path).
  • 조심해서 볼 파일: herdr-core/src/node_migration/reown.rs - core 이동 때 no_agents/<device>, asleep/<project> 접기 열쇠를 옮기는 규칙(ownership).
  • 조심해서 볼 파일: desktop/src/main/host.ts, desktop/src/preload/index.ts - 새 채널(창 테두리, VS Code 확인과 열기)의 보낸 쪽 확인과 로그(failure path).
  • 조심해서 볼 파일: web/src/index.css .window-drag - 끌기 영역이 단추를 덮으면 누름이 사라집니다. 경로의 checkout 이름은 후보 앱에서 drag로 잡혀 고쳤습니다.
  • 비용 검토: 접기 열쇠 정리는 asleep/ 열쇠가 있을 때만 프로젝트를 훑고, 저장은 열쇠가 실제로 빠질 때만 save 스레드로 갑니다. 락 안에서 subprocess나 I/O는 없습니다.

Evidence

  • 확인한 것: 격리된 후보 데스크톱 앱(개발 빌드, 개인 Herdr)에서 제목 표시줄 없음, 32px 줄 가운데 신호등, Workspace 경로와 아이콘 넷, 신호등 아래 Overview 모달, 사이드바 숨김 시 경로 위치, 폴더 메뉴의 Open in VS Code, 경로 checkout 이름의 메뉴를 창 캡처로 봤습니다.
  • 확인한 것: 전체 화면 진입·이탈 알림(창 상태는 그대로, 이벤트만 보내서)에 신호등 자리가 빠지고 돌아옴.
  • 확인한 것: web e2e 전체 259 통과 후 고친 스펙 재실행 18/18, rebase 뒤 head에서 사이드바 두 스펙 10/10(B9, B10, B24 720×480·글자 17 포함). desktop e2e 63 통과.
  • 확인한 것: 승인된 r3 Pen 보드 대비 design review PASS(밝음·어두움 × 292·240 × 기본·긴 내용), design contract PASS.
  • 확인한 것: rebase 뒤 head에서 cargo test 전체와 lint, web·desktop typecheck·lint·unit(1470 + 184)·build 통과. 첫 CI에서 policy(테스트의 홈 경로)와 windows check(VS Code 탐색 경로를 실행 중인 OS 규칙으로 만듦)가 실패해 고쳤습니다.
  • 확인하지 못한 것: 실제 포인터로 창 끌기와 두 번 누르기(전면 입력 필요), 실제 전체 화면, VS Code 실제 실행, 앱 안 checkout 줄 메뉴, Windows·Linux 창 테두리.
  • 확인하지 못한 것: SSH나 패키지 앱이 필요한 desktop e2e 13개(device-home 포함)는 이 기계에서 건너뜀. Search 단축키 재지정(B12), Home 에이전트의 ⌘K·Sessions 도달(B11), +의 폴더·대체 대상 경로(B7)는 e2e가 없습니다.
  • 확인하지 못한 것: agent-live-check.spec.ts 4개와 desktop/e2e/browser-agent.spec.ts:222는 실패하지만 main 0a6dd126c에서도 같은 방식으로 실패합니다.
  • 생성물: design/hide-ui.lib.pen(Sidebar chrome 시트, Project row 칸)과 design/hide-screens.pen은 scripts/pen-*.mjs가 만든 diff입니다.
Verification record
  • PRD: agents/prd/sidebar-titlebar-refresh/prd.md (sha256 486589e3d6cc6260f51291d62e5bf92543e1abfa5cd18bb23f0f61f2d28fa8bf)
  • Base e7b2347 → head 0687627, verified 2026-10-12T17:34:03.083Z: PASS
  • Verification report: agents/runs/sidebar-titlebar-refresh/verification-report.json and agents/runs/sidebar-titlebar-refresh/verification-report.md; source fingerprint 0308e3bdc544c5e1d31798bfaf6b993a6b7a3fffbe3f0901af4df49a07f5a84c
  • Suites:
    • S1: GREEN bash scripts/verify-cargo.sh test (exit 0)
    • S2: GREEN bash scripts/verify-cargo.sh lint (exit 0)
  • Reviews:
    • Fidelity (full review at 4516fd32a, rebased as 6321d1a; follow-ups at 78f228544 (rebased as 7b521e0) and at 51fad04 after the rebase): PASS, no Fix now. Follow-up: docs/UI_BEHAVIOR.md 393/681 second-line wording predates this branch and conflicts with main's native-question line.
    • Code (full review at 4516fd32a, rebased as 6321d1a; Fix now items fixed in 13ce092, 9ee5f7f, b163d91, 7b521e0; follow-ups at 78f228544 (rebased as 7b521e0) and 51fad04): PASS, no Fix now. Follow-ups: an end-to-end asleep/ re-own case through reown(), one stuck-header mark per frame instead of two, and a stale read in revealSidebarFocus when a header sticks mid-scroll.
    • Rebase onto e7b2347: git range-diff shows all 15 branch commits patch-identical; the one new commit is the still_naming test.
    • Code (CI fixes 127bc61 neutral test home, 0687627 VS Code probe spelled per target system for the Windows lane): PASS, no Fix now, no Follow-up.
  • Evidence: 9 registered (6 screenshot, 1 log, 2 file); paths are local to the run directory
    • agents/runs/sidebar-titlebar-refresh/native/shots/01-rest-overview.png
    • agents/runs/sidebar-titlebar-refresh/native/shots/02-workspace.png
    • agents/runs/sidebar-titlebar-refresh/native/shots/03-overview-modal.png
    • agents/runs/sidebar-titlebar-refresh/native/shots/04-sidebar-hidden.png
    • agents/runs/sidebar-titlebar-refresh/native/shots/05-folder-menu.png
    • agents/runs/sidebar-titlebar-refresh/native/shots/p2-path-menu-light.png
    • agents/runs/sidebar-titlebar-refresh/native/NATIVE-QA.md
    • agents/runs/sidebar-titlebar-refresh/design/review/20261012-120326-0c2919/report.md
    • agents/runs/sidebar-titlebar-refresh/design/review/20261012-152355-db47a1/report.md
  • Changed paths: 122 (see Files changed)
  • Delivery: mode pr, branch gen-prd/sidebar-titlebar-refresh, base main

Each project carries agent_presence (working, asleep with the newest sleep time
and its own fold); the navigator groups agentless projects per device into
no_agent_projects. The No agents and sleeping folds open through
session_open_folds keys (no_agents/<device>, asleep/<project>); a sleeping
project's key is forgotten when it wakes, so the next sleep starts folded.
…op host

The host draws no title bar on macOS, places the traffic lights over the
web shell's top row and tells the page when fullscreen removes them. It
probes VS Code once per launch and opens a checkout folder in it, logging
a refusal or failure without the path.
The sidebar folds projects without agents under No agents, weighs project
names by working agents, folds sleeping projects behind a moon age cell,
pins section headers while scrolling, adds a Search row, the hover + and
... pair, a Help menu and Open in VS Code, and drops the Home section. The
window's top row carries the device title over the rail and sidebar and
the project / checkout path with the Workspace icons.
The checkout name in the path sat in the drag region, so its hint and the
right-click path menu never received the pointer in the desktop app.
…rary and screens

The Project row master gains the moon cell, the + and ... pair and the
quiet weight; a generated Component / Sidebar chrome sheet carries the
Search row, the sticky section header and the Help menu; the Workspace
actions master adds Overview. Screen / Projects Sidebar, Workspace,
Palette and the context sidebars drop the Home row and draw the top row,
and the projects-sidebar review target points at the approved r3 boards.
The row-fit and row-part checks skipped no transparent element, so a
row's hidden + and ... pair in its badge cell read as an overlap, and a
section header stuck over the rows scrolling under it read as one too.
They now measure only visible parts and leave header-to-row pairs alone;
the No agents fold replaces Home in the measured rows.
…ites

Specs that went through the Home row or the Workspace toolbar's Home
path now reach All projects through the Overview row, open the No agents
fold when a project they need runs no agent, and start in Home from the
start panel. New tests cover the No agents fold, name weight, the
sleeping fold, the + and ... pair, sticky section headers, the Search
row, the top row and the Help menu; the app suite checks the frame the
host reports. The workspace-servers gallery scene draws the top row.
Projects that run no agent now wait under No agents and a project whose
agents all sleep folds behind its moon, so the specs that open such a
project's checkout open the fold first through one helper each. The
desktop host stub in the ⌘K spec gains the bridge's window-frame and
editor methods.
The keys and workspace-columns specs switch to projects that run no
agent, which now wait under No agents; they open the fold first.
…n main

About's Copy diagnostics and the Help menu's now read the stores through
diagnosticsInputOf, and design/hide-screens.pen is generated again from
main's copy with this branch's builders.
…nd a removal

A sleeping project's open fold ends only when an agent there is awake, so
a reconnect that publishes no rows keeps it. A core move re-owns the
no_agents/<device> and asleep/<project> keys with their ids, removing a
device drops its no_agents key and its projects' asleep keys, and
removing a project drops its asleep key.
…r-render work

homeProjectCount and contextHome lost their last caller with the Home
row. The stuck-header marker sets its listeners once per list and section
count instead of on every snapshot, and a focused row is brought in under
the header that is actually stuck.
openSessions went through the Overview row, which over a Workspace opens
the Overview as a layer and leaves the footer inert, so the app suite's
theme change after it found no Settings button; it now opens the
project's Overview page. The remaining specs that open a checkout of a
project with no agent reveal the No agents fold first, whichever project
the core puts in front. A new test sets the 720 by 480 window and the
largest Interface text and checks that a long path shortens while the
four icons keep their place.
…ys in the re-own check

The stuck-header marker observes every row of the list and re-observes
when rows come or go, so a raised group growing above the sections keeps
data-stuck current. The re-own safety check sees a remote project's
asleep/ fold, and the sleeping-project test keeps its own doc comment.
@yansfil
yansfil merged commit 17a0137 into main Oct 12, 2026
21 checks passed
@yansfil
yansfil deleted the gen-prd/sidebar-titlebar-refresh branch October 12, 2026 23:48
yansfil added a commit that referenced this pull request Oct 13, 2026
Related: #1019, #1021

## Summary

Account usage now shows five-hour and weekly windows in up to three
sidebar chips and a shared popover.
Settings > Usage controls shared pins and visibility, with explicit
reasons for unsupported agents.
Long values wrap while switches stay in one column; the expanded
navigation fits the minimum window at default text size.
The node keeps credentials private; typed readings drive both the
display and background admission decisions.

![Five-hour and weekly usage in the isolated Electron renderer, English
at maximum text
size.](https://github.com/yansfil/pr-assets/blob/main/hide/usage-limits/613e371/usage-popover-en-electron.png?raw=true)

## Review

- Judge the window labels, localized reason lines and chip density in
the screenshots.
- Watch `hide-host/src/usage.rs` for credential boundaries and
`herdr-core/src/usage.rs` for failure and refresh state.
- Two bounded readers poll off the runtime lock; visible reads use a
five-minute cadence and shutdown cancels/joins them.
- The core publishes changed readings only; an open popover updates its
countdown once per minute.

## Evidence

- Shared pin/hide browser flow, parser states, backoff, late-event
rejection and restart persistence passed.
- Isolated Electron: 720x480, maximum text, English light/Korean dark;
footer and Settings reason lines fit; the navigation scrolls at maximum
text.
- Screenshots use an external Claude CLI fixture and signed-out Codex;
they capture the renderer, excluding native chrome.
- Real Codex five-hour output and Windows/Linux native visuals were not
observed locally; five-hour data uses a documented fixture.
- `design/hide-ui.lib.pen` and regenerated `design/hide-screens.pen`
passed the design contract and export inspection.

<details><summary>Settings screenshots</summary>

![English maximum text: switches stay aligned while values wrap;
navigation remains
scrollable.](https://github.com/yansfil/pr-assets/blob/main/hide/usage-limits/613e371/usage-settings-en-electron.png?raw=true)

![Korean maximum text: aligned switches and readable refusal
copy.](https://github.com/yansfil/pr-assets/blob/main/hide/usage-limits/613e371/usage-settings-ko-electron.png?raw=true)

</details>

## Breaking change

Node protocol 30 removes credential-returning calls; core and device
helpers must use compatible builds.

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

- PRD: `agents/prd/usage-limits/prd.md` (sha256
8cfe5dc081853e73a09563660509648a18a8a68db94e10d9660510b17416c604)
- Base 441e46b → head 613e371, verified 2026-10-13T01:12:26.851Z: PASS
- Verification report:
`agents/runs/usage-limits/verification-report.json` and
`agents/runs/usage-limits/verification-report.md`; source fingerprint
6fa101ddf764c36241f59d20d62ec72824c1665f2b9153eae37cabe50973365b
- Suites:
  - S1: GREEN `bash scripts/verify-cargo.sh test` (exit 0)
  - S2: GREEN `bash scripts/verify-cargo.sh lint` (exit 0)
- Fidelity review: 613e371; all 22 requirements covered and current
findings closed, including switch alignment and minimum-window
navigation.
- Code review: 613e371; prior complete review plus navigation spacing,
preserved row targets and updated tab-order/keyboard regression
coverage.
- Security review: 613e371; no blocking findings. Existing redirect
account-header handling and concurrent-growth tail bounds remain
follow-ups.
- Fixes: queued reads after Hide/backoff, invisible pins including
delayed events, unreadable responses, narrow switch alignment, and the
23 px minimum-window Settings navigation overflow.
- Checks: Rust full suite 4413 passed/96 ignored; web unit 1478 passed/1
skipped; desktop unit 184 passed/4 skipped; Settings browser suite 3
passed; targeted usage browser and Electron geometry flows passed.
- Electron geometry covers four switch right edges and first-label-line
centers in EN/KO maximum text, including unavailable/refused-fourth-pin
rows; navigation fit without scrolling is checked at default text.
- Previous CI found navigation overflow and obsolete tab-order
expectations; both were reproduced or identified and corrected. An
unrelated project-row focus test passed its retry and remains a flaky
follow-up.
- Earlier credential request fixtures were updated to the current
protocol; this report supersedes earlier heads and source-moved
verification.
- Delivery follows the approved prerequisite rebase; current-main
merge-tree was conflict-free before PR creation.
- CI: 613e371 passed all 19 applicable checks, including required
`verify`; 2 planned skips.
[Run](https://github.com/modakbul-gongbang/hide/actions/runs/38331172563).
- Evidence: 32 registered (12 log, 10 screenshot, 10 file); paths are
local to the run directory
  - agents/runs/usage-limits/usage-e2e.log
  - agents/runs/usage-limits/web-suite.log
  - agents/runs/usage-limits/review-fixes-tests.log
  - agents/runs/usage-limits/pin-reconcile-test.log
  - agents/runs/usage-limits/host-reproduction.log
  - agents/runs/usage-limits/design-contract-final.log
  - agents/runs/usage-limits/late-pin-test.log
  - agents/runs/usage-limits/web-switch-tests.log
  - agents/runs/usage-limits/usage-footer-en-electron.png
  - agents/runs/usage-limits/usage-footer-en-electron.json
  - agents/runs/usage-limits/usage-footer-ko-electron.png
  - agents/runs/usage-limits/usage-footer-ko-electron.json
  - agents/runs/usage-limits/usage-popover-en-electron.png
  - agents/runs/usage-limits/usage-popover-en-electron.json
  - agents/runs/usage-limits/usage-popover-ko-electron.png
  - agents/runs/usage-limits/usage-popover-ko-electron.json
  - agents/runs/usage-limits/usage-settings-bottom-en-electron.png
  - agents/runs/usage-limits/usage-settings-bottom-en-electron.json
  - agents/runs/usage-limits/usage-settings-bottom-ko-electron.png
  - agents/runs/usage-limits/usage-settings-bottom-ko-electron.json
  - agents/runs/usage-limits/usage-settings-en-electron.png
  - agents/runs/usage-limits/usage-settings-en-electron.json
  - agents/runs/usage-limits/usage-settings-ko-electron.png
  - agents/runs/usage-limits/usage-settings-ko-electron.json
  - agents/runs/usage-limits/usage-settings-unsupported-en-electron.png
  - agents/runs/usage-limits/usage-settings-unsupported-en-electron.json
  - agents/runs/usage-limits/usage-settings-unsupported-ko-electron.png
  - agents/runs/usage-limits/usage-settings-unsupported-ko-electron.json
  - agents/runs/usage-limits/native-usage-renderer.log
  - agents/runs/usage-limits/settings-nav-repro.log
  - agents/runs/usage-limits/settings-nav-fixed.log
  - agents/runs/usage-limits/nav-design-contract.log
- Changed paths: 78 (see Files changed)
- Delivery: mode pr, branch `gen-prd/usage-limits`, base `main`

</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