Skip to content

Send a device listing that needs helper consent to Settings instead of Retry - #147

Merged
yansfil merged 1 commit into
mainfrom
fix/device-helper-settings-link
Sep 25, 2026
Merged

yansfil merged 1 commit into
mainfrom
fix/device-helper-settings-link

Conversation

@yansfil

@yansfil yansfil commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

Summary

원격 기기의 helper 동의가 없을 때 Explorer에 "This checkout could not be listed: Allow Hide's helper on this device in Settings…"와 함께 Retry가 떴습니다.
동의 없이는 Retry가 결과를 바꿀 수 없으므로, 그 상태(not_allowed, identity_changed)에서는 Retry 대신 Open Settings를 보여주고 Settings를 Devices 탭으로 엽니다.
Settings에서 Allow 후 helper가 ready가 되면 기존 로직대로 Explorer가 목록을 다시 읽습니다.

Review

  • 판단해 주세요: 버튼 문구 "Open Settings"; unsupported(helper가 빌드에 없음)는 Settings도 답이 아니라서 Retry로 남겼습니다.
  • 조심해서 볼 파일: web/src/ui.ts - Settings가 열릴 탭을 UI 스토어에 두고 openSettings()의 기본값은 기존대로 General.

Evidence

  • 확인한 것: helperNeedsSettings 단위 테스트(5 상태), web typecheck, lint, vitest 285개 통과, check-design-contract.mjs 통과.
  • 확인하지 못한 것: 동의 없는 기기를 붙인 브라우저에서 버튼과 탭 이동을 직접 눌러보지 않았습니다. 실제 기기(mini)는 이미 동의를 준 상태여서 재현하려면 격리된 hided가 필요합니다.

AI tooling: 대부분 AI 도구; 변경 diff와 Explorer의 ready 재조회 로직을 손으로 대조.

…f Retry

Retry could not change the answer while the device's helper was not allowed
or its identity changed; the Explorer now offers Open Settings, which opens
the sheet on the Devices tab.
@yansfil
yansfil merged commit 2dd542a into main Sep 25, 2026
6 checks passed
@yansfil
yansfil deleted the fix/device-helper-settings-link branch September 25, 2026 15:56
yansfil added a commit that referenced this pull request Sep 25, 2026
…ts, Light and Dark themes (#150)

Related: PRD `agents/prd/web-design-system-reset/prd.md` · 이 브랜치에
main(#147, #148)을 merge했습니다

## Summary

- 웹 셸의 컨트롤이 화면마다 손으로 만든 구현이라 모양과 키보드 동작이 제각각이었고, 테마는 Dark 하나뿐이었습니다.
- 토큰을 `design/tokens.json` 하나로 모으고 Tailwind v4(`@theme static`)로 옮겨
Dark와 Light 값을 함께 둡니다.
- 버튼, 메뉴, 다이얼로그, 팔레트, 툴팁을 shadcn/Radix System part 21개로 교체하고 dev 전용
`/gallery`에 모았습니다.
- Settings > Appearance에서 System/Light/Dark와 accent를 고르면 셸, 터미널, 에디터가
새로고침 없이 바뀝니다.
- Pen 라이브러리를 토큰에서 다시 만들고, 웹 화면 8개를 `design/hide-screens.pen`으로 옮기는
transplant 절차를 더했습니다.

![Light 테마의 Workspace: 터미널, 에디터, Explorer가 같은 토큰으로
그려집니다](https://github.com/yansfil/pr-assets/blob/main/hide/web-design-system-reset/4fc4d9d/workspace-light.png?raw=true)

![같은 화면의 Dark
테마](https://github.com/yansfil/pr-assets/blob/main/hide/web-design-system-reset/4fc4d9d/workspace-dark.png?raw=true)

![Settings > Appearance: System/Light/Dark와 accent
선택](https://github.com/yansfil/pr-assets/blob/main/hide/web-design-system-reset/4fc4d9d/appearance-light.png?raw=true)

## Review

- **판단해 주세요 (B17)**: 밀도 medium(control 24/28/32, 본문 12)과 Light 팔레트 값을 잠든
사이 권장값으로 채택했습니다.
- **판단해 주세요 (B18)**: Component 33개 중 Swift 전용이 확실한 `Terminal attachment
notice` 하나만 지우고 경계 6개는 남겼습니다.
- **판단해 주세요 (B24)**: 화면 28개의 before/after(Dark, Light)와 gallery-Pen 비교는
로컬 `compare.html`에서 봅니다.
- **판단해 주세요**: Pen Button의 Pending 스피너가 없고, Dark의 Secondary label 색이 웹과
다릅니다. 이대로 둘지.
- **조심해서 볼 파일**: `herdr-core/src/{model,persistence,runtime}.rs` -
`ui_state.theme` 저장과 snapshot wire, 모르는 값은 Dark+진단.
- **조심해서 볼 파일**: `web/src/components/ui/layer.ts`, `web/src/keyboard.ts`
- Escape 소유자 하나와 포커스 복귀, failure path.
- **조심해서 볼 파일**: `web/src/components/ui/tooltip.tsx` - press 뒤 툴팁 억제
상태기계, 두 번 고쳤습니다.
- **조심해서 볼 파일**: `web/src/editor/theme.ts` - 열린 에디터를 Compartment로
재테마합니다(high-frequency 아님, 테마 전환 때만).
- **질문**: 사이드바 row를 우클릭해 연 메뉴가 닫히면 포커스가 터미널이 아닌 row로 갑니다. 기존 `Menu.tsx`
동작 그대로인데 B9가 이것까지 요구하나요?
- **질문**: Light에서 accent 라벨이 저장값 `#B9FF66`을 보여주지만 swatch는 Light 값으로
그려집니다. 라벨도 바꿀까요?

## Evidence

- **확인한 것**: merge head에서 vitest 297, Playwright e2e 58/58(격리 Herdr와
hided), node script test 51/51이 통과합니다.
- **확인한 것**: `sasu implement verify`가 cargo test, Swift test, cargo
lint를 돌려 PASS를 냈습니다.
- **확인한 것**: design contract(check-pen, check-pen-gallery,
check-web-tokens, check-hide-screens)는 working tree와 `--staged` 모두
통과합니다.
- **확인한 것**: accent 4개 x 테마 2개의 primary 버튼 대비가 4.5:1 이상임을
`theme.test.ts`가 tokens.json 값으로 계산합니다.
- **확인한 것**: 테마 전환 뒤에도 터미널 요소, 내용, 입력 중인 줄이 그대로이고, 열린 에디터는 새로 연 Light
에디터와 같게 그려집니다(e2e).
- **확인한 것**: press로 연 메뉴를 Escape로 닫아도 트리거 툴팁이 다시 뜨지 않습니다(s6 e2e, 고치기 전
코드에서 실패 확인).
- **확인한 것**: `HideTheme.swift`는 base와 byte 단위로 같고, `tailwind.config.js`와
postcss 설정은 없습니다.
- **확인하지 못한 것**: B17, B18, B24는 사람 승인 대상인데 권장값을 채택해 두었을 뿐 아직 승인받지 않았습니다.
- **확인하지 못한 것**: 설치 앱의 실제 창에서 본 적은 없습니다. 캡처는 격리 서버 위 Chromium입니다.
- **확인하지 못한 것**: pane close 확인 화면(캡처 17)은 fixture가 그 상태에 닿지 못해 비교에서
빠졌습니다.
- **확인하지 못한 것**: `Hint`의 blur 판정은 Chromium에서만 확인했고 WebKit 계열에서는 보지
않았습니다.
- **생성물**: `design/hide-ui.lib.pen`(+39k/-13k)과
`design/hide-screens.pen`(새 파일)은 `gen-pen`/`gen-screens`가 쓴 결과입니다. 결과
이미지는 위 비교 자료에 있습니다.

**AI tooling**: 대부분 AI 도구. before/after 캡처, gallery와 Pen export, e2e
실패-통과 전환을 사람이 볼 수 있게 남겨 대조했습니다.

<details><summary>Verification record</summary>

- PRD: `agents/prd/web-design-system-reset/prd.md` (sha256
90c3d10c2c86bc93c7494f79fab486b4132878238be5f1131c8d534d16139df7)
- Base 806c92f → head 4fc4d9d, verified 2026-09-25T20:36:38.122Z: PASS
- Verification report:
`agents/runs/web-design-system-reset/verification-report.json` and
`agents/runs/web-design-system-reset/verification-report.md`; source
fingerprint
15c685b96506162df143955dc8d3d47d4d04c7fbbb40fe82a3a1dd668d6c94ab
- Suites:
  - S1: GREEN `bash scripts/verify-cargo.sh test` (exit 0)
  - S2: GREEN `bash scripts/verify-swift.sh test` (exit 0)
  - S3: GREEN `bash scripts/verify-cargo.sh lint` (exit 0)
- Reviews:
- Fidelity: 95f3459 no Fix now; f33d650 no Fix now (follow-ups:
approvals README Hint wording updated, editor theme-follow promoted to
e2e); a69c546 no Fix now; 4fc4d9d (merge) no Fix now.
- Code: 95f3459 Fix now 6 - approvals delegated (morning review items
above), pen-transplant descendants collision fixed eb01083, ContextMenu
focus return rejected (pre-change Menu.tsx behavior, B9 preserve;
question above), stale doc paths fixed c0a437f/f33d6500, enforcement
gate row restored f33d650, Hint refocus fixed 497aedb with s6
regression; f33d650 Fix now 1 - editor theme-follow coverage fixed
a69c546 (and per-editor style rules 6cd4351); a69c546 no Fix now;
4fc4d9d (merge) no Fix now.
- Follow-ups: RowMenu right-click focus/tooltip corner untested;
check-web-tokens scans comments and exempts .test.ts but not .test.tsx;
Tools.tsx keeps a parallel Escape path; sidebar.tsx `[var(--x)]` vs
`(--x)`; HideTheme.swift frozen guard is prose only; hand-typed ui_state
fields; `Tab / DESIGN.md` sample text in the library; classification
rows 20/21 lean on the unapproved browser-like-tab-sizing PRD; 6 kept
borderline masters; gen-screens has no orphan detection; the enforcement
meta-check is local only; Pen Pending spinner and Secondary label
differences.
- Flakes: agent-context-labels watcher and hide-agent-hooks install
tests failed once each under load, passed on rerun (crates this branch
does not touch).
- Evidence: 171 registered (110 screenshot, 37 image, 5 file, 19 log);
paths are local to the run directory
-
agents/runs/web-design-system-reset/captures/before-dark/01-main-with-project.png
-
agents/runs/web-design-system-reset/captures/before-dark/02-project-overview.png
-
agents/runs/web-design-system-reset/captures/before-dark/03-workspace-agents-terminal.png
-
agents/runs/web-design-system-reset/captures/before-dark/04-together-explorer-editor.png
-
agents/runs/web-design-system-reset/captures/before-dark/05-markdown-live.png
-
agents/runs/web-design-system-reset/captures/before-dark/06-sidebar-projects-mode.png
-
agents/runs/web-design-system-reset/captures/before-dark/07-sidebar-row-menu.png
-
agents/runs/web-design-system-reset/captures/before-dark/08-view-tab-menu.png
-
agents/runs/web-design-system-reset/captures/before-dark/09-explorer-row-context-menu.png
-
agents/runs/web-design-system-reset/captures/before-dark/10-explorer-inline-rename.png
-
agents/runs/web-design-system-reset/captures/before-dark/11-trash-confirmation.png
-
agents/runs/web-design-system-reset/captures/before-dark/12-palette-file.png
-
agents/runs/web-design-system-reset/captures/before-dark/13-palette-command.png
-
agents/runs/web-design-system-reset/captures/before-dark/14-shortcut-sheet.png
-
agents/runs/web-design-system-reset/captures/before-dark/15-narrow-tools-overlay.png
-
agents/runs/web-design-system-reset/captures/before-dark/16-notice-bar.png
-
agents/runs/web-design-system-reset/captures/before-dark/18-settings-general.png
-
agents/runs/web-design-system-reset/captures/before-dark/19-settings-appearance.png
-
agents/runs/web-design-system-reset/captures/before-dark/20-settings-agents.png
-
agents/runs/web-design-system-reset/captures/before-dark/21-settings-devices.png
-
agents/runs/web-design-system-reset/captures/before-dark/22-settings-shortcuts.png
-
agents/runs/web-design-system-reset/captures/before-dark/23-settings-devices-remove-confirm.png
-
agents/runs/web-design-system-reset/captures/before-dark/24-device-picker-open.png
-
agents/runs/web-design-system-reset/captures/before-dark/25-new-workspace-invalid-path.png
-
agents/runs/web-design-system-reset/captures/before-dark/26-new-worktree-dialog.png
-
agents/runs/web-design-system-reset/captures/before-dark/27-purpose-dialog.png
-
agents/runs/web-design-system-reset/captures/before-dark/28-delete-worktree-dialog.png
-
agents/runs/web-design-system-reset/captures/before-dark/29-remove-project-dialog.png
-
agents/runs/web-design-system-reset/captures/before-dark/30-sessions-screen.png
-
agents/runs/web-design-system-reset/captures/after-dark/19-settings-appearance.png
-
agents/runs/web-design-system-reset/captures/after-dark/21-settings-devices.png
-
agents/runs/web-design-system-reset/captures/after-dark/22-settings-shortcuts.png
-
agents/runs/web-design-system-reset/captures/after-dark/30-sessions-screen.png
-
agents/runs/web-design-system-reset/captures/after-light/19-settings-appearance.png
-
agents/runs/web-design-system-reset/captures/after-light/21-settings-devices.png
-
agents/runs/web-design-system-reset/captures/after-light/22-settings-shortcuts.png
-
agents/runs/web-design-system-reset/captures/after-light/30-sessions-screen.png
-
agents/runs/web-design-system-reset/approvals/gallery/gallery-alert-dialog.png
-
agents/runs/web-design-system-reset/approvals/gallery/gallery-badge.png
-
agents/runs/web-design-system-reset/approvals/gallery/gallery-button.png
-
agents/runs/web-design-system-reset/approvals/gallery/gallery-checkbox.png
-
agents/runs/web-design-system-reset/approvals/gallery/gallery-command.png
-
agents/runs/web-design-system-reset/approvals/gallery/gallery-context-menu.png
-
agents/runs/web-design-system-reset/approvals/gallery/gallery-dialog.png
-
agents/runs/web-design-system-reset/approvals/gallery/gallery-dropdown-menu.png
-
agents/runs/web-design-system-reset/approvals/gallery/gallery-input.png
- agents/runs/web-design-system-reset/approvals/gallery/gallery-kbd.png
-
agents/runs/web-design-system-reset/approvals/gallery/gallery-popover.png
-
agents/runs/web-design-system-reset/approvals/gallery/gallery-radio-group.png
-
agents/runs/web-design-system-reset/approvals/gallery/gallery-select.png
-
agents/runs/web-design-system-reset/approvals/gallery/gallery-separator.png
-
agents/runs/web-design-system-reset/approvals/gallery/gallery-sheet.png
-
agents/runs/web-design-system-reset/approvals/gallery/gallery-slider.png
-
agents/runs/web-design-system-reset/approvals/gallery/gallery-sonner.png
-
agents/runs/web-design-system-reset/approvals/gallery/gallery-switch.png
- agents/runs/web-design-system-reset/approvals/gallery/gallery-tabs.png
-
agents/runs/web-design-system-reset/approvals/gallery/gallery-toggle-group.png
-
agents/runs/web-design-system-reset/approvals/gallery/gallery-tooltip.png
-
agents/runs/web-design-system-reset/approvals/pen/component-explorer-file-menu.png
- agents/runs/web-design-system-reset/approvals/pen/component-keycap.png
-
agents/runs/web-design-system-reset/approvals/pen/component-panel-tab.png
-
agents/runs/web-design-system-reset/approvals/pen/component-project-row.png
-
agents/runs/web-design-system-reset/approvals/pen/component-relationship-action.png
-
agents/runs/web-design-system-reset/approvals/pen/component-view-area-states.png
-
agents/runs/web-design-system-reset/approvals/pen/component-view-tab-menu.png
  - agents/runs/web-design-system-reset/approvals/pen/foundations.png
-
agents/runs/web-design-system-reset/approvals/pen/system-alert-dialog.png
  - agents/runs/web-design-system-reset/approvals/pen/system-badge.png
  - agents/runs/web-design-system-reset/approvals/pen/system-button.png
- agents/runs/web-design-system-reset/approvals/pen/system-checkbox.png
  - agents/runs/web-design-system-reset/approvals/pen/system-command.png
-
agents/runs/web-design-system-reset/approvals/pen/system-context-menu.png
  - agents/runs/web-design-system-reset/approvals/pen/system-dialog.png
-
agents/runs/web-design-system-reset/approvals/pen/system-dropdown-menu.png
  - agents/runs/web-design-system-reset/approvals/pen/system-input.png
  - agents/runs/web-design-system-reset/approvals/pen/system-kbd.png
  - agents/runs/web-design-system-reset/approvals/pen/system-popover.png
-
agents/runs/web-design-system-reset/approvals/pen/system-radio-group.png
  - agents/runs/web-design-system-reset/approvals/pen/system-select.png
- agents/runs/web-design-system-reset/approvals/pen/system-separator.png
  - agents/runs/web-design-system-reset/approvals/pen/system-sheet.png
  - agents/runs/web-design-system-reset/approvals/pen/system-slider.png
  - agents/runs/web-design-system-reset/approvals/pen/system-sonner.png
  - agents/runs/web-design-system-reset/approvals/pen/system-switch.png
  - agents/runs/web-design-system-reset/approvals/pen/system-tabs.png
-
agents/runs/web-design-system-reset/approvals/pen/system-toggle-group.png
  - agents/runs/web-design-system-reset/approvals/pen/system-tooltip.png
-
agents/runs/web-design-system-reset/approvals/screens/screen-dialogs.png
- agents/runs/web-design-system-reset/approvals/screens/screen-main.png
- agents/runs/web-design-system-reset/approvals/screens/screen-menus.png
-
agents/runs/web-design-system-reset/approvals/screens/screen-palette.png
-
agents/runs/web-design-system-reset/approvals/screens/screen-project-overview.png
-
agents/runs/web-design-system-reset/approvals/screens/screen-sessions.png
-
agents/runs/web-design-system-reset/approvals/screens/screen-settings.png
-
agents/runs/web-design-system-reset/approvals/screens/screen-workspace.png
-
agents/runs/web-design-system-reset/approvals/component-classification.md
  - agents/runs/web-design-system-reset/approvals/compare.html
  - agents/runs/web-design-system-reset/suite-logs/cargo-test-2.log
  - agents/runs/web-design-system-reset/suite-logs/cargo-lint.log
  - agents/runs/web-design-system-reset/suite-logs/swift-test.log
  - agents/runs/web-design-system-reset/suite-logs/flakes.md
-
agents/runs/web-design-system-reset/evidence/hint-after-press/before.png
-
agents/runs/web-design-system-reset/evidence/hint-after-press/after.png
  - agents/runs/web-design-system-reset/pen-duplicate-ids.md
  - agents/runs/web-design-system-reset/e2e-final/typecheck.log
  - agents/runs/web-design-system-reset/e2e-final/lint.log
- agents/runs/web-design-system-reset/suite-logs/node-gates-f33d6500.log
  - agents/runs/web-design-system-reset/evidence/editor-theme/result.txt
  - agents/runs/web-design-system-reset/reviews/round1-dispositions.md
  - agents/runs/web-design-system-reset/approvals/README.md
  - agents/runs/web-design-system-reset/reviews/round1-fidelity.md
  - agents/runs/web-design-system-reset/reviews/round1-code.md
  - agents/runs/web-design-system-reset/reviews/round2-fidelity.md
  - agents/runs/web-design-system-reset/reviews/round2-code.md
  - agents/runs/web-design-system-reset/reviews/round3-code.md
-
agents/runs/web-design-system-reset/captures/after-dark/01-main-with-project.png
-
agents/runs/web-design-system-reset/captures/after-dark/02-project-overview.png
-
agents/runs/web-design-system-reset/captures/after-dark/03-workspace-agents-terminal.png
-
agents/runs/web-design-system-reset/captures/after-dark/04-together-explorer-editor.png
-
agents/runs/web-design-system-reset/captures/after-dark/05-markdown-live.png
-
agents/runs/web-design-system-reset/captures/after-dark/06-sidebar-projects-mode.png
-
agents/runs/web-design-system-reset/captures/after-dark/07-sidebar-row-menu.png
-
agents/runs/web-design-system-reset/captures/after-dark/08-view-tab-menu.png
-
agents/runs/web-design-system-reset/captures/after-dark/09-explorer-row-context-menu.png
-
agents/runs/web-design-system-reset/captures/after-dark/10-explorer-inline-rename.png
-
agents/runs/web-design-system-reset/captures/after-dark/11-trash-confirmation.png
-
agents/runs/web-design-system-reset/captures/after-dark/12-palette-file.png
-
agents/runs/web-design-system-reset/captures/after-dark/13-palette-command.png
-
agents/runs/web-design-system-reset/captures/after-dark/14-shortcut-sheet.png
-
agents/runs/web-design-system-reset/captures/after-dark/15-narrow-tools-overlay.png
-
agents/runs/web-design-system-reset/captures/after-dark/16-notice-bar.png
-
agents/runs/web-design-system-reset/captures/after-dark/18-settings-general.png
-
agents/runs/web-design-system-reset/captures/after-dark/20-settings-agents.png
-
agents/runs/web-design-system-reset/captures/after-dark/23-settings-devices-remove-confirm.png
-
agents/runs/web-design-system-reset/captures/after-dark/24-device-picker-open.png
-
agents/runs/web-design-system-reset/captures/after-dark/25-new-workspace-invalid-path.png
-
agents/runs/web-design-system-reset/captures/after-dark/26-new-worktree-dialog.png
-
agents/runs/web-design-system-reset/captures/after-dark/27-purpose-dialog.png
-
agents/runs/web-design-system-reset/captures/after-dark/28-delete-worktree-dialog.png
-
agents/runs/web-design-system-reset/captures/after-dark/29-remove-project-dialog.png
-
agents/runs/web-design-system-reset/captures/after-light/01-main-with-project.png
-
agents/runs/web-design-system-reset/captures/after-light/02-project-overview.png
-
agents/runs/web-design-system-reset/captures/after-light/03-workspace-agents-terminal.png
-
agents/runs/web-design-system-reset/captures/after-light/04-together-explorer-editor.png
-
agents/runs/web-design-system-reset/captures/after-light/05-markdown-live.png
-
agents/runs/web-design-system-reset/captures/after-light/06-sidebar-projects-mode.png
-
agents/runs/web-design-system-reset/captures/after-light/07-sidebar-row-menu.png
-
agents/runs/web-design-system-reset/captures/after-light/08-view-tab-menu.png
-
agents/runs/web-design-system-reset/captures/after-light/09-explorer-row-context-menu.png
-
agents/runs/web-design-system-reset/captures/after-light/10-explorer-inline-rename.png
-
agents/runs/web-design-system-reset/captures/after-light/11-trash-confirmation.png
-
agents/runs/web-design-system-reset/captures/after-light/12-palette-file.png
-
agents/runs/web-design-system-reset/captures/after-light/13-palette-command.png
-
agents/runs/web-design-system-reset/captures/after-light/14-shortcut-sheet.png
-
agents/runs/web-design-system-reset/captures/after-light/15-narrow-tools-overlay.png
-
agents/runs/web-design-system-reset/captures/after-light/16-notice-bar.png
-
agents/runs/web-design-system-reset/captures/after-light/18-settings-general.png
-
agents/runs/web-design-system-reset/captures/after-light/20-settings-agents.png
-
agents/runs/web-design-system-reset/captures/after-light/23-settings-devices-remove-confirm.png
-
agents/runs/web-design-system-reset/captures/after-light/24-device-picker-open.png
-
agents/runs/web-design-system-reset/captures/after-light/25-new-workspace-invalid-path.png
-
agents/runs/web-design-system-reset/captures/after-light/26-new-worktree-dialog.png
-
agents/runs/web-design-system-reset/captures/after-light/27-purpose-dialog.png
-
agents/runs/web-design-system-reset/captures/after-light/28-delete-worktree-dialog.png
-
agents/runs/web-design-system-reset/captures/after-light/29-remove-project-dialog.png
  - agents/runs/web-design-system-reset/e2e-final/e2e.log
  - agents/runs/web-design-system-reset/e2e-final/unit.log
  - agents/runs/web-design-system-reset/reviews/dispositions.md
  - agents/runs/web-design-system-reset/reviews/round3-fidelity.md
  - agents/runs/web-design-system-reset/reviews/round4-code.md
- agents/runs/web-design-system-reset/suite-logs/node-gates-4fc4d9d4.log
- Changed paths: 159 (see Files changed)

</details>
yansfil added a commit that referenced this pull request Oct 28, 2026
Closes with-hide/hide-private#147
Closes with-hide/hide-private#270
Closes with-hide/hide-private#161
Closes with-hide/hide-private#122
Closes with-hide/hide-private#168
Closes with-hide/hide-private#172
Closes with-hide/hide-private#195
Closes with-hide/hide-private#197

## Summary

Five of the most frequent web e2e flakes are fixed at their cause, and
one of them was a product race.
When a folder inside a repository was added as a project, one update
could draw it apart from its repository, with no tabs and under "No
agents", for about 10 ms.
The core now builds that update from path answers that already place the
new project.
The other four were tests that waited on the wrong thing, and four more
issues with the same tab failure close with them.
#287 needed no code, because its spec was deleted with Factory in #1437.

스크린샷 없음: no `web/src`, `site/` or `design/` change; the only product
change is in the core's catalog build.

## Review

- **판단해 주세요**: #270 is fixed in the core, not in the test helper. The
in-between update was wrong (the project shown apart from its
repository, empty, under No agents), so `showProjectRow` is unchanged.
- **판단해 주세요**: the graph still remounts every card when it switches from
plain layers to the placed layout. The switch waits on the asynchronous
layout worker, up to `LAYOUT_TIMEOUT_MS` (3000 ms), so a click in that
window can be lost. This PR only makes the test wait for `layered`; the
product defect is with-hide/hide-private#317.
- **판단해 주세요**: the #122 test now opens the record by focusing the row
(`focus-within`), so it checks the focus path and no longer checks the
hover reveal.
- **조심해서 볼 파일**: `herdr-core/src/session_sync/coordinator.rs`, the
catalog build on the session-sync thread (high-frequency path). The
change only chooses between two path indexes already in hand. When the
coordinator's own answers place every registration (the usual case),
nothing changes.
- **비용 검토**: each update adds one `knows()` lookup per local
registration on at most two indexes, with no new reads, timers or
fan-out.

## Evidence

- **확인한 것**: the 8 tests behind these issues passed 20 repeats each on
42aa932 (160 passed, 0 failed). This is evidence for 42aa932; the
commit after it changes docs only.
- **확인한 것**: a scratch probe (not committed) that read the wire frames
reproduced the #270 update before the fix and saw 0 of 31 after it.
- **확인한 것**: the new core unit test proves that a pending answer makes
the catalog build from the path index that places every registration. It
does not prove the screen frame; the probe above is the screen-level
evidence.
- **확인한 것**: CI on 7d6ee3b passed in every lane that ran, and no lane
reported a flaky test.
- **확인하지 못한 것**: clippy and the full Rust and web suites did not run
locally (the disk had 0.8-1.8 GiB free); CI ran them. The Windows form
of #161 is checked only in CI.

<details><summary>Verification record</summary>

**Issues**

| Issue | Flakes | Cause | Fix |
| --- | --- | --- | --- |
| #270 s4 registered subfolder History | 17 | Product: while the node's
path answer was pending, the coordinator built the catalog from answers
that predate the new registration and overwrote the creation's correct
publish; the helper then clicked the vanished fold |
`paths_to_build_from` in the coordinator |
| #147 plan-review | 24 | The graph draws cards in plain layers, then
mounts them anew once placed; `boundingBox()` read a removed card
(`null`) | Wait for `data-dependency-layout="layered"` (`placedBoxes`);
mission-map had the same read |
| #161 checkout-owner linked worktree | 15 | `waitForTerminal` took the
strip's selected tab as the expectation; the canvas drew the new tab
while the strip still selected the old one | The expected tab comes from
Herdr (`createdTabs`), all 9 callers |
| #168 #172 #195 #197 | - | Same `Expected: old tab / Received: new tab`
signature, same helper | Same fix |
| #122 session-work-ledger report letter | 1 | Hover-only record button:
a child nesting under the root moved the row away from a still pointer |
Reveal the buttons by focusing the row (`focus-within`) |
| #287 Factory questions | 21 | The spec was deleted with Factory in
#1437 (cc80696) | Closed with that evidence, no code |

**Repeat run (c2)**

- Commit: 42aa932 (head 7d6ee3b adds docs only).
- Machine: macOS, one worker, debug hided with the core fix, pinned
Herdr 0.9.5.
- Command: `scripts/verify-web.sh web e2e e2e/plan-review.spec.ts
e2e/mission-map.spec.ts e2e/checkout-owner.spec.ts e2e/s4.spec.ts
e2e/session-work-ledger.spec.ts e2e/herdr-coexistence.spec.ts
e2e/last-tab-leaves-checkout.spec.ts e2e/s2.spec.ts --grep "<the 8
tests>" --repeat-each 20`
- Result: 160 passed, 0 failed, 19.4 min.
- The other tests the helper change touches (checkout-owner,
session-work-ledger, sidebar-menus, overview-device, s2 tab switch)
passed once each, 15 in all.

**#270 probe (not committed)**

- It logged the fold and the core's `no_agent_projects` from wire
frames, with the real test's Git setup.
- Before the fix, every batch of 12-20 runs (5 batches) had at least one
publish of `registered` at its bare path with 0 tabs beside `fixture`
and under No agents. One batch was counted exactly: 2 of 20.
- After the fix: 0 of 31.

**Static checks**

- `verify-cargo.sh test -p herdr-core --lib`:
`catalog_path_tests::a_pending_answer_builds_from_the_paths_that_place_every_registration`
passes.
- `web typecheck`, `web lint` (e2e size budget included) and `cargo fmt
--check` pass.

**CI on 7d6ee3b**

- Passed: verify, gate, plan, policy checks, rust workspace, web and
desktop checks, static-design, windows check, os contract linux and
windows, remote mailbox, web e2e linux 1-6 of 6, windows e2e, desktop
e2e macos 1-2 of 2, desktop e2e windows.
- Skipped by path filter: agent CLIs, agent journey, agy contract, omp
SDK contract, os contract macOS, package, windows wsl.
- No lane reported a flaky test.

</details>
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