Repository navigation
Sessions 트리를 깊이 제한 없이 펼치고 다른 체크아웃 자식에 branch 표시 - #928
Merged
Merged
Conversation
A device checkout's label is its folder name until its worktree facts arrive, and those bring only the branch, so the badge named a folder where the sidebar names the branch. The badge now takes the branch and falls back to the label.
A Sessions row now opens its children at any depth, five siblings at a time as in the sidebar, with the indent stopping at three levels and the deeper rows hanging from their parent's rail. A child gets the root's second line, led by its branch when it works in another checkout than its parent, and the row standing for the focused pane is selected the way the sidebar selects it.
…row in Screen / Main
yansfil
added a commit
that referenced
this pull request
Oct 10, 2026
## Summary 같은 PR이 화면마다 다르게 보였다: 사이드바 아이콘은 주황, Sessions chip은 회색 `◷`, 카드는 생명주기 색, 보드와 Overview는 따로 그린 checks 표시와 주황 "변경 요청". PR 상태를 core 한 곳(`PrState::of`)에서 정해 체크아웃 PR, 검색 결과, 링크 패널에도 같은 값으로 싣고, web은 한 모듈(`web/src/prMark.ts`)과 한 컴포넌트(`components/pr-mark.tsx`)로 그린다. 모든 PR 표면이 상태 색 PR 아이콘과 `#번호`(여러 개면 `#924 +1`)를 그리고, 텍스트 글리프(◷ ✓ ✕ ⇥)와 화면별 색 표, 분류기, checks/review 문구 복사본, stale 계산 복사본은 지웠다. 색은 failed 빨강, pending 주황, mergeable 초록, draft 회색, merged 보라, closed 흐림으로 한 상태에 한 토큰이고, `--pr-open`은 `--pr-failed`, `--pr-mergeable`로 바뀐다. 운영자가 2026-10-10 승인한 시안 r1(1a-6a)대로이며, 승인 내용은 `docs/status-model.md`(Pull request visual states)와 `docs/UI_BEHAVIOR.md`에 적었다.  사이드바 에이전트 줄은 아이콘만 있던 PR에 번호가 붙는다(3a). 아래 접힌 블록에 Sessions, pane 헤더, Pen 시트가 있다. ## Review - **판단해 주세요**: 사이드바 에이전트 줄에 번호가 붙어 좁은 폭(320)에서 제목이 더 일찍 잘린다(위 이미지의 `P8 읽기 전용 준…`). 승인(3a)대로지만 실제 폭에서 괜찮은지. - **판단해 주세요**: pane 헤더의 Review/Merge 밴드도 같은 상태를 읽는다. Merge는 mergeable, Review는 pending일 때만 서고 밴드 색은 상태 색(failed 빨강, mergeable 초록, pending 회색)이다. 그래서 draft에는 두 밴드가 다 없고, checks가 도는 열린 PR의 밴드는 초록에서 회색이 된다. - **판단해 주세요**: PR 패널 머리의 상태 단어가 생명주기(열림/초안/머지됨/닫힘)에서 mark와 같은 상태 단어(CI 실패, 머지 가능 등)로 바뀌었다. - **조심해서 볼 파일**: `herdr-core/src/model.rs` - snapshot wire: `PullRequestSnapshot`을 손으로 쓴 `Serialize`로 바꿔 `state`를 덧붙인다. 필드 순서와 core 전용 필드 제외가 그대로인지. - **조심해서 볼 파일**: `contracts/snapshot-wire-enums.json` - 새 wire enum `pr_state`(6개). 체크아웃 PR `state`, `GithubSearchResult.pr_state`, 링크 패널 `state`가 더해지고, 읽는 곳이 없어진 `PrSummary.worst_count`, 검색 결과 `is_draft`는 wire에서 빠진다. - **조심해서 볼 파일**: `herdr-core/src/agent_state/sessions.rs` - 에이전트 PR 요약이 이제 draft를 센다(전에는 draft를 몰라 pending). Idle 순서에 draft가 merged 앞에 들어간다. - **질문**: Project Sessions의 세션 PR chip(`#N 만듦`/`#N`, `LinkSessions.tsx`)은 상태가 아니라 만듦/참여를 보라색으로 구분한다. core가 상태를 싣지 않아 이번 범위에서 뺐는데, 같은 mark로 바꿀지. - **조심해서 볼 파일**: `design/hide-ui.lib.pen`, `design/hide-screens.pen` - 스크립트로만 고쳤다(Pen 앱 저장 없음). 라이브러리 구조 diff는 Foundations, Agent tree parts, Agent graph box, PR hover card, Pane header 3개, Checkout row 1개, Overview group header 1개 노드로 한정된다. ## Evidence - **확인한 것**: core 상태 규칙 테스트(여섯 상태, draft가 failing checks보다 앞, changes_requested는 failed, checks 없음/unknown은 pass가 아님, wire에 `state`가 실림)와 wire enum 계약 테스트. - **확인한 것**: web `prMark.test.ts` 9개: 여섯 상태의 토큰과 아이콘, wire enum과 키 일치, review/checks 단어 색, 배지 단어, stale 문구, 에이전트 mark의 worst와 `+N`. - **확인한 것**: origin/main(#925, #926, #928 포함) 위로 rebase한 뒤 `verify-cargo.sh lint`, `verify-cargo.sh test`(46개 바이너리 3925개), `verify-web.sh`(web 1339개, desktop 162개), `check-design-contract.mjs`, workstation identity, attribution, harness, capability-readers, core-touches-no-machine 검사 통과. - **확인한 것**: pane 헤더 밴드 테스트에 passing checks의 draft가 Merge 밴드를 받지 않는 경우를 더했다. - **확인한 것**: rebase한 빌드로 web e2e 12개 spec(checkout-pr, sidebar-pr-start, overview-prs, overview, link-graph, cmdk, disk-cleanup, session-panel, projects-sidebar, sidebar-menus, graph-cross-project, agents-tab) 34개 통과. 격리된 pinned Herdr 0.9.3과 가짜 `gh`로 돌렸다. - **확인한 것**: before/after는 gallery scene(`projects-sidebar`, `session-panel`, `pane-header`)을 branch point와 이 브랜치에서 각각 띄워 같은 viewport로 찍었다. daemon이나 운영자 앱은 쓰지 않았다. - **확인하지 못한 것**: 설치된 앱이나 격리 fixture에서 실제 GitHub PR로 본 live 화면은 없다. 화면 확인은 gallery scene과 e2e의 가짜 `gh` 응답까지다. - **확인하지 못한 것**: Windows lane과 desktop e2e는 로컬에서 돌리지 않았다(CI가 돈다). - **생성물**: `design/hide-screens.pen`(20 MB)은 `gen-screens`가 다시 썼다. 결과는 아래 Pen 시트 이미지. <details><summary>추가 증거</summary> Sessions before(위)/after(아래): 텍스트 글리프와 테두리 chip이 상태 아이콘과 번호로.  pane 헤더 before(위)/after(아래): `#140✓` chip이 아이콘과 번호로.  사이드바 light before/after.  Pen `Component / Agent tree parts`: PR mark master와 여섯 상태, 여러 PR, 흐림, 포인터 아래, 좁은 변형.  Pen `Component / Agent graph box`: 테두리와 checks 표시 없는 PR mark, 변경 요청만 빨간 단어.  Pen `Component / PR hover card`: 배지는 아이콘만 상태 색, 단어와 Open PR은 글자색.  </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.
Summary
오른쪽 Sessions는 root 아래 한 단계만 펼쳐서, 손자부터는 숫자 표시로만 보였고 자식이 어느 체크아웃에서 일하는지도 알 수 없었습니다.
이제 자식이 있는 줄은 깊이와 상관없이 셰브론으로 펼칩니다(처음엔 닫힘, 펼침은 지금처럼 사이드바와 따로 core가 기억).
들여쓰기는 3단계에서 멈추고 그 아래 줄은 3단계 칸에 머물며 부모 셰브론 칸의 레일에서 꺾여 내려옵니다. 형제가 5개를 넘으면 사이드바처럼
N개 더.부모와 다른 체크아웃의 자식은 둘째 줄 맨 앞에 branch를 흐린 mono로 붙이고(
fix/같은 앞부분 제거, 줄 40%에서…), 앞에 있는 Workspace의 포커스된 pane 줄을 사이드바와 같은 칠로 선택합니다.격리 fixture의 같은 트리(main > prd/child > 같은 체크아웃 > fix/deep-fixture > 같은 체크아웃). 오른쪽에서
child·deep-fixture가 다른 체크아웃 자식에만 붙고, 넷째 단계는 셋째 단계 칸에 머뭅니다.Review
herdr-core/src/agent_state/axes.rs- Herdr/core ownership.branch_badge가 체크아웃 label 대신 branch(없으면 label)를 담습니다. device 체크아웃은 label이 폴더 이름이라 이전엔 폴더명이 나왔습니다. 사이드바 tree popover의 branch도 같이 바뀝니다.web/src/components/agent-tree.tsx- 사이드바와 popover가 공유하는 레일/셰브론.chain이 없으면 이전과 같은 DOM입니다.sessions_expanded_agent_pane_ids).Evidence
session-tree.spec.ts(격리 Herdr + hided): 4번 펼침으로 depth 1~4, 넷째 단계가 셋째와 같은 레일 칸 수, branch 표시 규칙과 tooltip, 줄 겹침/넘침 측정, 포커스 줄 선택과 접힌 조상으로 선택 이동.verify-web.sh통과(web 1338, desktop 162),verify-cargo.sh lint,verify-cargo.sh test전체 통과, policy 스크립트와check-design-contract.mjs,scripts/tests319개 통과.a_cross_checkout_badge_names_the_branch_the_sidebar_shows는 label을 쓰던 이전 코드에서 실패함을 확인.verify-cargo.sh test에서hided connect_build::the_first_connect_moves_the_legacy_state_folder_and_its_daemon_once가 한 번 실패(e2e와 동시 실행), 단독·재실행 통과. 이 변경과 무관한 flaky로 with-hide/hide-private#292 등록.design-review.mjs대상이 없어 자동 비교는 하지 않았고, 시안과 실제 캡처를 사람이 비교했습니다.design/hide-screens.pen은scripts/gen-screens.mjs결과.Screen / Main의 Sessions 패널(sfu-panel-*) 노드만 바뀜을 JSON 비교로 확인.추가 증거
다크 전/후:
승인된 Pen 시안 r2(A/B 비교, 260 폭, 선택 상태, 줄 상태). 운영자는 B와 I1을 골랐습니다:
Screen / Main에 반영한 Sessions 패널(Pen):