Repository navigation
Open terminal links in View, and hand a modifier-click to the OS - #260
Merged
Merged
Conversation
A terminal pane now links plain-text URLs and paths whatever program printed them, reading the rows only when the pointer reaches one. A path is a link only once the desktop host finds it on disk, looked up under the pane's folder and then its checkout's root; a token cut by a wrap, at the terminal's edge or at a TUI's indented margin, is joined and the existence check picks the real spelling. A click opens a URL as a browser display, a file in View at its line and a folder in the Explorer through one reveal_path; Cmd-click (Ctrl off macOS) hands either to the OS, and a drag across a link only selects it. OSC 8 links take the same routes in place of xterm's confirm dialog. A path outside every checkout goes to macOS through the desktop host, which opens only an allowlisted document type or a plain folder, reveals everything else, and judges and opens the physical path only, so a symbolic link swapped in after the hover is refused. A path check that failed is unknown rather than missing, so a checkout's file is never handed to macOS because its root could not be checked.
yansfil
force-pushed
the
feat/terminal-links
branch
from
September 29, 2026 08:02
cf1e94d to
f80eda6
Compare
A CI screen keeps the window 1024 wide, where the View panel covers the agents (UI_BEHAVIOR, Narrow windows), so after the first link opened a page the next hover landed on the panel instead of the terminal. The test now pins that window size and zooms the shell out, so an open View sits beside the pane on every machine.
yansfil
force-pushed
the
feat/terminal-links
branch
from
September 29, 2026 08:34
d439798 to
e1c3572
Compare
yansfil
added a commit
that referenced
this pull request
Oct 14, 2026
## Summary ⌘K에 PR 번호(`#275`, `275`)를 쳐도 그 PR을 작업한 agent는 목록에 나오지 않았습니다. agent 행은 자기 이름·위치·상태 문장에 그 숫자가 글자로 들어 있을 때만 걸렸기 때문입니다. 이제 PR 번호가 정확히 맞는 행 바로 아래 `Agents` 그룹에, 코어가 그 PR에 연결해 둔 agent가 나오고 ↵로 그 pane에 갑니다. 연결 기준은 agent 행이 이미 받는 `request.pull_requests`(그 세션이 만들었거나 그 브랜치에 걸린 PR)이고, 머지·닫힌 PR도 포함합니다. agent 상세에는 `PR #275, #260` 줄이 추가됩니다. <img width="871" alt="⌘K에 #275를 입력하면 PR 행 아래 Agents 그룹에 그 PR의 agent가 나오고, 상세에 PR #275가 보인다" src="https://github.com/user-attachments/assets/098830dc-0acc-4440-8bfe-4c36ee80f3ad" /> `#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회 모두 통과했습니다. 이 변경과 무관한 타이밍 의존 테스트로 보입니다.
HyunjunJeon
pushed a commit
to HyunjunJeon/hide
that referenced
this pull request
Nov 9, 2026
…ore (with-hide#2149) Closes with-hide/hide-private#561 Closes with-hide/hide-private#495 Closes with-hide/hide-private#564 Closes with-hide/hide-private#605 ## Summary e2e 픽스처가 두 번째 에이전트를 너무 일찍 시작해서, 코어가 "다른 시작이 아직 진행 중"이라며 거절하고 픽스처는 30초를 기다리다 실패했습니다. 코어는 시작 하나가 끝나기 전에는 새 시작을 받지 않는데, 첫 에이전트의 행은 그 시작이 끝나기 전에 먼저 보입니다. 이제 테스트는 행이 아니라 코어가 그 시작에 준 답(시작 패널이 읽는 것과 같은 영수증, `task_operation`)을 기다렸다가 다음 시작을 보냅니다. 거절되면 30초를 기다리지 않고 코어의 이유로 바로 실패합니다. 화면 변경 없음: 테스트 코드와 문서만 바뀝니다. ## Review - **조심해서 볼 파일**: `web/e2e/daemon-actions.ts` `startAgentInCheckout` - 코어의 task slot 규칙(`herdr-core/src/runtime/session.rs:3994-4003`)을 그대로 읽는지, `started` 외의 답은 모두 실패로 끝나는지. - **조심해서 볼 파일**: `web/e2e/engine-fixture.ts` - 첫 시작이 끝난 뒤에야 두 번째 시작(또는 family의 spawn)이 나갑니다. 기다림은 코어 신호뿐이고 timeout·sleep·retry는 늘리지 않았습니다. - **원인이 다른 것**: with-hide#444 with-hide#445 with-hide#459 with-hide#479 with-hide#496 은 픽스처가 아니라 spec 안의 기다림에서 실패하고 로그에 거절이 없어 이 PR에서 다루지 않습니다. - **Herdr 레인에서만 난 것**: with-hide#260 with-hide#489 with-hide#502 with-hide#510 with-hide#511 with-hide#519 with-hide#533 은 `*-herdr-*` 레인에서만 났고 그 레인은 #2069로 지워졌습니다. #2069와 아래 반복 run을 적은 댓글로 닫습니다. - **열어 두는 것**: with-hide#490 with-hide#492 with-hide#523 with-hide#529 with-hide#532(`agent_pane_required`)는 이 PR이 끝내지 않습니다. 원인은 with-hide/hide-private#630에서 따로 다룹니다. ## Evidence - **확인한 것**: own engine으로 바뀐 뒤 "second fixture agent" 실패 6건 중 5건(#561 x2, with-hide#495, with-hide#564, with-hide#605; Linux·Windows)의 setup snapshot과 hided 로그를 봤습니다. 모두 두 번째 시작의 request id로 `task_operation.busy` 거절이 남아 있습니다. 나머지 1건(#561, run 42076071271)은 로그를 받지 않았고 오류 줄만 같습니다. - **확인한 것**: 실패 로그 순서는 tab.create 완료 -> busy 거절 -> 첫 시작의 `agent.started`, 통과한 실행은 tab.create 몇 ms 뒤 `agent.started` -> 두 번째 시작입니다. - **확인한 것**: `web`·`desktop` typecheck, lint(e2e 크기 검사 포함) 통과. - **확인한 것**: a79a97b, run 42202678411의 Linux 전체 e2e(6 shard)와 Windows `@platform` e2e를 3번 돌렸습니다. 닫는 11개 제목은 매번 통과했고 재시도도 없었습니다. - attempt 1: Linux 6/6, Windows 1/1 통과. 재시도 후 통과: `desk-lane` "Desk is off on a new install"(Linux 4/6), with-hide#444 close-subtree(Linux 6/6) - attempt 2: Linux 6/6, Windows 1/1 통과, 재시도 없음 - attempt 3: Linux 6/6, Windows 1/1 통과. 재시도 후 통과: `desk-lane` 같은 테스트(Linux 4/6) - **범위 밖**: #444가 attempt 1에서 재시도 후 통과한 것과 `desk-lane`이 두 번 재시도 후 통과한 것은 픽스처 원인이 아닙니다. 이 노드 범위 밖이고 따로 묶여 있습니다. - **확인하지 못한 것**: 로컬 e2e는 돌리지 않았습니다(Rust debug 빌드 디스크 부족). macOS 웹 e2e는 PR CI에 없어 반복하지 않았고, 이 묶음의 21개 이슈 중 macOS에서 난 것은 없습니다.
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에서 링크를 누르면 xterm의 확인 모달이 떴고, 평문 파일 경로는 링크가 아니었습니다.
이제 어떤 프로그램이 찍었든 URL과 경로가 링크가 되고, 클릭하면 모달 없이 앞의 Workspace에서 열립니다.
URL은 browser display로, 파일은 View에서 해당 줄로, 폴더는 Explorer에서 열립니다.
⌘-클릭(macOS 밖에서는 Ctrl)은 OS로 넘깁니다: URL은 기본 브라우저, 경로는 macOS.
경로는 디스크에 있을 때만 밑줄이 생기고, 줄바꿈으로 잘린 경로는 이어 붙인 뒤 존재 확인으로 맞는 철자를 고릅니다.
checkout 밖 경로(
/tmp등)는 macOS로 가며, 평범한 문서만 열고 나머지는 Finder에서 보여 주기만 합니다.Review
.py,.sh,.js,.html,.csv가 여기에 해당합니다. 이 목록이 맞는지 봐 주세요.desktop/src/main/localPath.ts,desktop/src/main/host.ts- failure path. 렌더러가 보낸 경로로shell.openPath를 부르는 유일한 자리입니다. 허용 목록이 있고, 물리 경로가 아니면 거절하며, 열기 직전에 다시 확인합니다.web/src/terminalLinkProvider.ts- high-frequency path. 일은 hover 때만 하고 프레임마다 하지 않습니다. 확인은 호출당 64개, 캐시는 512개와 10초로 제한됩니다.web/src/actions.tsopenTerminalPath- ownership. checkout 안 경로는reveal_path한 번으로 보냅니다. root를 확인하지 못하면 macOS로 넘기지 않고 멈춥니다.web/src/terminals.ts- 링크 위에서 누른 것은terminal_click으로 보내지 않습니다. 링크 위를 드래그하면 선택만 합니다.Evidence
terminal-links.spec.ts를 격리된 Herdr, hided, Electron에서 실행했고, macOS 핸들러는 기록기로 바꿨습니다. 이 spec은 다음을 확인합니다..cm-activeLine에 42번째 줄이 잡힙니다./tmp문서는 open, 실행 파일은 reveal로 갑니다.file://#L7링크는 7번째 줄로 갑니다.terminal_click1회로 갑니다.desktop.spec.ts6개 통과(bridge 키 목록 포함),bash scripts/verify-web.sh통과(web 547, desktop 68 unit, typecheck, lint, build, hcoord)./Applications/hide.app나 패키지 앱으로 실제 Claude Code, Codex 출력 위에서 해 본 수동 QA. 검증은 e2e fixture의 셸 출력으로만 했습니다.@needs-focuse2e와--repeat-each는 로컬에서 돌리지 않았고 CI에 맡깁니다. Rust는 바뀌지 않았습니다.Verification record
hover: 있는 경로만 밑줄, OSC 8 링크는 점선.
missing/nothing.ts,/tmp의 실행 파일은 이 순간 밑줄이 없습니다.터미널 폭에서 감긴 경로가 두 줄에 걸친 한 링크로 열립니다.
19863cf76dcc1e370436fa9c547e115cbcfd8519, heade1c3572963b25e3afcc6d356da3ae604031f654cprobe의 타임아웃과/net자동 마운트 회피.OverviewLenses,TaskBoards,PullRequestsView)를opensExternally로 옮기기.