Repository navigation
feat: give the pane header an @ to talk to another agent and fixed places for its controls - #1690
Merged
Merged
Conversation
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>
yansfil
added a commit
that referenced
this pull request
Oct 26, 2026
Related: #1690 (pane header @ and the fixed places for its controls) ## Summary The `@` in an agent pane's header was always drawn, but zoom beside it showed only on hover, so a pane you weren't using had an empty hole between `@` and `⋯`. Now `@` follows the same rule as the grip and zoom: it shows on the pane that holds the keyboard, and on any other pane while you point at or focus its header. A hidden `@` and zoom keep their places, so both blanks sit together left of `⋯` and nothing in the row moves when they appear. An `@` whose list is open stays drawn.  ## Review - **판단해 주세요**: 키보드가 없는 pane에서는 `@`가 마우스를 올려야 보입니다. 다른 에이전트를 부를 때 한 번 더 올려야 한다는 뜻입니다. - **조심해서 볼 파일**: `web/src/PaneMention.tsx` - 목록이 열려 있는 동안에는 숨김 class를 빼서 `@`를 계속 그립니다. 포커스가 portal로 넘어가면 pane이 키보드를 잃기 때문입니다. ## Evidence - **확인한 것**: `agent-reference-drop.spec.ts` e2e(private Herdr + hided)를 Chromium에서 돌렸습니다. 다른 pane의 `@`는 평소 opacity 0, header를 가리키면 1이고 위치는 그대로입니다. 키보드 포커스가 오면 1, 목록을 연 채 포인터가 목록으로 가도 1입니다. 수정 전에는 마지막 경우에 0이었고, 이 e2e가 그걸 잡았습니다. - **확인한 것**: web typecheck, lint, unit 2164 passed, `check-design-contract.mjs` 통과. - **확인하지 못한 것**: 설치 앱에서의 실제 확인은 하지 않았습니다. practice 4장 `mention` 단계는 lead pane이 키보드를 잃으면 빈 자리를 가리킬 수 있습니다. 코드만 읽어 본 판단이고 실행해 보지 않았습니다. 4장 `screen`의 zoom 단계에도 이미 같은 약점이 있습니다. <details><summary>추가 증거</summary> Right pane hovered: @ ⤢ ⋯ ✕ appear in place  Light, at rest and hovered   </details> <details><summary>Verification record</summary> - base: origin/main 98d0e14, head: `git rev-parse HEAD` of fix/pane-header-at-hover - Review subagent Fix now: the docs said grip and zoom also stay drawn while the `@` list is open; fixed to say only `@` does. - Follow-up: practice `mention` step may point at a hidden `@` if the lead loses the keyboard. </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: #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은 그 버튼을 ⋯ 메뉴 첫 항목으로 되돌립니다(운영자가 승인한 새 헤더 안).web/src/PaneView.tsx: 헤더는 자주 그려지는 경로입니다.@는 열려 있을 때만 store의rest를 읽습니다.web/src/paneMove.ts: 이동을 시작하는 자리에 손잡이를 더했습니다.Evidence
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도 로컬에서 통과했습니다.check-design-contract.mjs통과.mentionCandidates와 손잡이 이동 시작은 unit 테스트로 확인했습니다.practice.spec.ts의 두 테스트(find:pr:9)가 이 Mac에서 실패합니다. 같은 실패가 이 변경 없는 main(65a7eab)에서도 나고, 그 커밋의 main CI는 초록입니다. 판정은 PR CI에 맡깁니다./Applications/hide.app은 교체하지 않았습니다).Verification record
@를 다시 눌러도 닫히지 않던 것(PopoverAnchor → PopoverTrigger), Escape 뒤 키보드가 사라지던 것, 손잡이·확대 표시 e2e 추가, 낡은 주석, 닫힌@가 agents를 구독하던 것, 문서의 focus·hover 없는 화면 규칙@컴포넌트 단위 케이스(셸 pane·기기 pane·빈 목록), 검색값에서 pane id 노이즈 분리, 헤더 팝오버 안 우클릭이 pane 메뉴를 여는 기존 동작