Repository navigation
에이전트 탭에 pane 개수 표시 - #1076
Merged
Merged
에이전트 탭에 pane 개수 표시#1076
Conversation
yansfil
added a commit
that referenced
this pull request
Oct 15, 2026
## Summary CI는 PR이 바꾼 경로로 돌릴 레인을 고르는데, 규칙에 없는 경로가 하나라도 있으면 모든 레인을 돌립니다. 10-13 이후 머지된 PR 58개 중 13개가 그랬고, 원인은 테스트가 읽는 계약 파일, 레인이 부르는 workflow, 디자인 스크립트, `web/vite.config.ts`였습니다. 이제 이 경로들은 실제로 읽는 레인과 크레이트만 돌립니다. 같은 58개를 다시 계산하면 전체 레인 PR 13 → 1, 잡 855 → 823, macOS 잡 58 → 45입니다. - **계약 5개** (`hided-ws.schema.json`, `snapshot-wire-enums.json`, `agent-adapters.json`, `hide-cli.json`, `usage-coverage.json`): 읽는 테스트의 크레이트만 `rust`로, 웹 테스트가 읽으면 `checks`, 셸이 import하면 `web-e2e`도. - **레인 workflow 4개** (`web-e2e.yml`, `desktop-e2e.yml`, `os-contract.yml`, `remote-mailbox.yml`): 그 workflow를 부르는 레인만. - **`web/vite.config.ts`**: 셸을 빌드하거나 웹 단위 테스트를 돌리는 레인 전부. Rust만 도는 레인은 뺍니다. - **디자인 생성기, 토큰 맵, 디자인 검사**: `policy`만. `design-contract.yml`이 모든 PR에서 따로 검사합니다. - **`Cargo.lock`은 전체 그대로**: 거의 모든 크레이트가 `workspace-hack`에 의존해 lock 변경이 모든 크레이트에 닿습니다. - **따라가다 찾은 누락** (두 번째 커밋): `docs/UI_BEHAVIOR.md`, `docs/AI_PROVIDERS.md`, 에이전트 로고 manifest는 테스트가 읽는데 그 레인을 돌리지 않았습니다. 이제 돌립니다. ## Review - **판단해 주세요**: `agent-adapters.json`은 웹 셸 파일 규칙(`checks`, `web-e2e`)을 따라 데스크톱 e2e를 돌리지 않습니다. `agentAdapters.ts` 변경도 지금 그렇고, 데스크톱에서만 깨지면 nightly가 잡습니다. - **판단해 주세요**: brief 목록 밖인 `web-e2e.yml`, `desktop-e2e.yml`, `os-contract.yml`과 디자인 검사 6개도 같은 규칙이라 넣었습니다. workflow는 테스트가 `pr.yml`의 `uses:`에서 부르는 레인을 읽어 맞춥니다. - **조심해서 볼 파일**: `scripts/ci-plan.py` `classify` - 다른 규칙이 없는 경로는 이제 READERS가 전부 정합니다. 기존 READERS 경로는 다른 규칙이 먼저 잡아 그대로입니다. - **조심해서 볼 파일**: `scripts/ci-plan.py` READERS - 크레이트는 그 크레이트 테스트만 돌립니다. 테스트가 아닌 코드가 계약을 읽게 되면 크레이트 변경 규칙으로 옮겨야 합니다. ## Evidence - **확인한 것**: `python3 -m unittest discover -s scripts/tests -p 'test_*.py'` 343개 통과. - **확인한 것**: 계약 테스트는 기대값을 소스에서 얻습니다. 주석을 뺀 코드에서 파일 이름을 부르는 크레이트와 웹 파일이 계획된 크레이트와 레인과 같아야 합니다. - **확인한 것**: 레인 하나를 빼는 변조 3개(계약, vite 설정, `os-contract.yml`)가 각각 테스트를 실패시킵니다. - **확인한 것**: 재현 스크립트로 PR 58개의 merge commit diff를 변경 전후 planner에 넣었습니다. spec은 merge commit 시점 내용으로 읽었습니다. 표는 아래. - **확인하지 못한 것**: 머지 뒤 실제 PR 런의 잡 수와 대기 시간. 이 PR은 `scripts/ci-plan.py`를 바꿔 자기 런은 전체 레인입니다. - **확인하지 못한 것**: 리더 스캔은 파일 이름 문자열로 찾아, 경로를 조각으로 이어 붙여 읽는 코드는 놓칠 수 있습니다. <details><summary>PR별 전/후 (전체 레인이던 13개)</summary> 잡 수는 `plan`, `verify`와 레인별 잡(`web-e2e` 5, `os-contract` 2, `package` 3, 나머지 1)의 합입니다. Rust 크레이트는 `rust` 레인이 lint와 테스트를 도는 범위입니다(전체 레인이면 workspace 전체). | PR | Unclassified paths before | Full after | Jobs | macOS jobs | Rust crates | Lanes dropped | | --- | --- | --- | --- | --- | --- | --- | | #1108 | `contracts/hided-ws.schema.json` | no | 18 -> 16 | 2 -> 0 | workspace -> 11 of 16 | os-contract-macos, desktop-e2e | | #1085 | `contracts/hide-cli.json` | no | 21 -> 20 | 3 -> 2 | workspace -> 8 of 16 | os-contract-macos | | #1083 | `.github/workflows/remote-mailbox.yml` | no | 21 -> 21 | 3 -> 3 | workspace -> 14 of 16 | - | | #1076 | `scripts/gen-tokens.mjs` | no | 18 -> 10 | 2 -> 0 | workspace -> 1 of 16 | os-contract, os-contract-macos, windows-check, windows-e2e, windows-desktop, remote-mailbox, desktop-e2e | | #1074 | `contracts/hided-ws.schema.json` | no | 18 -> 17 | 2 -> 1 | workspace -> 3 of 16 | os-contract-macos | | #1070 | `scripts/gen-screens.mjs`, `web/vite.config.ts` | no | 18 -> 17 | 2 -> 1 | workspace -> 8 of 16 | os-contract-macos | | #1056 | `contracts/snapshot-wire-enums.json` | no | 21 -> 20 | 3 -> 2 | workspace -> 10 of 16 | os-contract-macos | | #1051 | `contracts/hided-ws.schema.json` | no | 21 -> 20 | 3 -> 2 | workspace -> 3 of 16 | os-contract-macos | | #1049 | `scripts/pen-token-map.json` | no | 18 -> 3 | 2 -> 0 | workspace -> not run | rust, checks, os-contract, os-contract-macos, windows-check, windows-e2e, windows-desktop, web-e2e, remote-mailbox, desktop-e2e | | #1044 | `.github/workflows/remote-mailbox.yml`, `contracts/agent-adapters.json`, `contracts/hided-ws.schema.json`, `contracts/usage-coverage.json` | no | 21 -> 21 | 3 -> 3 | workspace -> 15 of 16 | - | | #1037 | `contracts/hided-ws.schema.json` | no | 18 -> 17 | 2 -> 1 | workspace -> 3 of 16 | os-contract-macos | | #1030 | `Cargo.lock`, `contracts/agent-adapters.json`, `contracts/hided-ws.schema.json`, `contracts/usage-coverage.json` | yes | 18 -> 18 | 2 -> 2 | workspace -> workspace | - | | #1017 | `contracts/snapshot-wire-enums.json` | no | 18 -> 17 | 2 -> 1 | workspace -> 9 of 16 | os-contract-macos | </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
0개와 1개는 기존 탭 형태를 유지하고, 2개와 12개는 제목 옆에 pane 아이콘과 숫자를 표시합니다.
실제 제품 컴포넌트를 독립 렌더링한 브라우저 캡처입니다.
Review
web/src/TabBar.tsx는 snapshot의 pane identity를 사용하며, 탭의 닫기·단축키 자리와 기존 밀도 규칙을 유지합니다.Evidence
7f3f5f4의 필수 검사와 Linux·Windows·macOS 통합 테스트, 디자인 계약이 모두 통과했습니다.940f2c6의 main CI, 디자인 계약이 모두 통과했습니다.추가 증거
단축키 번호를 유지하며, 104px 이하 예시와 compact·marks 상태에서는 개수 표시를 접습니다.