Skip to content

⌘K: PR 번호 검색에 그 PR에 연결된 agent 표시 - #1102

Merged
yansfil merged 4 commits into
mainfrom
fix/cmdk-pr-agents
Oct 14, 2026
Merged

yansfil merged 4 commits into
mainfrom
fix/cmdk-pr-agents

Conversation

@yansfil

@yansfil yansfil commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Summary

⌘K에 PR 번호(#275, 275)를 쳐도 그 PR을 작업한 agent는 목록에 나오지 않았습니다.
agent 행은 자기 이름·위치·상태 문장에 그 숫자가 글자로 들어 있을 때만 걸렸기 때문입니다.
이제 PR 번호가 정확히 맞는 행 바로 아래 Agents 그룹에, 코어가 그 PR에 연결해 둔 agent가 나오고 ↵로 그 pane에 갑니다.
연결 기준은 agent 행이 이미 받는 request.pull_requests(그 세션이 만들었거나 그 브랜치에 걸린 PR)이고, 머지·닫힌 PR도 포함합니다.
agent 상세에는 PR #275, #260 줄이 추가됩니다.

⌘K에 #275를 입력하면 PR 행 아래 Agents 그룹에 그 PR의 agent가 나오고, 상세에 PR #275가 보인다

#275 입력: Pull requests 바로 아래 Agents에 그 PR 브랜치에서 일한 agent가 나오고, 오른쪽 상세에 PR #275 줄이 생깁니다 (gallery ⌘K 장면, 픽스처 데이터).

Review

  • 판단해 주세요: 연결 범위를 agent의 PR 마크가 그리는 것(그 agent가 맡은 현재 PR)보다 넓게 잡았습니다. 머지된 PR 번호로도 그 PR을 만든 agent를 찾게 하려는 선택입니다.
  • 판단해 주세요: 다른 저장소의 같은 번호 PR에 연결된 agent도 함께 나옵니다. PR 행도 프로젝트마다 따로 나오는 기존 규칙과 같고, agent 행의 위치(project › checkout)로 구별됩니다.
  • 조심해서 볼 파일: web/src/search.ts - filterEntries의 정확 일치 목록. 점수 매긴 목록과 겹치지 않고, 80행 상한 안에서 앞에 남습니다.

Evidence

  • 확인한 것: search.test.ts에서 #275·275는 PR 행 다음 Agents 그룹에 연결된 agent가 나오고, 이슈 번호 273은 agent를 데려오지 않으며, 머지되고 처리할 몫이 없는 PR 260도 agent를 찾는 것을 확인했습니다.
  • 확인한 것: 결함을 일부러 넣어 테스트가 실패하는지 봤습니다. agent 매칭을 빼면 1개 실패, 매칭을 열린 PR로 좁히면 1개 실패합니다.
  • 확인한 것: searchDetail.test.ts는 연결 PR이 있는 agent에 PR 줄이 붙고, 없는 agent에는 줄이 없는 것을 확인합니다.
  • 확인한 것: bash scripts/verify-web.sh의 web typecheck, lint, 테스트(파일 176개, 1561개 통과, 1개 skip), 빌드가 둘째 커밋에서 통과했습니다. 마지막 커밋(문서·주석·테스트만)에서는 web typecheck, lint, ⌘K 테스트 4파일을 다시 돌려 통과했습니다.
  • 확인한 것: dev 빌드 gallery의 ⌘K 장면(/gallery?scene=search-palette)에서 #275를 입력하고 실제 렌더를 캡처했습니다. 위 이미지입니다.
  • 확인하지 못한 것: 실제 앱에서 실제 PR이 걸린 agent로 확인하지는 않았습니다. 목록 데이터는 코어가 이미 보내는 필드 그대로입니다.
  • 확인하지 못한 것: 원격 기기 agent는 실행해서 확인하지 않았습니다. 같은 필드를 읽고, 필드가 없으면 매칭하지 않습니다.
  • 확인하지 못한 것: 같은 로컬 실행에서 desktop src/main/notificationPermission.test.ts의 "asks the helper once for reads that overlap" 테스트가 부하 중 1회 실패했고, 단독으로는 3회 모두 통과했습니다. 이 변경과 무관한 타이밍 의존 테스트로 보입니다.

A #number query listed the pull request but never the agents working on it,
because an agent row matched only by its own words. The agents whose PR mark
draws that pull request (request.pull_requests) now follow the exact PR rows,
and an agent's detail names its pull requests.
The scene's child works in the checkout of pull request 275, so the core
would draw that PR on it; the fixture now says so, and the tests share its
request builder.
The PR mark draws only the open pull requests an agent owns, while a number
search and the agent's detail read every pull request the core links to it,
so a merged one still finds the agent that made it. The guide and comments
said the mark's set; a test now holds the merged case.
The mark also draws a pull request that merged after the operator's last
request, so naming the mark's set as only the open ones was wrong.
@yansfil
yansfil merged commit 405fe52 into main Oct 14, 2026
19 checks passed
@yansfil
yansfil deleted the fix/cmdk-pr-agents branch October 14, 2026 09:25
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