Skip to content

에이전트 내부 서브에이전트 수를 화면에 그리지 않고 Settings 기능 표시에서 뺌 - #931

Merged
yansfil merged 3 commits into
mainfrom
design/subagent-badge-810
Oct 10, 2026
Merged

yansfil merged 3 commits into
mainfrom
design/subagent-badge-810

Conversation

@yansfil

@yansfil yansfil commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Closes #810

Summary

운영자가 후보 D(그리지 않음)를 골랐습니다.
이유: 화면의 "자식"이 두 종류입니다. Hide가 띄운 자식 에이전트(pane이 있고 트리에 보이며 행의 ● N)와 에이전트 내부 서브에이전트(pane이 없고 운영자가 손댈 수 없음). 둘을 나란히 그리면 헷갈리고, 내부 서브에이전트 수로 운영자가 할 일이 없습니다(design 원칙 13).

  • 화면 어디에도 에이전트 내부 서브에이전트 수를 그리지 않습니다. 행과 pane 머리의 자식 표시는 Hide가 띄운 에이전트만 뜻합니다.
  • Settings > Agents의 Basic 팝오버에서 "서브에이전트 수" 줄을 뺐습니다(12줄에서 11줄, 4개 언어 문구 삭제). 이 줄은 스위치가 아닌 표시였고, 훅 설치나 Basic 칩 판정은 이 줄과 무관해서 사용자가 못 하게 되는 일은 없습니다.
  • 그 줄의 유일한 소비자가 사라져서 지원표의 Feature::Subagents와 wire enum kit_feature의 subagents도 같은 PR에서 지웠습니다(엔지니어링 원칙 1).
  • 수 자체는 그대로 hook이 세어 core snapshot(PaneChildren.subagents)과 펫 배지까지 옵니다. adapter의 subagent_counts 선언과 수 데이터 경로는 Feature가 아니라 이 선언을 직접 읽어 그대로 둡니다.
  • 문서: UI_BEHAVIOR.md의 Subagent count를 이 규칙으로 바꿨습니다. status-model.md가 pane 머리, 사이드바 행, Overview 줄에 있다고 적은 "uninstrumented mark"는 web이 그린 적이 없어서 사실대로 고쳤습니다.

화면 변화는 Basic 팝오버의 줄 하나가 없어지는 것뿐이라 before/after 이미지는 Evidence의 접힌 블록에 두었습니다.

Review

  • 판단해 주세요: docs/UI_BEHAVIOR.md Subagent count - 규칙의 문장이 운영자 결정과 맞는지.
  • 조심해서 볼 파일: contracts/snapshot-wire-enums.json, hide-agent-adapter/src/lib.rs - 내부 wire enum에서 값 하나 제거. 소비자는 web 하나(KitFeatureId)이고 같은 PR에서 함께 바뀝니다. 장치의 낡은 helper는 feature 목록을 보내지 않고 core가 지원표에서 계산하므로 호환 경로는 없습니다.
  • 조심해서 볼 파일: docs/status-model.md - uninstrumented 단락이 "그리는 mark"에서 "core만 투영하는 필드"로 바뀌었습니다. Not connected 칩은 그대로 이 필드의 code에서 판단됩니다.

Evidence

  • 확인한 것: scripts/verify-web.sh 통과 - web 148 파일 1369 테스트(AgentsTab.test.tsx 10개, 팝오버가 11줄이고 collaboration 그룹이 4줄), desktop 17 파일 163 테스트, typecheck, lint, build.
  • 확인한 것: verify-cargo.sh lint(fmt, clippy 전체 타깃), hakari, test, test-scoped -p hide-agent-adapter -p hide-kit 통과. 어댑터 계약 fixture(support.json)와 core, kit의 feature 표 테스트가 11개 표를 같은 답으로 봅니다.
  • 확인한 것: node scripts/check-design-contract.mjs 통과. Pen 라이브러리와 화면 파일에는 서브에이전트 수를 그린 곳이 없어 고친 것이 없습니다(Sidebar agent row의 ↳2는 Hide가 띄운 자식).
  • 확인한 것: python3 -m unittest discover -s scripts/tests(321개), check-no-attribution.py, check-no-workstation-identity.sh 통과.
  • 확인한 것: 격리 Herdr(0.9.3)와 이 worktree의 마지막 hided로 web e2e agent-adapter-layer, grok-cursor-hooks, agents-tab 10개 통과. Cursor 팝오버가 en, ko, zh-CN, ja에서 Light와 Dark로 11줄이고, ko Light 캡처에서 collaboration 그룹이 편지, 종, Memory, spawn guard 네 줄임을 눈으로 봤습니다.
  • 확인하지 못한 것: 설치된 desktop 앱의 창(캡처는 e2e의 Chromium). desktop e2e, os contract, windows check, 전체 web e2e shard는 로컬에서 돌리지 않았고 CI의 verify에 맡깁니다.
후보 A/B/C (고르지 않은 안)

A 행 끝 수 표시

A · 행 끝 수 표시. 포크 아이콘과 숫자가 첫 줄 오른쪽 묶음에 붙고, Hide 자식의 ● N과 나란히 놓입니다.

B 에이전트 mark 모서리 숫자

B · 에이전트 mark 모서리 숫자. 행 폭은 변하지 않지만 16 px 로고 위라 작습니다.

C pane 머리에서만

C · pane 머리에서만. 자식 목록 버튼 바로 옆에 놓여 Hide 자식과 매번 구분해야 합니다.

A pane 머리

B pane 머리

C 사이드바

팝오버와 툴팁

어떤 에이전트가 수를 보고하나 (core까지 오는 데이터)
에이전트 수 출처
Claude Code 보고 6-event hook, SubagentStart/Stop, 턴이 끝나면 working을 0으로 정리
Codex 보고 같은 hook. 훅 승인 전에는 아무것도 오지 않아 unknown
Grok 보고 hook, 턴이 끝나도 백그라운드 서브에이전트는 계속 셈
OpenCode 보고 plugin, 부모 있는 session.created와 busy/idle
omp 보고 extension, before_subagent_spawn부터 working
Pi 선언 없음 서브에이전트를 돌리지 않음
Cursor 선언 없음 hook이 Task 서브에이전트에 불리지 않음(#911, #940)

토큰은 hide_sub_working, hide_sub_done이고 PaneHookTokens가 읽을 수 없는 값을 None으로 둡니다.

A subagent runs inside one agent's session with no pane of its own, so the
operator cannot enter it or act on it. Showing its count beside the child
marks of agents Hide started would give "child" two meanings on one row, and
the number is not a state the operator would act on.

No screen draws the count now. The popover of the Basic chip in Settings >
Agents leaves out the `subagents` line, with its four translations. The core
still sends the feature and the count (`PaneChildren.subagents`, the pet's
badge), so the wire enum stays.

The guides say what is true: the Subagent count section states the rule, the
marks status-model.md placed on the pane header, sidebar row and Overview line
were never drawn by the web shell, and the Cursor popover claim is gone.
@yansfil
yansfil force-pushed the design/subagent-badge-810 branch from 44a3a20 to 99a880d Compare October 10, 2026 13:10
@yansfil yansfil changed the title 서브에이전트 수 표시: 디자인 후보 세 개와 수의 의미 (#810) 에이전트 내부 서브에이전트 수를 화면에 그리지 않고 Settings 기능 표시에서 뺌 Oct 10, 2026
@yansfil
yansfil marked this pull request as ready for review October 10, 2026 13:14
The entry was derived from `subagent_counts.is_some()` and its one reader was
the Settings popover, which no longer lists it. With that line gone the core
sent a value nothing consumed, so the variant leaves the table and the wire
enum with it.

The adapter's `subagent_counts` declaration and the count's whole data path
(hook counters, pane tokens, `PaneChildren.subagents`, the pet's badge) stay:
they read the declaration, not the feature. The adapter's own contract fixture,
the core and kit feature tests, and the Agents popover tests drop the entry.
@yansfil
yansfil merged commit c19a676 into main Oct 10, 2026
22 checks passed
@yansfil
yansfil deleted the design/subagent-badge-810 branch October 10, 2026 13:53
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