Skip to content

Place a tab Hide created under the checkout it was created for - #420

Merged
yansfil merged 2 commits into
mainfrom
fix/rapid-new-tab-intent
Oct 5, 2026
Merged

yansfil merged 2 commits into
mainfrom
fix/rapid-new-tab-intent

Conversation

@yansfil

@yansfil yansfil commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Fixes #400

Summary

Hide가 만든 새 탭이 잠시(CI에서 20초) 다른 checkout 아래로 들어가 탭 줄에서 사라지던 결함을 고칩니다.
원인은 탭의 checkout 소속을 첫 pane의 cwd로 정하는 규칙입니다. 새 pane은 셸이 시작 폴더로 들어가기 전의 cwd(예: 상위 폴더)를 먼저 보고하고, Herdr는 cwd가 바뀌어도 이벤트를 보내지 않습니다.
운영자 결정(b)에 따라 Hide가 만든 탭(CreateTab, OpenOwner, agent 시작과 Home 탭)의 소속은 생성 의도가 정합니다. Hide 밖에서 생긴 탭은 지금처럼 pane cwd가 정합니다.
core는 생성 응답의 tab id와 요청 checkout을 기억합니다(최대 64개, 초과 시 진단 로그). 기록은 session이 그 탭을 한 번 본 뒤 탭이 사라지거나 Herdr 연결이 끊기면 지웁니다.
응답보다 session이 먼저 와서 탭이 이미 다른 checkout에 놓였으면, local coordinator가 다음 operation tick(250ms)에 한 번 다시 publish합니다.

Review

  • 판단해 주세요: 새 worktree의 첫 탭은 기록하지 않습니다(catalog에 checkout이 늦게 들어옴). 같은 경합이 남는지는 R2 목록에 있습니다.
  • 판단해 주세요: hided를 재시작하면 기록이 없어지므로 그 뒤에는 Hide가 만든 탭도 pane cwd를 따릅니다. 재시작 시점의 cwd는 이미 정착했다고 보고 저장하지 않았습니다.
  • 조심해서 볼 파일: herdr-core/src/runtime/session.rs - runtime mutex 안의 소속 결정. 추가 작업은 탭당 map 조회 한 번이고 subprocess는 없습니다.
  • 조심해서 볼 파일: herdr-core/src/session_sync/coordinator.rs - 원격 coordinator도 runtime을 공유하므로 republish 플래그는 local coordinator만 가져갑니다.
  • 비용 검토: 탭 생성 응답 하나당 최대 한 번 추가 publish. 기록은 64개 상한이고, 탭이 닫히면 함께 지워집니다.

Evidence

  • 확인한 것: 새 core 테스트가 두 경로를 가릅니다. Hide가 만든 탭은 pane cwd가 checkout 밖이어도 요청 checkout에 남고(응답 먼저/session 먼저 둘 다), 같은 cwd의 외부 탭은 cwd를 따릅니다.
  • 확인한 것: 기록을 끄면 같은 테스트가 left: ["w-order:t1"]로 실패합니다.
  • 확인한 것: checkout-owner.spec.ts 4개가 --retries 0으로 로컬 macOS에서 통과했습니다. @flaky를 :80, :163에서 지웠습니다.
  • 확인한 것: verify-cargo.sh lint 통과, test-scoped -p herdr-core 1370 통과 1 실패(아래).
  • 확인한 것: new-tab.spec.ts 2개 retry 0 통과. 관련 spec 묶음에서 sidebar-menus:80(@flaky Flaky e2e: a tab created from the project menu never reaches the tab strip (sidebar-menus) #308)만 실패했고, 탭 생성 전 메뉴 단계라 이 변경의 경로가 아닙니다.
  • 확인한 것: 리뷰 subagent의 Fix now 3건(agent 시작 탭 미기록, 연결 끊김 시 기록 유지, checkout 누락 무신호)을 반영했습니다.
  • 원인 근거: CI run 37242379943(checkout-owner.spec.ts:38, 진단 로그 빌드)에서 Herdr는 두 탭을 모두 가졌고, Hide projection만 새 탭 w1:t2를 fixture 상위 폴더의 별도 checkout에 20초 동안 두었습니다.
  • 확인하지 못한 것: repository_clone::the_same_clone_sent_twice_runs_once_and_another_waits가 전체 병렬 실행에서 fixture git commit으로 한 번 실패했고, 단독 3회는 통과했습니다. 세션 코드와 무관한 R5 후보입니다.
  • 확인하지 못한 것: 이 결함은 로컬에서 재현되지 않았습니다(새 탭을 연달아 두 번 만들면 탭 하나가 유실된다 #400 댓글). 고쳐졌다는 증명은 이 PR의 Linux CI lane이 :80, :163을 retry 없이 통과하는 것입니다.
R2: 같은 "출생 시점 cwd"를 읽는 다른 곳 (이 PR에서는 고치지 않음)
  • herdr-core/src/worktree_control.rs 새 worktree 첫 탭: 기록 없이 pane cwd 규칙을 따른다.
  • herdr-core/src/runtime/session.rs session_spaces/pane_cwd: Herdr workspace의 pane cwd 목록으로 navigator 프로젝트 행과 root index를 만든다. 출생 cwd가 임시 프로젝트 행을 만들 수 있다.
  • herdr-core/src/runtime.rs project_layout_panes: PaneSnapshot.cwd를 pane cwd로 채운다. 포트·서버 귀속(runtime/terminal.rs attributed_ports)이 이 값을 쓴다.
  • herdr-core/src/session_sync/replica.rs 원격 projection: worktree 바인딩이 없는 원격 workspace의 경로를 첫 pane cwd로 정한다.
  • herdr-core/src/device_catalog.rs tab_context: 원격 기기 탭 묶음을 첫 pane cwd로 정한다. 기기에서 Hide가 만든 탭(runtime/agents.rs CreateTab)은 이번 기록이 다루지 않는다.
  • herdr-core/src/session_sync/replica.rs replace_agents: agent.list의 agent cwd를 pane cwd에 덮는다(#373의 agent 출생 cwd와 같은 모양).
  • herdr-core/src/sidebar.rs project_agent: workspace label이 없을 때 agent cwd의 마지막 폴더 이름을 쓴다.
  • herdr-core/src/labels/worker.rs: 라벨 관측이 pane cwd를 복사한다.

A new pane reports the cwd it was born with until its shell enters the
start folder, and Herdr sends no event when that settles, so deriving a
created tab's checkout from its pane cwd put it under another checkout
until an unrelated publish (#400). The core now keeps the requested
checkout from the creation acknowledgment, bounded and released with the
tab, and the local coordinator republishes once when the session placed
the tab first. Tabs made outside Hide keep the pane cwd rule.
…a missing checkout

The task slot's agent start and Home tab create tabs through
create_checkout_tab, which did not carry the created tab id back, so
those tabs still followed the birth cwd. A session error now clears
every record, because the next Herdr server numbers its own tabs, and a
recorded checkout that left the catalog is reported once before its tab
falls back to the pane rule.
@yansfil
yansfil merged commit 2418653 into main Oct 5, 2026
53 of 55 checks passed
@yansfil
yansfil deleted the fix/rapid-new-tab-intent branch October 5, 2026 01:09
yansfil added a commit that referenced this pull request Oct 5, 2026
)

Closes #156. Related: #158. Follow-up (not in this PR): #159.

## Summary

- 에이전트가 운영자가 보는 browser display를 표준 CDP로 조작합니다: `hide browser connect
[--display <id>]`가 `cdp_http_url`과 `browser_ws_url`을 돌려줍니다.
- 엔드포인트는 데스크톱 main process의 loopback 게이트웨이이고, 클라이언트 목록에는 browser display
target만 보입니다. 셸 renderer attach는 거부됩니다.
- 클라이언트의 new-target 요청은 같은 View area에 새 display를 엽니다. 클라이언트를 닫아도
display는 남고, display를 닫으면 그 클라이언트 세션이 끝납니다.
- 에이전트가 붙은 display의 area 탭에 연결 배지가 보이고, 운영자는 그대로 조작할 수 있습니다.

![에이전트가 붙은 browser display: 탭의 연결 배지, 한글 입력이 페이지에
반영됨](https://github.com/yansfil/pr-assets/blob/main/hide/feature/browser-control/ef7dab3/browser-display-attached.png?raw=true)

탭 제목 옆의 링크 배지가 에이전트가 붙어 있다는 표시입니다.

## Review

- **판단해 주세요**: 지원 프로필은 직접 WebSocket discovery와 기존
context(`noDefaults`)입니다. MCP의 `--browser-url`은 capability prefix를 잃어
`--wsEndpoint`를 안내합니다.
- **조심해서 볼 파일**: `desktop/src/main/browserCdp.ts`, `browser.ts` - 세션
소유권과 네이티브 `file:` 접근 경계(HTTP/blank 페이지는 첫 load 전에 file 접근을 거부, 수동 파일
display는 유지).
- **조심해서 볼 파일**:
`herdr-core/src/runtime/{session,device_catalog,projects}.rs`의 변경 꼬리 -
capability를 coalesced 전달보다 먼저 회수하는 자리.
- **조심해서 볼 파일**: `hided/src/server.rs`, `browser_control.rs` - loopback
전용, capability gate, 실패 경로.
- **비용 검토**: 유휴 페이지는 discovery 작업이 없고, 게이트웨이 요청은 8개 admission cap과 16
KiB 응답 cap을 가집니다(`docs/PERFORMANCE_TESTING.md`).
- **질문**: 없음.

## Evidence

- **확인한 것**: 고정된 실제 클라이언트 3종이 격리된 앱에서 통과했습니다: agent-browser 0.38.2(open,
snapshot, fill, click, screenshot), chrome-devtools-mcp 1.10.1(navigate,
snapshot, fill, click), Browser Use 0.13.10(연결, DOM 읽기, 연결 해제). 연결 해제
뒤에도 페이지가 남았습니다.
- **확인한 것**: `desktop/e2e/browser-cdp.spec.ts` 8개 케이스를 로컬 격리 환경에서
통과했습니다(셸 target 비노출, 닫기 순서, 파일 경계, 다운로드 취소 포함).
- **확인한 것**: 현재 main(#420 포함)을 병합한 head에서 required `verify`가 통과했습니다.
Linux 탭 projection 실패는 재현되지 않았습니다.
- **확인한 것**: Rust workspace 테스트 1,922개 통과(lint 포함), web 1,004개와 desktop
147개 단위 테스트 통과.
- **확인하지 못한 것**: 수동 파일 열기 `page_wait_timeout`은 CI에서만 났고 로컬에서는 재현되지 않아
원인을 특정하지 못했습니다. 이번 head의 CI에서는 통과했습니다. 실패 시 core 진단이 출력되도록 e2e 진단만
보강했습니다.
- **확인하지 못한 것**: Playwright와 Browser Use의 기본 흐름(watchdog, CLI)은 지원하지 않고
문서에 적었습니다. #159의 `hide browser snapshot/click`은 이 PR 범위가 아닙니다.
- **확인하지 못한 것**: 첫 verify 실행의 Linux 1/6 `agent-tab-names.spec.ts:6`(탭 이름
입력 focus)은 이 PR이 닿지 않는 경로의 실패입니다. 이 브랜치에서 로컬 10회 모두 통과했고 실패한 job만 재실행해
통과했습니다.

<details><summary>추가 증거</summary>

- 클라이언트 fixture는 new-target에 area 범위 capability(`hide browser connect`)를
쓰도록 고쳤습니다. display 전용 capability는 new-target을 거부하는 보안 경계 그대로입니다.
- `hide-agent-hooks` fixture 변경은 #156에 필요 없어 이 PR에서 뺐습니다.

</details>
yansfil added a commit that referenced this pull request Oct 5, 2026
…the pane settles (#449)

Related: follows #420 (its "R2" list of other readers of the birth cwd);
#438 and #447 are independent.

## Summary

A new pane reports the cwd its shell was born in until it enters the
start folder, and Herdr sends no event when that settles.
#420 stopped the tab placement from reading it for a tab Hide created.
This PR goes through the other readers in #420's list: where the birth
cwd gives the operator a wrong result, every reader now sees the folder
the tab was created for until a pane of it reports a cwd inside that
checkout; where it does not, the reason is below.

The clamp (`clamp_created_tab_cwds`) runs once on the session before
anything reads it, and the coordinator applies it before it builds the
catalog off the lock, so the rows, the purpose mirror, the pane's `cwd`
and the port attribution cannot disagree.
Once a pane has reported a cwd in the checkout the record is `settled`
and the cwd is read as reported, so a later `cd` out of the folder is
not hidden.

| Reader (from #420) | Wrong with a birth cwd? | Result |
| --- | --- | --- |
| `worktree_control.rs` new worktree's first tab | Yes: the first tab
sat under the parent folder's row | Recorded from `worktree.create`'s
own `tab`; test fails without the clamp |
| `session.rs` `session_spaces`, `pane_cwd` | Yes: a project row for the
parent folder with no tabs, a purpose from another checkout, a branch
description written from it | Clamped; test |
| `runtime.rs` `project_layout_panes` (ports) | Yes: the tab claimed
every listener under the parent folder | Clamped; test |
| `device_catalog.rs` `tab_context` | Yes: a device tab grouped under
another project | Device-created tabs recorded and clamped before
grouping; test |
| `replica.rs` `replace_agents` | Yes, through the same pane cwd |
Covered by the same clamps (the agent's cwd too) |
| `replica.rs` remote projection workspace path | Not shown wrong:
grouping rebuilds projects from the tabs' cwds, now clamped | No change;
a workspace the helper has not answered for still shows its first pane's
path (not tested) |
| `sidebar.rs` `project_agent` | No: the cwd name is used only when
Herdr's workspace label is blank, which the projection never leaves | No
change |
| `labels/worker.rs` | No: the cwd is only the first directory searched
for a session whose identity is already known | No change |

## Review

- **판단해 주세요**: the 30 s birth window (`CREATED_TAB_BIRTH_WINDOW_MS`) is
a judgment from the ~20 s measured in #400; a shell that starts
elsewhere on purpose is believed after it.
- **조심해서 볼 파일**:
- `herdr-core/src/session_sync/coordinator.rs` - high-frequency path:
one extra `payload.clone()` only while a recorded tab is in the session
and unsettled; otherwise none.
- `herdr-core/src/runtime/session.rs` - runtime mutex: the clamp is a
loop over at most 64 records; no subprocess; the settled flag is read
from the payload before it is clamped.
- `herdr-core/src/runtime/agents.rs` - device acknowledgements record
the tab; records leave with the tab or when the device's session fails.
- **비용 검토**: per session publish, at most 64 records are checked against
the payload's layouts; both maps are capped at 64 with the crossing
reported to the diagnostic log; records end with their tab, the session,
the device or the 30 s window. `path_is_within_checkout` stats paths (as
the placement already does under the lock), so the cost is a few stats
per unsettled tab in the session for at most 30 s.
- **질문**: should a device's records survive a disconnect that keeps its
tab ids? They are dropped, like the local ones, because a later
connection numbers its own tabs.

## Evidence

- **확인한 것**:
- 8 core tests: `runtime/tests/birth_cwd.rs` (worktree first tab, no
parent-folder row and purpose mirror input, no sibling listener claimed,
a settled tab reads its cwd as reported) and `device_catalog.rs` (device
tab stays in its folder, then follows its cwd once settled).
- With the clamp disabled, the first three fail (the first tab under
`/…/T`, a row for the parent folder, a claimed listener) and the device
test fails with `["t1"]` against `["t1","t2"]`.
- `scripts/verify-cargo.sh test-scoped -p herdr-core`: 1377 passed;
`clippy -D warnings` and `fmt-check` clean.
- **확인하지 못한 것**:
- Left as follow-ups from review: a birth cwd inside a nested linked
worktree counts as inside the checkout; a device-created worktree's
first tab is not recorded; device paths are compared with the local
filesystem rules; a device acknowledgement that arrives after the
session carries the tab waits for the next device publish; the record
uses Herdr's path spelling, which is canonical in the test but not
checked against a real Herdr.
- No native or Linux/Windows run, and no live device (the device path is
covered by the core fixture only).
- The purpose-mirror branch description write was reasoned from the
code, not run: the test asserts the mirror's input
(`last_session_spaces`), not the git config.
- Whether Herdr's `agent.list` reports a settled cwd for a plain pane,
which would shorten how long the old behavior lasted; the fix does not
depend on it.
yansfil added a commit that referenced this pull request Oct 5, 2026
Related: follows #420 (merged); R1 of the control-order split. Issues
whose cause this removes are listed under Review.

## Summary

Hide sent each local Herdr tab control (focus, create, move, rename) and
each pane focus from a thread of its own, so controls sent moments apart
reached Herdr in either order and the screen followed the wrong one.
They now travel one ordered lane in the core
(`runtime/control_lane.rs`): one socket operation at a time, the rest in
arrival order, at most 16 waiting.
Each request is queued, in flight, superseded or settled: a queued focus
is replaced without leaving a late answer, a replaced in-flight one is
Hide's own late answer, and a lost answer holds back what could be
overwritten by it.
This includes the #414 follow-up: tab focus is serialized like pane
focus.

Before the change, three rapid tab clicks sent Herdr `t2, t3, t1`; they
now send `t2, t1`, the second only after the first was answered.

## Review

- **판단해 주세요**: a lost tab or pane focus answer drops both the queued tab
focus and the queued pane focus (`tab.focus.unknown`,
`pane.focus_unknown`); the next click starts a new request.
- **조심해서 볼 파일**:
- `herdr-core/src/runtime/control_lane.rs` - ownership of the lane;
every exit path of a job (spawn failure, skipped start, lost answer) has
to release what the start marked as sent.
- `herdr-core/src/live.rs` (`spawn_control_lane`) - the one worker per
busy lane; it carries the next job under the runtime lock and does the
socket work outside it.
- `herdr-core/src/runtime/session.rs` - a local tab move carries no
deadline while it waits; `start_job` arms the 5 s wait when it leaves
and does not send a move that is stale or no longer transmitting.
- `docs/ARCHITECTURE.md` - the pending rules (queued, in flight,
superseded, settled) are rewritten with the code.
- **비용 검토**: no work is added per input on the lock; the lane is capped
at 16 and a request past it is refused where it was asked
(`control.lane_full`); one worker thread runs only while the lane is
busy and ends when it drains.
- **H2: the 12 "chord right after a pane click" sites (5 `close_tab`
files)** are a test-ordering assumption, not a product race, judged from
the code and not run on CI.
`closeFocused` and `newTabFocused` read the page-local keyboard owner,
which a click sets synchronously, and `close_pane` names the pane by id,
so a chord after a click does not wait on a core round trip to choose
its target.
The real product race behind `new-tab:72` and its relatives was the
created tab's placement against Herdr's events and a later click, which
the lane and #420 close.
The `toPass` retry in `close-subtree.spec.ts:133` hides the ordering
rather than needing it; PR 2 handles those specs.
- **Worker panic**: a panic inside a socket call settles the job as an
unknown result (`control.worker_panicked`), so the lane cannot stay busy
behind a dead worker.
- **CI failures that are not the lane**: `s6.spec.ts:157` read the
node-side `last` map synchronously after a key press; the page's
`views:true` send was logged in the same millisecond, so the spec now
polls (fixed here).
`s2.spec.ts:55` (macOS: pane count 2 vs 3; Windows: `data-zoomed` stayed
`true`) is the existing flaky #424: both runs show the core's update
arriving 4.3 to 4.7 s after the control was sent (`close_pane` 31.947 to
36.27; `toggle_zoom` 53.387 to 58.08), past the 5 s expect.
Core tests show close, zoom and resize start while the lane is busy and
are not queued behind it
(`a_pane_close_starts_while_an_unanswered_tab_focus_holds_the_lane`,
`a_zoom_and_resize_in_other_tabs_start_while_an_unanswered_pane_focus_holds_the_lane`).
The delay itself is handled in its own PR
(`fix/focus-readback-blocks-ingest`).
- **Closing the quarantine issues**: this PR changes the ordering the
targets depend on but removes no `@flaky` tag.
`new-tab:72`, `agent-tab-groups:159/:247` and `keys:116` (quarantined by
`ci/quarantine-batch-2`) can be closed once the Linux and Windows
`verify` runs of the PR that removes their tags pass on two consecutive
main runs.
`agent-close-contract:13` (#231), `agent-tab-groups:216` (#287) and
`sidebar-menus:80` (#308) are split and un-tagged in the follow-up PR
with the same condition.

## Evidence

- **확인한 것**:
- 19 deterministic core tests in
`herdr-core/src/runtime/tests/control_order.rs`, where the test decides
Herdr's answer order through `FakeHerdr`: late answer, superseded
(replaced before sent and after), refused and unknown result for tab
focus, create and pane focus, plus the cap, join order and stale move.
- With the lane reverted, the rapid-focus test fails (`["t2","t3","t1"]`
against `["t2","t1"]`).
- `scripts/verify-cargo.sh test-scoped -p herdr-core`: 1412 passed;
`fmt-check` and `clippy -D warnings` clean.
- Web e2e on macOS against the pinned Herdr 0.9.1, 2 repeats each:
`pane-focus-ordering`, `new-tab`, `agent-close-contract`,
`agent-tab-groups`, `sidebar-menus` - 20 passed.
- The shared gate (`web/e2e/herdr-gate.ts`) holds any Herdr method;
`pane-focus-ordering.spec.ts` uses it as the one representative journey,
and ordering rules moved to the core tests.
- **확인하지 못한 것**:
  - Linux and Windows runs; no CI result for this head yet.
  - `desktop/e2e/keys.spec.ts:116` was not run locally.
- The H2 classification is from reading the code, not from a failing
run.
- Known gaps left as follow-ups: a lost focus answer leaves
`last_view_intent_serial` at a dropped focus (a created tab can be held
back with a stale `tab.create.focus_superseded` note), and
`ingest_pane_focus_completion` ignores a `Full` refusal when it
re-queues a turn.
yansfil added a commit that referenced this pull request Oct 6, 2026
…t as the folder a created tab was born for (#573)

Closes #461
Related: follows #449 and #420

## Summary

A new pane reports the cwd its shell was born in until it enters the
start folder, and #449 made every reader see the folder a Hide-created
tab was created for until then.
This goes through the cases #449 left out of scope: each has a core test
that fixes the expected behavior, and where the behavior was wrong it is
fixed.

| Case from #461 | Wrong today? | Result |
| --- | --- | --- |
| Birth cwd inside a linked worktree nested below the checkout | Yes:
counted as inside the outer checkout, so the clamp ended at once | A
folder in another worktree of the checkout's own repository is not the
outer checkout's; the tab stays clamped until a pane reports the
checkout proper |
| A device's first tab of a worktree it created | Yes: not recorded, so
it sat under the birth cwd's project | Recorded from the device's
`worktree.create` answer, like a local one |
| Device paths compared with local file system rules | Yes: a link on
this machine made a device's sibling folder look like the checkout |
Compared by names (`hide_platform::path::wire_relative`) |
| Device acknowledgment after the session carried the tab | Yes: waited
for the device's next publish | The stored session is clamped for the
new record and regrouped at once |
| Herdr path spelling | No | Probed against the pinned 0.9.1: a link
plus trailing `/` is answered resolved, no separator; the comparison
reads both sides as the folder, test pins both directions |
| 30 s window on `SystemTime` | Fragile: a wall-clock step ends it early
| Monotonic `birth_clock`, injected in tests; no wall-clock wait |

## Review

- **판단해 주세요**: known limit, documented in `docs/ARCHITECTURE.md`: a tab
born inside a nested worktree before the catalog has listed it settles
at once and the latch is not undone when the list arrives, because a
settled record must not hide a later `cd`.
- **판단해 주세요**: a device checkout recorded through a link the device
resolves does not settle by path (names only), so it is believed when
the 30 s window ends and logged as `created_tab.cwd_unsettled`. I took
that over the local-file-system false positives.
- **조심해서 볼 파일**:
- `herdr-core/src/runtime/session.rs` - runtime mutex: the checkout is
read once when the tab is recorded and the catalog's worktrees once when
the catalog arrives (`local_worktree_paths`); a session reads each pane
cwd once and compares nested worktrees by names, so there is no lookup
per nested worktree. A device acknowledgment calls
`refresh_device_catalog` once when the session already has the tab.
- `herdr-core/src/session_sync/coordinator.rs` - high-frequency path:
only the filter type changed.
- `herdr-core/src/runtime/agents.rs` is untouched; the device
acknowledgment path goes through `record_created_device_tab`.
- **비용 검토**: per session, clamps are built once and cost string
comparisons over the owning repository's worktrees for at most 64
unsettled records, plus one file system read per pane and agent cwd of
those tabs (two before). The catalog arrival reads each worktree path
once. No new timers or threads.

## Evidence

- **확인한 것**:
- 8 new or rewritten core tests in `runtime/tests/birth_cwd.rs` and
`device_catalog.rs`. On current main, 3 failed (nested worktree, device
first tab, late acknowledgment); the device-path, second-acknowledgment
and device-nested tests were then made to fail without their fix by
mutation (clamp disabled, one record, empty nested list), and pass with
it.
- Herdr spelling measured on a private pinned Herdr server with an
isolated HOME and socket: `workspace.create` and `tab.create` with
`<link>/proj/` answered the resolved path without the trailing `/`.
- `scripts/verify-cargo.sh test-scoped -p herdr-core`: 1454 passed;
`clippy -p herdr-core --all-targets -D warnings` and `fmt-check` clean;
workstation-identity and harness-anchor checks pass.
- One code-review subagent and the lead's review: fixed a second
acknowledgment settling the first tab, lookups per nested worktree under
the lock, a link-spelled checkout missing its nested worktrees, other
repositories counted as nested, device paths rewritten with this
machine's rules, a repeated acknowledgment restarting a record, and the
device window settling a tab with no pane; two weak tests were
strengthened and the tests for the rest fail under a mutation of their
fix.
- **확인하지 못한 것**:
- No native, Linux or Windows run, and no live device; device paths are
covered by the core fixture and a table test of Windows-style spellings
only.
- What a Windows or differently cased device Herdr emits for a cwd was
not observed; names compare exactly.
- Whether `refresh_device_catalog` after an acknowledgment drops the
request overlay `ingest_remote_session` lays (`lay_remote_requests`) was
not checked; other callers share the pattern.
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