Repository navigation
Sidebar agent status: waiting-on-children parent, badge child list, quiet rows - #151
Merged
Merged
Conversation
A lineage root with no demand of its own that is stopped, idle or done, while a live descendant is working or asking, is now waiting on its children: it stays in Working with the hollow ring and the status word Waiting, and reaches Done only once it and every descendant are quiet. A descendant's question still turns it unread and never moves it to Needs You. The state travels as the additive waiting_on_descendants flag beside group working, so the frozen Swift shell draws an ordinary Working row. A row with an unresolved demand now keeps its request sentence in every group, so a read question and a delegated child's request still say what they ask until answered.
Each group now lists its root agents; a delegated row sits beneath its parent while the parent is unfolded through the core's agent tree toggle. A folded parent wears a per-state badge that opens a list of its direct children: arrow keys move, Enter or the row arrow opens the child's pane, the last item unfolds them in the list, Escape returns focus to the row, and there is no Stop. A row is one line unless it has something to say: a request stays in the warning colour until resolved, news is bright until read, and the selected or hovered row reveals its full sentence over two lines. A root waiting on its children draws its ring in the working colour. The rules live in agentRow.ts so any list of agents can reuse them.
Since delegated rows moved beneath their parents, a group heading counted only its roots, and a delegated row whose own group differed from its parent's was counted nowhere. A heading now counts each root and all of its live descendants once, under the root's heading. The row's visible text is hidden from assistive technology because the row button's name already reads it out, and the unused status_word_visible type field is dropped.
The row's visible text is hidden from assistive technology because the row button's name reads it out, so the branch chip a delegated row shows when its checkout differs from its parent's has to be in that name too.
yansfil
added a commit
that referenced
this pull request
Sep 25, 2026
yansfil
added a commit
that referenced
this pull request
Sep 25, 2026
Related: PRD `agents/prd/web-project-overview/prd.md` · follows #150 (web design system reset) and #151 (sidebar agent status) ## Summary - 웹 셸의 Project Overview가 목록이었던 것을 Swift ProjectHomeBoard와 같은 규칙의 보드로 바꿉니다 (Pen board F 기준). - Tasks 보기: 준비 / 작업 중 / 리뷰 / 머지됨 단계 열, worktree가 아닌 checkout의 즉석 줄, 링크 안 된 issue backlog; 머지됨은 접혀 이름만 보입니다. - Agents 보기: lineage root마다 카드 하나를 진행 중 / 내 확인 대기 / 끝 열에 놓고, 답을 기다리는 카드가 열 맨 앞에 halo로 옵니다. - 헤더: worktree 수, 열린 PR 수, upstream보다 뒤처진 커밋 수, Sessions, New agent (git 프로젝트는 New worktree 대화상자, 폴더는 Workspace). - 카드의 agent 행은 #151의 Agents 목록 행(`AgentRowItem`, `agentRow.ts`)을 그대로 쓰고, 후손을 기다리는 링은 core의 `waiting_on_descendants`에서 옵니다 (D-07). - ⌘⇧H가 앞에 있는 checkout의 Overview를 열고, Escape는 열린 대화상자나 메뉴가 없을 때만 Workspace 또는 Main으로 돌아갑니다.   ## Review - **판단해 주세요**: 단계 규칙이 Swift와 같아서, 자기 커밋이 없는 새 worktree(커밋 안 한 변경이 있어도)는 `merge-base --is-ancestor`로 머지됨에 들어갑니다. PRD B5대로 두었고 바꾸지 않았습니다. - **판단해 주세요**: 브랜치 칩은 #151 규칙(부모와 checkout이 다를 때)을 따릅니다. 전에는 카드의 checkout과 다를 때였으므로, 3단 lineage에서 같은 checkout에 머문 손자에는 칩이 없습니다. - **판단해 주세요**: 카드는 사이드바 접힘과 무관하게 lineage 전체를 그리므로 chevron과 후손 배지가 없습니다. issue link/unlink 메뉴는 이식하지 않았습니다. - **판단해 주세요**: 문구는 board F의 한국어를 따릅니다. 원격 기기 칩은 원격 프로젝트에만 보입니다. - **조심해서 볼 파일**: `web/src/keyboard.ts` - Escape 순서 (escapeLayers 다음, overlay 다음에 Overview 나가기) - **조심해서 볼 파일**: `web/src/components/agent-row.tsx` - 사이드바와 공유. `onToggleTree`가 null이면 chevron 열을 그리지 않으며, 사이드바는 항상 함수를 넘깁니다. - **조심해서 볼 파일**: `web/src/projectBoard.ts` - high-frequency path. agent가 틱할 때마다 보드를 다시 만들고, memo된 `AgentRowItem`이 바뀐 행만 다시 그립니다. - **조심해서 볼 파일**: `web/src/navigation.ts` - `OverviewProject`가 `deviceAgents`로 바뀌어 기기가 응답하지 않아도 마지막 행을 유지합니다 (D-06). ## Evidence - **확인한 것**: 격리된 pinned Herdr 0.9.1과 worktree에서 빌드한 hided 위의 Playwright e2e. main 병합 후 전체 60/60, 마지막 chevron 변경 뒤 overview/sidebar-status/s6/s8/shell/theme 10개 통과 (8d0b9ea). - **확인한 것**: overview.spec은 git 저장소 + bare origin + worktree 3개(긴 브랜치, 답을 기다리는 agent, ff-merge 끝남), 폴더, agent 없는 프로젝트를 fixture로 씁니다. - **확인한 것**: overview.spec이 확인하는 것: 단계 배치, halo, 두 번째 줄, 머지됨 접기, 긴 브랜치 잘림, 헤더/⌘⇧H/Escape, 대화상자 안의 Escape, 데몬 재시작 중 보드 유지(alert 없음). - **확인한 것**: `pnpm --dir web typecheck`, `lint`, `test` (39 files, 318 tests); Swift parity 단위 테스트는 `projectBoard.test.ts`. - **확인한 것**: `node scripts/check-design-contract.mjs`, shortcut/right-panel/workstation-identity/harness-ignore 체크 통과. Light/Dark 캡처를 Pen board F와 나란히 대조했습니다. - **확인하지 못한 것**: 실제 `gh` 데이터(리뷰 열, CI 결과, 열린 PR 수, issue 칩, backlog)는 fixture에 GitHub이 없어 단위 테스트로만 확인했습니다. - **확인하지 못한 것**: 원격(SSH) 기기 프로젝트 보드, 라이브 앱의 GitHub stale 툴팁, 폴더/빈 상태의 Dark 캡처. - **생성물**: `design/hide-screens.pen`은 `node scripts/gen-screens.mjs`로 다시 만들었습니다 (Screen / Project Overview). **AI tooling**: 대부분 AI 도구. 단계/열 규칙을 Swift `ProjectHomePresentation.swift`와 대조했고, 캡처를 Pen board F와 대조했습니다. <details><summary>Verification record</summary> - PRD: `agents/prd/web-project-overview/prd.md` (sha256 3515371bc8c6504f637e52229dbae83978cb9d96dd4413a4f217bf9ecead6b75) - Base fe5e0df → head 8d0b9ea, verified 2026-09-25T22:47:23.549Z: PASS - Verification report: `agents/runs/web-project-overview/verification-report.json` and `agents/runs/web-project-overview/verification-report.md`; source fingerprint d86ab5e2794edb250e3a6cab67783201e1fe7b20e34a29e4ca311e9276268d85 - Suites: - S1: GREEN `bash scripts/verify-cargo.sh test` (exit 0) - S2: GREEN `bash scripts/verify-swift.sh test` (exit 0) - S3: GREEN `bash scripts/verify-cargo.sh lint` (exit 0) - Reviews: - Fidelity (head 8d0b9ea): no Fix now. Earlier round: Fix now 1 on 563137f (needs-you second line) fixed in b86341b. Follow-ups: restore a multi-level lineage case through `buildBoard`; `device={null}` would hide a remote row's device chip if the Overview ever shows one. - Code (head 8d0b9ea): no Fix now; confirmed the sidebar is unchanged, the `AgentRowItem` memo holds, and no removed name is referenced. Earlier round: Fix now 1 on 563137f (dead `OverviewProject.agents`) removed in 325dbca. Follow-ups: lineage walk written twice (`treeRows`, `sectionTree`), a 3-level branch-chip test, `Date.now` in the board memo, cycle/duplicate-pane tests, `wire.ts` sidebar assumption. - Evidence: 22 registered (13 screenshot, 5 image, 4 log); paths are local to the run directory - agents/runs/web-project-overview/evidence-2/captures/overview-tasks-dark.png - agents/runs/web-project-overview/evidence-2/compare/board-f-vs-tasks-dark.png - agents/runs/web-project-overview/evidence-2/captures/overview-agents-dark.png - agents/runs/web-project-overview/evidence-2/compare/board-f-vs-agents-dark.png - agents/runs/web-project-overview/evidence-2/captures/overview-tasks-light.png - agents/runs/web-project-overview/evidence-2/compare/board-f-vs-tasks-light.png - agents/runs/web-project-overview/evidence-2/captures/overview-agents-light.png - agents/runs/web-project-overview/evidence-2/compare/board-f-vs-agents-light.png - agents/runs/web-project-overview/evidence-2/captures/overview-folder-light.png - agents/runs/web-project-overview/evidence-2/captures/overview-empty-light.png - agents/runs/web-project-overview/evidence-2/pen-screen-project-overview.png - agents/runs/web-project-overview/evidence-2/web-unit.log - agents/runs/web-project-overview/evidence-2/web-e2e.log - agents/runs/web-project-overview/evidence-5/captures/overview-tasks-dark.png - agents/runs/web-project-overview/evidence-5/captures/overview-tasks-light.png - agents/runs/web-project-overview/evidence-5/captures/overview-agents-dark.png - agents/runs/web-project-overview/evidence-5/captures/overview-agents-light.png - agents/runs/web-project-overview/evidence-5/captures/overview-folder-light.png - agents/runs/web-project-overview/evidence-5/captures/overview-empty-light.png - agents/runs/web-project-overview/evidence-5/captures/sidebar-status-waiting.png - agents/runs/web-project-overview/evidence-5/web-unit.log - agents/runs/web-project-overview/evidence-5/web-e2e-focused.log - Changed paths: 34 (see Files changed) </details>
yansfil
added a commit
that referenced
this pull request
Sep 25, 2026
…152) under the desktop host The shortcut table keeps the filled Electron column and takes main's Project home row, which now opens the front checkout's Project Overview.
yansfil
added a commit
that referenced
this pull request
Sep 26, 2026
…h hide connect (#149) Related: PRD `agents/prd/electron-basic-port/prd.md` · main(#150 web design system reset, #151 sidebar agent status, #152 Project Overview)을 머지해 그 web shell 위에서 동작 (PRD D-09) ## Summary - 브라우저 탭의 web shell은 ⌘T/⌘W 같은 단축키를 Chrome에 빼앗기고 다른 탭 사이에 섞입니다. - `desktop/`에 Electron 호스트를 추가했습니다: `hide connect`로 살아 있는 hided에 붙거나 띄우고, 그 web shell을 전용 창에 띄웁니다. - 레지스트리의 Electron 열을 Swift 단축키로 채웠고, 앱 메뉴도 같은 열에서 만들어 창 리스너와 같은 `run`으로 보냅니다. - hided CLI에 `hide connect`(JSON)와 `hide status --json`을 추가했고, 데몬은 자기 프로세스 그룹을 가집니다. - 서명·공증·배포 없이 로컬 `.app` 패키징(`pnpm --dir desktop package`)과 dev 실행만 제공합니다.    ## Review - **머지 전 필수 수동 확인**: 패키징한 앱에서 실제 키로 ⌘T, ⌘W, ⌃Tab, ⌘C/⌘V를 한 번씩 눌러 동작이 정확히 한 번인지 봐 주세요. - **판단해 주세요**: 한 번 누름이 두 번 실행되면 대안은 Electron에서 메뉴 소유 단축키를 리스너가 답하지 않게 하는 것입니다(CodeMirror의 Mod-d/f/`/`와 충돌 비용 있음). - **판단해 주세요**: 새 탭/새 워크스페이스 힌트 문구 4곳과 Settings 안내 한 줄이 호스트 단축키를 읽게 바뀌었습니다(브라우저 출력은 이전과 같음). - **판단해 주세요**: Electron에서는 브라우저 단축키 재지정(`browser_shortcut_bindings`)을 적용하지 않습니다. Electron 재지정은 후속입니다. - **조심해서 볼 파일**: `hided/src/cli.rs` - failure path: `hided`가 옆에 없는 `hide`는 이제 자신을 다시 띄우지 않고 `start_failed`로 거절합니다(심볼릭 링크 CLI에서 자기 증식 체인이 나던 버그). - **조심해서 볼 파일**: `desktop/src/main/host.ts` - failure path: 발견 상태 기계, 데몬 소실 후 재부착, 토큰이 로그에 남지 않는 경계. - **조심해서 볼 파일**: `.github/workflows/pr.yml` - desktop lane 추가와 web lane 안의 Electron e2e는 GitHub에서 처음 돕니다. ## Evidence - **확인한 것**: `_electron` smoke 5개, 격리된 hided + pinned Herdr: 부착과 터미널 pane, Playwright ⌘T와 메인 프로세스 메뉴 클릭이 각각 `create_tab` 정확히 1회, ⌥T 무반응. - **확인한 것**: 같은 smoke에서 renderer에 Node API 없음(`hideHost`는 `kind`, `onCommand`뿐), 외부 링크·이동은 기본 브라우저로, 창은 데몬 origin 유지. - **확인한 것**: 두 번째 실행은 종료하고 기존 창을 부름, 마지막 창을 닫아도 앱 유지 후 activate로 복귀, 종료 후 같은 데몬 pid에 재부착, 창 크기·위치 복원. - **확인한 것**: CLI 없음 화면과 Retry 후 부착, `hide stop` 후 web shell의 끊김 표시, 새 데몬으로 창이 따라감. - **확인한 것**: 패키징한 unsigned `hide.app` 한 인스턴스(PID로 식별)를 격리 상태로 띄워 창 캡처, 종료·재실행 때 같은 데몬 pid(33068) 재사용. 이 네이티브 확인은 main 머지 전 head에서 했습니다. - **확인한 것**: main 머지(#151, #152 포함) 후 head에서 web 단위 321개와 web e2e 60개 전체, desktop 단위 23개(토큰이 로그에 남지 않음 포함)와 `_electron` smoke 5개, cargo test/lint, swift test. - **확인한 것**: 머지 후 상태 페이지는 생성된 토큰만 씁니다. 렌더된 배경·글자·버튼 색이 `tokens.css`의 `.dark` 값과 같음을 Electron에서 계산된 스타일로 확인했습니다. - **확인하지 못한 것**: 실제 키 입력. 이 Mac에 손쉬운 사용/이벤트 합성 권한이 없어 비활성 앱에 보낸 CGEvent가 버려졌습니다. 메뉴 가속키 이중 실행과 터미널의 ⌘C/⌘V는 미확인입니다. - **확인하지 못한 것**: Dock 클릭과 ⌘Q를 실제로 누르지는 않았습니다(`activate` 이벤트와 기본 `quit` 역할로 대신). - **CI**: 첫 실행에서 lifetime 테스트가 러너의 작은 화면 때문에 실패했고, 창 크기를 작업 영역 안에 맞추고 실제 배치된 bounds를 기대하도록 고쳤습니다. <details><summary>Verification record</summary> - PRD: `agents/prd/electron-basic-port/prd.md` (sha256 f9d347e4d5d315f4304d2cc2b5c183509b659c24e75b5560f492a5635b3b8bca) - Base cb8bdff → head e1e560b (merges of origin/main fe5e0df #150 and c0966d6 #151/#152), verified 2026-09-25T23:43:59.806Z: PASS - Verification report: `agents/runs/electron-basic-port/verification-report.json` and `agents/runs/electron-basic-port/verification-report.md`; source fingerprint 99f1c74ce8d26623f6d880100f826b6659673231741625629f5a21c6e3e95e0d - Suites: - S1: GREEN `bash scripts/verify-cargo.sh test` (exit 0) - S2: GREEN `bash scripts/verify-swift.sh test` (exit 0) - S3: GREEN `bash scripts/verify-cargo.sh lint` (exit 0) - Reviews: - Fidelity, reviewed 5ec821c, follow-ups to ee979d9, 3b05523 (CI test fix) and 4a006a8 (merge of #150: host-chord edits all survived on the redesigned components, status page on generated tokens only; no new findings) and e1e560b (merge of #151/#152: every host call site survived, the Overview's ⌘⇧H and Escape go through the shared listener, the ARCHITECTURE table matches the registry; no new findings): Fix now (1) native double-fire unverified and the docs stated it as fact - docs reworded to an assumption with the fallback, native check left to the human above; (2) hint literals beyond the stated web boundary - accepted within B9/B12, called out above. Follow-ups: B7 e2e added; watch the first CI run; daemon_binary change called out. - Code, reviewed 5ec821c, follow-ups to ee979d9, 3e2a669, 3b05523 (CI test fix; its read-back suggestion applied in 3b05523) and 4a006a8 (merge of #150: token extraction throws on a missing block, rendered status colors match `.dark`, lockfile only adds desktop; no new findings) and e1e560b (merge of #151/#152: no auto-merge fault in keyboard.ts, the menu bridge's null event reaches the new Overview action safely, no new call site bypasses the host registry; no new findings): Fix now (1) a failed loadURL logged Electron's message with the token URL - fixed, only the error code is logged, `log.test.ts`; (2) native double-fire - kept as the unverified human check, menu-only fallback not taken because of CodeMirror's own Mod-d/f/`/`. Follow-ups taken: queued CLI call after quit resolves as not started, post-spawn stream error is not a spawn failure, `engines` node >=22.12. Left: `MAX_DAEMON_CHILDREN` unused (pre-existing), CI lanes install the whole workspace (intentional). - Follow-up improvements: Electron shortcut rebinding; native keystroke automation once an Accessibility-granted QA host exists; tray, global shortcuts, Dock badge, pet, Browser pane, drops, usage (PRD D-05). - Evidence: 8 registered (6 screenshot, 2 log); paths are local to the run directory - agents/runs/electron-basic-port/qa/native-after-cmd-t.png - agents/runs/electron-basic-port/qa/native-attached.png - agents/runs/electron-basic-port/e2e-final/desktop-attached.png - agents/runs/electron-basic-port/e2e-final/desktop-shortcut-sheet.png - agents/runs/electron-basic-port/e2e-final/desktop-cli-missing.png - agents/runs/electron-basic-port/e2e-final/desktop-daemon-lost.png - agents/runs/electron-basic-port/qa/app.log - agents/runs/electron-basic-port/checks-transcript.txt - Changed paths: 51 (see Files changed) </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
agents/prd/sidebar-agent-status/prd.md(follows #150, the web design system reset)Summary
waiting_on_descendants하나이고 enum 값은 늘지 않는다.web/src/agentRow.ts에 있어 Overview가 재사용할 수 있다.Review
Waiting, 팝오버 문구(하위 에이전트 N,목록에서 펼치기), 그룹 머리 숫자를 "루트 + 그 아래 모든 자손"으로 센 것.herdr-core/src/sidebar.rs- snapshot wire 채널과 그룹 파생:agent_group_for에 인자 추가, pet 개수와 정렬, 대표 행이 모두 이 값을 읽는다.herdr-core/src/sidebar.rsagent_second_line- 요청 문장이 Seen/위임 행에도 실리므로 pane header chip, ⌘K 부제, 동결된 Swift 행도 그 문장을 보인다.web/src/sidebar.tsx- Agents 목록이 평평한 그룹 목록에서 기기별 계보 트리로 바뀌었다(high-frequency snapshot path, 기기별 pane id 범위).Evidence
sasu implement verifyPASS on 4d792a1 - cargo test, Swift test(549, 새 decode 테스트 포함), cargo lint.sidebar-status.spec.ts가 격리 Herdr+hided에서 B1-B6 흐름(키보드, Esc 포커스 복귀, 펼치기, Done 전환, 열린 팝오버 중 자식 닫힘)을 통과; 전체 web e2e 59/59(26eb55b).design/tokens.json에--size-agent-children-popover하나를 추가하고gen-tokens/gen-pen/gen-screens로tokens.css와 두.pen파일에 각 4줄이 반영됐다.AI tooling: 대부분 AI 도구. Pen 보드와 앱 캡처를 나란히 두고 모양을, e2e와 단위 테스트 결과를 로그로 대조했다.
Verification record
agents/prd/sidebar-agent-status/prd.md(sha256 a20451d3d3728dc4c365c3b892916419d21df11bf40ec5f6bae2e2887c47c313)agents/runs/sidebar-agent-status/verification-report.jsonandagents/runs/sidebar-agent-status/verification-report.md; source fingerprint 2294db4ec47e07c06f6826e45785d018d0a70d89c797facc691b01bc65068508bash scripts/verify-cargo.sh test(exit 0)bash scripts/verify-swift.sh test(exit 0)bash scripts/verify-cargo.sh lint(exit 0)status_word_visible(done 9151eb6); full e2e result (59/59, registered). Follow-up @4d792a1: no Fix now; notesdocs/status-model.mda11y-order line is imprecise for the sidebar row (pre-existing, deferred).sectionCount, unit + e2e pin). Follow-up @9151eb61: Fix now - branch chip missing from the row's accessible name after hiding row text -> fixed 4d792a1 (unit test). Follow-up @4d792a1: no Fix now.childRows; comment on the Seen arm ofagent_second_line; a runtime test for a waiting root throughrefresh_agent_lineagefold/unfold.