Repository navigation
feat: copy and drop an agent's reference to address it from another pane - #1673
Merged
Merged
Conversation
yansfil
added a commit
that referenced
this pull request
Oct 26, 2026
…aces for its controls (#1690) Related: #1673 (the agent reference and its drag, which `@` reuses) ## Summary To speak to another agent from a pane, the operator had to copy its reference from that agent's menu or drag its sidebar row. An agent pane's header now has `@`: it lists the other agents on the same device, and choosing one types that agent's reference into this pane's prompt with no Enter. The header's first row is also arranged by role. State sits on the left: grip, parent path, status, logo, title, then PR, plan, views, Answer and letters. Actions sit on the right: `@`, zoom, ⋯ and ✕. Controls that show only on hover (the move grip and zoom) keep their space, so nothing in the row moves. The header's own `개요에서 보기` button is removed. The same item stays first in the pane menu (⋯ and right-click).  ## Review - **판단해 주세요**: 헤더의 `개요에서 보기` 버튼은 #1540에서 운영자가 요청해 넣은 것입니다. 이 PR은 그 버튼을 ⋯ 메뉴 첫 항목으로 되돌립니다(운영자가 승인한 새 헤더 안). - **판단해 주세요**: 편지 pill은 둘째 줄로 내리지 않고 1줄 왼쪽 상태 자리에 남겼습니다. 줄 사이를 오가는 칩이 없게 하려는 것입니다. - **판단해 주세요**: 손잡이와 확대는 키보드를 가진 pane에는 늘 보이고, 다른 pane에서는 올렸을 때만 보입니다. 이 기준이 맞는지 봐 주세요. - **조심해서 볼 파일**: `web/src/PaneView.tsx`: 헤더는 자주 그려지는 경로입니다. `@`는 열려 있을 때만 store의 `rest`를 읽습니다. - **조심해서 볼 파일**: `web/src/paneMove.ts`: 이동을 시작하는 자리에 손잡이를 더했습니다. ## Evidence - **확인한 것**: e2e `agent-reference-drop.spec.ts` 새 테스트. 실제 Herdr의 fake agent 두 개로 `@`를 열면 상대 에이전트만 보이고, 입력으로 좁혀 Enter로 고르면 이 pane PTY 입력 로그에 `@이름 (pane id · 일) ` 바이트가 줄바꿈 없이 들어갑니다. 상대 PTY에는 아무것도 들어가지 않고, 키보드는 이 pane 터미널로 돌아옵니다. - **확인한 것**: 같은 테스트가 `@`를 다시 누르면 목록이 닫히고, Escape를 누르면 `@`로 키보드가 돌아오는 것을 확인합니다. 손잡이·확대가 키보드를 가진 pane에선 보이고, 옆 pane에선 숨었다가 올리면 보이며, 이때 제목과 `@` 자리가 그대로인 것도 확인합니다. - **확인한 것**: 결함 두 가지를 심어 테스트가 실패하는지 봤습니다. 후보에 자기 자신을 넣으면 `toHaveCount(0)`에서, 손잡이를 늘 보이게 하면 `opacity 0`에서 실패했습니다. - **확인한 것**: `overview-map.spec.ts`는 이제 ⋯ 메뉴 첫 항목으로 개요를 엽니다(B4-B7, B12 통과). pane-move, s2, session-record-restore, overview-device, sidebar-status도 로컬에서 통과했습니다. - **확인한 것**: web lint(e2e 크기 검사 포함), typecheck, vitest 250 files / 2157 tests, `check-design-contract.mjs` 통과. `mentionCandidates`와 손잡이 이동 시작은 unit 테스트로 확인했습니다. - **확인하지 못한 것**: `practice.spec.ts`의 두 테스트(`find:pr:9`)가 이 Mac에서 실패합니다. 같은 실패가 이 변경 없는 main(65a7eab)에서도 나고, 그 커밋의 main CI는 초록입니다. 판정은 PR CI에 맡깁니다. - **확인하지 못한 것**: 설치된 데스크톱 앱에서의 확인(`/Applications/hide.app`은 교체하지 않았습니다). <details><summary>Verification record</summary> - base: origin/main 65a7eab, head 567a7c8 - 독립 리뷰(네이티브 서브에이전트) Fix now 6건 반영: `@`를 다시 눌러도 닫히지 않던 것(PopoverAnchor → PopoverTrigger), Escape 뒤 키보드가 사라지던 것, 손잡이·확대 표시 e2e 추가, 낡은 주석, 닫힌 `@`가 agents를 구독하던 것, 문서의 focus·hover 없는 화면 규칙 - Follow-up(이 PR 밖): `@` 컴포넌트 단위 케이스(셸 pane·기기 pane·빈 목록), 검색값에서 pane id 노이즈 분리, 헤더 팝오버 안 우클릭이 pane 메뉴를 여는 기존 동작 </details>
yansfil
added a commit
that referenced
this pull request
Oct 26, 2026
…cklist and mission banner (#1692) Related: #1690 (pane header `@`, 개요에서 보기 moved to the menu), #1673 (agent reference drag), #1641 (`--beside`), #1679 (plan checklist), #1683 (mission decision banner) ## Summary - 최근 머지로 화면이 바뀌어 연습 3·4·7·8편이 없는 버튼과 옛 이름을 가르치고 있었습니다. - 3편: 개요는 ⋯ 메뉴(우클릭) 첫 항목 `개요에서 보기`로 열고, 리드가 선택된 채로 열립니다. - 4편 C: pane 머리줄의 `@`로 상대를 고르고 할 일을 덧붙여 보냅니다. 사이드바 행 끌어 놓기와 이름·ID 복사는 "이렇게도 된다"로 한 줄. A에 "옆에 띄워 줘"(오른쪽 절반) 한 줄. - 7편: "계획 지도"를 실제 화면 이름(계획 단계, 계획)으로 고쳤습니다. - 8편: 큰 지도를 연 뒤 배너의 (추천) 선택지를 눌러 답합니다. 대화로 답해도 된다는 것과 흐름 표 소개는 한 줄씩.  ## Review - **판단해 주세요**: 8편 순서를 `칩 → 크게 → 배너에서 답 → 지도`로 바꿨습니다. 배너가 큰 지도에만 있어서입니다(미니 팝오버는 `대화로`만 있음). - **판단해 주세요**: 4편은 `@`(새 단계 `mention`)와 `할 일 말하기`(`send`) 두 단계로 나눴습니다. "옆에 띄워 줘"는 새 단계 없이 A의 child 설명 한 줄로만 넣었습니다. - **조심해서 볼 파일**: `web/src/practice/PracticeCoach.tsx` - 새 gesture `pick`(컨트롤을 누르고 목록에서 고르기). 목록이 이미 열려 있으면 다시 누르지 않습니다(닫히지 않도록). - **조심해서 볼 파일**: `web/src/practice/worlds/delegate.ts` - `prompt`는 참조(`@이름 (pane id · 일)`)만 있으면 빈 것으로 읽어, ⏎가 예시(참조+할 일)를 대신 입력합니다. 학습자가 덧붙인 말이 있으면 그대로 보냅니다. - **조심해서 볼 파일**: `web/src/practice/worlds/mission.ts` - 배너의 `mission_answer`를 core 대신 받아 단계를 넘깁니다. 다른 key, 없는 선택지, 빈 글, 질문이 없을 때는 거절합니다. - **판단해 주세요**: 단계가 바뀐 3·4·8편은 `version`을 2로 올려 예전 진행이 `바뀜`으로 보입니다. 7편은 문구만 바뀌어 그대로 뒀습니다. ## Evidence - **확인한 것**: 갤러리(`gallery?scene=practice&chapter=3|4|7|8`, ko, 1280x800)에서 ⏎만으로 각 단계까지 진행해 캡처. 3편 개요는 리드가 선택된 패널로 열림. - **확인한 것**: `practice.spec.ts`(격리된 Herdr·hided): 전 챕터 ⏎ 진행, 모든 단계에서 다시 시작, 4편은 메뉴 복사→붙여넣기 손 경로로 `mention`·`send` 통과. `overview-map`, `agent-reference-drop`도 실행. 9 passed. - **확인한 것**: 새 unit `worlds/delegate.test.ts`, `worlds/mission.test.ts`. 참조 제거와 key 검사를 심어 각각 실패하는 것을 확인. web typecheck, lint, vitest 전체(252 files), `check-design-contract.mjs` 통과. - **확인하지 못한 것**: 실제 앱(설치본) 연습 창에서의 손 조작, 사이드바 행 드래그를 연습 안에서 직접 끌어 놓는 경로(같은 `typeReference` 입력이라 world는 같지만 e2e로 끌지는 않음). <details><summary>추가 증거</summary>   </details> <details><summary>Verification record</summary> - head: 3dac018 (base main 23f2189) - `verify-web.sh web e2e e2e/practice.spec.ts e2e/overview-map.spec.ts e2e/agent-reference-drop.spec.ts`: 9 passed (2.4m), macOS - `verify-web.sh web typecheck|lint|test`: pass (252 files, 2164 tests) - `node scripts/check-design-contract.mjs`: pass </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
다른 pane의 에이전트에게 말을 걸게 하려면 우클릭 → 정보 복사 → 터미널 ID 복사 → 붙여넣기 네 단계를 거쳐야 했고, 붙은 ID만 봐서는 누구인지 알 수 없었습니다.
이제 우클릭 메뉴의 이름·ID 복사 한 항목이
@reviewer (pane w9J:p52 · 가입 페이지 문구 수정)을 복사합니다.사이드바의 에이전트 행(과 PR 행의 에이전트 아이콘)을 다른 터미널에 끌어 놓으면 같은 문구와 공백이 입력창에 붙고(Enter 없음), 할 말만 이어 쓰면 됩니다.
pane 헤더를 끌어 위치를 바꾸는 동안에는 pane 이름 칩이 포인터를 따라가고, 지나가는 자리의 "내 요청" 카드·계획 칩·힌트가 열리지 않습니다.
에이전트 행 메뉴:
정보 복사 ›하위 메뉴가 사라지고이름·ID 복사,세션 ID 복사가 한 단계에 있습니다.Review
@<이름> (pane <id> · <하는 일>). 이름은 Herdr 이름, 없으면 에이전트 종류(@claude)입니다.web/src/PaneMoveControls.tsx- 고빈도 경로(pointermove). 칩은 ref의style.transform만 바꾸고 React 렌더를 일으키지 않습니다.web/src/agentReference.ts- 끌기 정리 경로. 끌던 행이 재정렬로 사라져dragend가 오지 않으면, 끌기 뒤 첫 마우스 이벤트가 끌기를 끝냅니다.web/src/components/ui/tooltip.tsx,PaneTurnCard.tsx,PanePlanChip.tsx- 셸 끌기 중에는 hover로 열리지 않습니다.Evidence
agent-reference-drop.spec.ts- 실제 포인터로 행을 끌어 놓으면 대상 에이전트 PTY 입력 로그에 복사 문구+공백이 그대로 들어가고 줄바꿈이 없습니다. 놓은 pane에 포커스가 가고, 끌기 표시가 풀립니다.@two (pane w1:p2 · Agent two)가 들어가 실패하는 것을 확인했습니다.pane-move.spec.ts4건(칩이 끌기 중 보이고 Escape 뒤 사라짐 포함),sidebar-menus.spec.ts9건,s6.spec.ts,s2.spec.ts로컬 통과. 격리된 pinned Herdr와 hided를 썼습니다.scripts/verify-web.sh통과(web 2129, desktop 260),check-design-contract.mjs통과,agentReference.test.ts8건(줄바꿈 제거, 기기 pane id, 길이 자르기, 기기 간 거부).추가 증거
pane 메뉴(⋯)도
이름·ID 복사한 항목입니다.pane 헤더를 탭 위로 끄는 중: 포인터 아래
Claude칩이 끌고 있는 pane의 헤더 이름입니다.Verification record
4881c71ef, headef3d2c9f7s2.spec.ts의 옛 메뉴 이름, 행이 사라진 끌기의 정리, 연습 4장 문구. 함께 반영한 Follow-up: 코드 포인트 단위 자르기.