Skip to content

Overview lenses: tile header, checkout lanes, issue-only Issues with a panel, and a PRs tab - #238

Merged
yansfil merged 61 commits into
mainfrom
feat/overview-lenses
Sep 28, 2026
Merged

yansfil merged 61 commits into
mainfrom
feat/overview-lenses

Conversation

@yansfil

@yansfil yansfil commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Related: #218 (이 PR에 포함, 머지되면 #218도 머지로 표시됨), agents/prd/overview-lenses-tiles-agents/prd.md, agents/prd/overview-lenses-issues/prd.md, agents/prd/overview-lenses-prs/prd.md

Summary

Overview를 네 객체(이슈 · 체크아웃 · 에이전트 · PR)를 보는 렌즈로 다시 짰습니다.
#218(이슈 중심 Tasks 보드, Local/GitHub 이슈 출처, 이슈에서 시작) 위에 승인된 PRD 세 개를 순서대로 얹은 통합 브랜치입니다.

  • 탭 줄 자리에 타일 Agents · Issues · PRs · Sessions, 첫 화면은 Agents › 체크아웃 레인(main 맨 위, 내 차례 레인 다음), 두 번째 모드는 계보, Inbox 제거
  • Issues는 이슈만 카드 머리로 두고, 카드를 누르면 오른쪽 이슈 패널(본문 · 라벨 · 작성자 · 댓글을 열 때 한 번 읽음), 필터, 이슈 없는 작업은 접힌 줄 하나
  • PRs 탭은 차례별 묶음(내 차례 · 에이전트가 고치는 중 · CI 실패 · 최근 머지), 맡기기(실패한 체크와 변경 요청을 첫 지시로 에이전트 시작), 이슈 잇기(GitHub 이슈면 확인 한 번 뒤 PR 본문에 Closes #N)
  • 에이전트 시작을 새 pane의 셸이 터미널을 잡은 뒤로 미뤄, 이슈 시작 · 맡기기가 가끔 에이전트 없이 끝나던 경합을 고쳤습니다
  • 사이드바 "↰ …에서" 화살표와 장치 칩 아이콘이 정의되지 않은 크기 토큰 때문에 24px로 그려지던 것을 12px로 고쳤습니다

첫 화면 Agents › 체크아웃: 타일 머리, main 맨 위, 질문 중인 에이전트(노란 테두리) 레인이 다음, 위임선
첫 화면: 탭 줄 자리의 타일, main이 맨 위이고 내 차례(노란 테두리) 레인이 그다음, 부모에서 자식으로 내려가는 위임선.

Review

  • 판단해 주세요: 첫 화면을 Agents › 체크아웃 레인으로 바꾸고 Inbox를 없앤 결과가 "내 차례"를 충분히 드러내는지(노란 노드 · 레인 순서 · 타일 배지)
  • 판단해 주세요: 모든 프로젝트 Overview에서 각 프로젝트의 main 레인을 무조건 위에 고정하지 않고 에이전트 상태로 정렬합니다(같으면 main 먼저)
  • 판단해 주세요: 새 타일 · 레인 · 이슈 패널 · PR 줄은 라이브러리 Component / 시트 없이 Screen / Project Overview에 로컬 토큰으로 그렸습니다
  • 판단해 주세요: '정리'는 main의 Delete worktree 대화상자를 그대로 열어 영어 문구입니다
  • 조심해서 볼 파일: herdr-core/src/worktree_control.rs - failure path, Herdr contract: 에이전트 시작 전 pane 셸 준비를 기다리는 규칙
  • 조심해서 볼 파일: herdr-core/src/runtime/pull_requests.rs, herdr-core/src/github.rs - runtime mutex, 바깥 쓰기: gh 이슈 생성과 PR 본문 쓰기는 worker에서, 다시 써도 한 번
  • 조심해서 볼 파일: herdr-core/src/sidebar.rs, web/src/snapshot.ts - snapshot wire: 에이전트 마지막 말 message, issue_work, pr_work, 프로젝트별 PR 목록
  • 조심해서 볼 파일: web/src/overviewLens.ts - 타일 · 레인 · 계보를 매 snapshot에서 계산하는 순수 함수(메모이즈)

Evidence

  • 확인한 것: 최종 트리에서 verify-cargo.sh lint, verify-web.sh(vitest 484 + 44), check-design-contract.mjs 통과
  • 확인한 것: 슬라이스마다 격리된 Herdr와 hided로 web e2e 전체(83개 안팎)와 cargo test 전체(1386개 안팎) 통과, 실패는 고친 뒤 재실행
  • 확인한 것: 시작 경합은 e2e가 Herdr agent list로 새 pane에 claude가 실제로 떴는지 확인. 수정 전 PR 맡기기 spec 2/2 실패, 수정 후 4/4 통과
  • 확인한 것: hided는 자기 PATH에 없는 에이전트는 시작을 거부하므로, e2e fixture가 기본으로 claude shim을 hided PATH 맨 앞에 두고 자기 PATH를 넘기는 spec은 shim을 직접 넣습니다. claude가 없는 CI 러너에서 이슈 시작 · 맡기기 e2e 2개가 실패하던 것을 로컬에서 claude를 PATH에서 뺀 채 재현했고, 같은 조건에서 main을 머지한 최종 트리의 web e2e 전체 88개 통과(weekly-usage가 자기 가짜 claude를 쓰는 걸 가리던 첫 수정의 회귀도 여기서 잡아 고침)
  • 확인한 것: 전체 e2e에서 PR 맡기기 대화상자가 '시작하는 중'에 60초 멈춘 것을 한 번 잡았습니다. 새 워크트리가 에이전트 시작 전에 체크아웃 목록에 들어오면 대화상자가 기다릴 작업 종류를 바꿔버리던 경합이라, 시작을 누른 순간의 선택을 고정하도록 고쳤습니다(web/src/PrDialogs.tsx)
  • 확인한 것: 이슈 잇기 · 새 이슈 만들기의 GitHub 쓰기는 모든 쓰기를 기록하는 가짜 gh로 e2e 검증
  • 확인한 것: 사이드바 화살표 폭을 e2e로 측정(수정 전 24px, 수정 후 12px), 선언되지 않은 CSS 변수를 잡는 unit 테스트 추가
  • 확인하지 못한 것: 실제 GitHub 저장소로의 이슈 생성과 PR 본문 쓰기, Electron desktop e2e(로컬에서 안 돌림, CI가 돎), 설치된 앱
  • 확인하지 못한 것: 워크트리 20개 규모와 좁은 창 폭, 일부 hover · ⚠ 상태와 Local 이슈 잇기는 unit 테스트만
  • 게이트 변경: scripts/check-no-workstation-identity.sh가 git grep --text로 읽습니다. -diff로 접은 hide-screens.pen을 git grep이 "Binary file matches"로만 알려, 허용된 /Users/example(main의 Mobile 화면)을 걸러내지 못하고 실패했기 때문입니다
  • 게이트 변경: desktop e2e는 @needs-focus 테스트를 나머지 뒤에 돌립니다(desktop/playwright.config.ts project 분리). main의 포커스 가드(Run desktop e2e without taking the operator's screen focus #246) 뒤로 CI 러너에서는 첫 focus 테스트가 앱을 앞으로 가져왔다 끝낸 뒤 다른 앱이 없어 macOS가 다음에 뜨는 앱마다 활성화했고, 그 뒤 background 테스트 11개가 모두 실패했습니다(#240도 같은 11개). 로컬에서는 운영자 화면을 건드리지 않으려고 desktop e2e를 돌리지 않았고 --list로 순서만 확인, CI가 검증합니다
  • 생성물: design/hide-screens.pen은 scripts/pen-screens.mjs가 만든 파일이라 .gitattributes로 diff를 접었습니다(git diff --text로 볼 수 있음)
추가 증거

Issues 이슈만 보드와 오른쪽 이슈 패널
Issues: 카드 머리는 항상 이슈, 이슈 없는 워크트리 · PR은 접힌 줄, 카드를 누르면 오른쪽 패널(라벨 · 작성자 · 이 이슈로 한 일 · 본문 · 댓글).

PRs 탭 차례별 묶음
PRs: 내 차례 · 에이전트가 고치는 중 · CI 실패 · 맡은 에이전트 없음 · 최근 머지(접힘), 이슈 칸은 제목 바로 뒤.

PR 맡기기
맡기기: 실패한 체크와 변경 요청을 첫 지시로 PR 브랜치에서 에이전트 시작.

이슈 잇기 확인
이슈 잇기: GitHub PR 본문에 Closes #N을 쓰기 전 확인 한 번.

계보 모드
계보: Observer에서 Implementor, 하위 에이전트로 왼쪽에서 오른쪽.

다크 테마 체크아웃 레인
다크 테마.

사이드바 화살표 12px
사이드바 "↰ …에서" 화살표가 글자 크기(12px)로.

AI tooling: 대부분 AI 도구. 사람은 Pen 보드에서 결정과 PRD를 정하고 승인했으며, 코드 diff를 손으로 대조한 것은 아직 없습니다.

…nd started from Hide

The core now projects a project's tasks from the source it reads: GitHub
through gh, or Local issues kept in hided's state directory. Without a
choice a repository gh cannot see on GitHub reads Local, so no project is
left without a source. Settings choose a source per project and how work
starts from an issue.

New events create an issue (gh issue create or the Local store), read an
issue's body, ask the background AI for a worktree name, and close or
reopen a Local issue. create_worktree links the new worktree to its task
and hands the started agent its first prompt through agent.prompt.
…h new issue, start and link dialogs and Settings > Issues
… Issues tab with an issue panel, and a PRs tab

Three delivery slices on main after PR #218 merges, sharing one decision register:
overview-lenses-tiles-agents replaces the tab row with lens tiles, makes Agents a
checkout-lane and lineage view, removes the inbox, and lands on Agents > checkout.
overview-lenses-issues keeps issues as the only card head, opens a right-hand issue
panel, and fixes the card rest/hover/dwell/click rules.
overview-lenses-prs adds the PRs tab grouped by whose turn it is, delegates a
failing PR to an agent, and links an issue-less PR by writing Closes #N.
Brings in Agent tab groups (#217), the sidebar shell (#219), the
sidebar row menus (#220) and the project row fold (#221) alongside the
issue-first Overview.

- The every-project screen keeps main's title, Overview (sidebar-shell
  D-02), on the issue-first board; its docs and Screen / Main follow.
- actions.ts keeps main's row-menu and project-fold actions and the
  issue-linked createWorktree; WorkspaceDialogs keeps the issue dialogs
  and main's Remove project `listed` flag; keyboard.ts keeps the renamed
  recent entries and main's agentListOrder.
- design/hide-screens.pen is rewritten from the merged
  scripts/pen-screens.mjs with scripts/gen-screens.mjs rather than
  merged by hand.
…w does

Main titled the every-project screen Overview and gave its sidebar row
the house glyph and the project count (sidebar-shell D-02), so its
Recent Panels row now reads Overview over the project count with the
house mark instead of All projects over Overview with the grid mark.
Main's primary-close contract spec opens a project whose one linked
worktree has no agent, so the issue-first board shows only its fold
line at the foot of 진행 중 and neither a card nor the empty state.
The e2e helper now settles on that fold line too and goes in through
the sidebar.
Brings in browser page zoom (#225), which touches only the desktop host
and its docs.
SidebarAgentSnapshot.message holds the expected_reply and progress tokens
whole, request first, one per line, beside the row's one cut sentence, so
the Overview can show everything the agent last said. Absent from the wire
when the agent reported neither.
Pure rules for the Agents, Issues and Sessions tiles, the checkout lanes
(order, node columns, folds, delegation lines) and the lineage board, plus
the lens sizing tokens.
…t lanes

Every Overview entry opens Agents with the front checkout's lane selected;
the lens lives on the screen so ^Tab restores it. The Agents view on both
scopes draws checkout lanes or the lineage board, and the facts line keeps
worktrees, disk, behind and merged with a cleanup action.
A line down to a later lane keeps its column free in the lanes it crosses;
on All projects each project's main is ranked by its agents; the selected
lane's outline draws over the sticky heads; an Overview entry keeps the
page's Issues mode. The Overview e2e now walks the tiles, lanes, lineage,
message popover, keyboard and Recent Panels restore.
…heet

Screen / Project Overview now opens on Agents › 체크아웃 with the tiles in
the tab row's place, then the lineage mode, the Issues board and its
Dependencies mode; the Agents inbox frame is gone. The facts line keeps
storage facts with the mode control at its right end, and the library
carries the lens sizing tokens.
UI_BEHAVIOR's Project Home covers the tiles, the first screen, both Agents
modes and the removed inbox; status-model the message field and the
buckets; ARCHITECTURE the lens on the screen and the Overview's session
read; DESIGN_WORKFLOW the new frames; PERFORMANCE_TESTING the cost.
…reachable device on the Agents tile

Lanes and lineages take the page's agents instead of rebuilding them, rank
and activity come from one helper each, the lineage board carries its own
delegations, and both pages build their lens handlers from one function.
Unused fields and props the inbox left behind are gone. The Agents tile
shows its warning mark with the device's reason while the device cannot
answer.
… and edit a Local issue in place

issue_detail_request now asks gh issue view for body, labels, author,
assignees, comments and createdAt on its worker and answers in
issue_work.detail with the latest three comments; a Local issue's read adds
its creation time from the store. local_issue_update rewrites a Local
issue's title and body under the lock, saves off it, and answers in
issue_work.update by the web's request id. GitHub gets no write.
# Conflicts:
#	docs/DESIGN_WORKFLOW.md
#	docs/UI_BEHAVIOR.md
#	web/src/MainScreen.tsx
…ct's pull requests on the wire

A project's shown pull requests (open ones, and merged ones with a worktree
here or merged within 14 days) ride on its catalog row for the Overview's
PRs tab. pr_link_issue links an issue in Hide and writes Closes #N into the
pull request's body once, on a worker; a new issue is made first and kept
when the body write fails. A Local issue is linked in Hide only.
pr_feedback_read reads failed checks and standing change requests for an
agent's first prompt, and pr_delegate starts the agent in the checkout of
the branch or in a new worktree of that existing branch, fetched from
origin when only origin has it. gh gains pr edit --body and two pr view
field lists and nothing else.
…small icon size

Both named --size-icon-xs, which no stylesheet declares, so the class was
invalid at computed time and lucide's 24px width won. A unit test now fails on
any CSS variable the shell reads that nothing declares or sets inline, and the
delegated-checkout e2e measures the arrow.
…ll's link icon to the cell

The PR link's new Local issue and the New issue dialog now make the issue
through one runtime helper; a device request for an existing branch is
refused instead of falling back to a new branch; the PR card's header and
Review/Checks rows are built once; the PRs row takes its glyph from the
checkout icon map; the loose PR line carries only what it reads; unused
exports and the fold line's dead open state are gone; the empty issue cell
turns into the link icon under the pointer on the cell itself.
The pinned Herdr's agent.start refuses with agent_pane_busy unless the
pane's foreground process group is the shell's own and holds nothing else,
and neither waits for that nor announces it. A new worktree's pane is still
running its shell's startup files when the task starts its agent, so an
issue's Start and a pull request's delegate intermittently left the pane
without an agent. Every agent.start (task, fork, restored tab, wake) now
reads pane.process_info on its worker until the shell holds the terminal,
capped at 30 s, and a busy refusal after a good read waits again since
nothing was typed. Task agents are named after their pane, because Herdr
refuses a second agent under the same hide-<provider> name. The issue Start
and delegate e2e now check that Herdr lists the agent in the new worktree.
# Conflicts:
#	herdr-core/src/runtime/tests.rs
#	web/src/snapshot.ts
A local bare clone hard-links or copies each object file, and on a CI runner
two tests failed there with "failed to copy file ... No such file or
directory" before the code under test ran. --no-local sends the objects as a
pack instead.
yansfil added a commit that referenced this pull request Sep 28, 2026
…one test fixtures (#245)

Related: 2a8e6d1 is on `feat/overview-lenses` (#238); the maintenance
guard was found while working on #242. This lands both on `main`.

## Summary

- The clone test fixtures (`hide-host/tests/clone.rs`,
`herdr-core/src/runtime/tests/repository_clone.rs`) commit, then run a
local `git clone --bare`.
- `git commit` starts a detached `git maintenance run --auto`, which can
pack and prune loose objects while the clone is still copying them.
- On macOS CI runners this fails a random clone test with "failed to
copy file ... No such file or directory" in the fixture, before the code
under test runs.
- Tonight it failed the `rust workspace` lane of #242 (twice), #243 and
#244, always at `clone.rs:24`.
- The fixtures' `git` calls now turn off auto maintenance and auto gc,
and the bare origin is cloned with `--no-local` (a pack through Git's
transport, no file copy). Test-only.

## Review

- **Please decide**: whether landing this on `main` before #238 is fine;
2a8e6d1 is identical to the commit on `feat/overview-lenses`, so #238
merges over it cleanly.
- **Files to watch**: `herdr-core/src/runtime/tests/repository_clone.rs`
- preventive: the same fixture shape, not observed failing.

## Evidence

- **Confirmed**: `cargo test -p hide-host --test clone` passes 5/5
locally; the hide-host race reproduced locally under forced background
gc before the maintenance guard and not after (measured while working on
#242).
- **Not confirmed**: the flake rate on CI after the change beyond this
PR's own runs; the herdr-core fixture never reproduced.

**AI tooling**: mostly AI tools; the diff is three cherry-picked
commits, compared by hand.
@yansfil
yansfil merged commit ff9235b into main Sep 28, 2026
7 checks passed
@yansfil
yansfil deleted the feat/overview-lenses branch September 28, 2026 15:36
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