Skip to content

Agent start: wait for the shell's first prompt, confirm and resend where it cannot, and say why a start failed - #995

Merged
yansfil merged 29 commits into
mainfrom
fix/agent-start-startup-question
Oct 12, 2026
Merged

yansfil merged 29 commits into
mainfrom
fix/agent-start-startup-question

Conversation

@yansfil

@yansfil yansfil commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary

새 창의 셸이 시작 질문(oh-my-zsh [Y/n])을 띄운 채 Herdr가 에이전트 명령을 치면, 첫 글자 c가 답으로 먹히고 셸이 laude를 실행합니다.
2026-10-12 build b70d00a3에서 Memory 올리기 m43/m72와 lead의 맡기기 세 번이 이렇게 실패했습니다.

  • 원인 1, 셸이 준비되기 전에 침: Herdr의 agent.start는 셸 상태와 상관없이 명령을 쳐 넣습니다.
  • 원인 2, m43 창에서 m72 지시가 실행됨: Herdr는 뜨지 못한 시작의 이름을 120초 동안 잡고, 그 창에 나타나는 아무 에이전트에나 붙입니다.
    m72 줄은 운영자가 m43 창에서 셸 기록으로 다시 실행한 명령이었고, Herdr가 그것을 m43의 이름에 묶었습니다.
  • 원인 3, 도는 에이전트를 채택하지 않음: 재요청이 "이름은 잡혀 있고 셸만 있음"을 실패로 답해, 에이전트가 도는 시도가 5분 뒤 실패했습니다.
  • 고침: Hide가 에이전트 탭을 열 때 tab.create 대신 layout.apply에 셸 실행 인자를 넘깁니다(PRD D-14).
    zsh는 ZDOTDIR, bash는 --init-file, fish는 -C, Windows PowerShell은 -NoExit -Command로 사용자 설정을 먼저 읽고, 첫 프롬프트에서 창 토큰 hide_prompt를 남깁니다.
    Hide는 그 토큰을 본 뒤에만 칩니다. 질문에 멈춘 셸은 30초 뒤 shell_starting과 질문 한 줄로 실패합니다.
  • 통합이 없는 창(다른 셸, split fork)은 Herdr가 이름을 놓고 셸이 혼자일 때 한 번만 다시 칩니다(D-05).
  • Memory: 실패 이유를 카드의 PR 없이 끝남 자리에 보여 주고, 커밋 없는 실패 시도는 창, worktree, 브랜치를 정리합니다(B11).

화면 변경은 Memory 실패 카드의 상태 한 줄뿐입니다: 셸이 질문에서 멈춤: [oh-my-zsh] Would you like to update? [Y/n].
배너나 버튼은 늘지 않았습니다. dev gallery ?scene=memory&state=start_failed에서 볼 수 있습니다.

Review

  • 판단해 주세요: 알려진 한계 네 가지를 받아들일지입니다.
    • Hide가 만든 에이전트 탭은 Herdr의 default_shell·shell_mode 설정을 따르지 않고 계정 셸을 씁니다. Herdr 설정을 읽는 API가 없습니다.
    • bash 창은 --init-file이라 shopt login_shell이 꺼져 있고 .bash_logout이 돌지 않습니다.
    • Herdr 서버를 다시 켜면 Hide 탭은 이름과 폴더를 지닌 채 Herdr 기본 셸로 돌아오고 통합은 없습니다.
    • split fork와 zsh·bash·fish·PowerShell 밖의 셸은 D-05(확인 뒤 한 번 다시 치기)만 받습니다.
    • rc가 같은 셸을 exec zsh로 다시 띄우면 표시가 오지 않아 30초 뒤 shell_starting으로 끝납니다. 다른 셸(exec fish)은 표시를 기다리지 않습니다.
  • 판단해 주세요: 실패한 Memory 시도를 정리할 때 그 worktree 안의 일반 셸 창(운영자가 연 것 포함)도 닫습니다. 에이전트나 Herdr가 잡은 이름이 있으면 아무것도 닫지 않습니다.
  • 판단해 주세요: 실패 문구(4개 언어)와 질문 대기 30초(SHELL_WAIT)입니다.
  • 조심해서 볼 파일:
    • hide-host/src/shell_integration/*.zsh, *.bash - 사용자 셸 시작 경로입니다. 순서가 틀리면 창의 환경이 달라집니다.
    • hide-host/src/shell_integration.rs - PowerShell 줄은 Herdr 0.9.3 src/pane.rs의 프롬프트 감싸기 사본입니다. Herdr를 올릴 때 같이 봐야 합니다.
    • herdr-core/src/live.rs, coordination/executor.rs - Herdr contract: layout.apply의 tab_id로 worktree.create의 첫 탭을 바꿉니다.
    • herdr-core/src/agent_start.rs - 시작 대기와 다시 치기 판단입니다. Herdr의 이름 보유 동작(계약 밖)에 기댑니다.
    • herdr-core/src/runtime/memory_promotion.rs - failure path: 실패 시도 정리가 worktree와 브랜치를 discard로 지웁니다. 프로젝트가 있는 기기에서만, 에이전트가 시작되지 않았다는 답일 때만 돌고, 창을 닫은 뒤 커밋과 변경을 다시 봅니다.
    • hide-host/src/shell_integration.rs - 모든 에이전트 셸이 이 폴더의 파일을 읽습니다. 다른 계정이 바꿀 수 있거나 내용이 다른 폴더는 다시 씁니다.
    • hide-memory/src/store.rs - schema 10 migration(card_promotions.failure 열)입니다. Memory: keep fewer, verified cards and check them against the repository #1000(memory-card-quality)이 main에서 schema 9를 먼저 가져가 그 뒤로 옮겼고, 새 DB의 표는 #1000의 outdated 상태와 이 열을 함께 갖습니다. 이전 빌드는 schema 10 DB를 열지 않습니다.
    • main 병합(#1000과 겹침): memory_promotion.rs는 자동 병합됐고, Promotion 리터럴 세 곳에 failure를 넣었으며, 웹은 #1000의 human_session_count와 verifying 갤러리 상태를 이 PR의 start_failure, start_failed와 합쳤습니다. 문서 세 곳(ARCHITECTURE, UI_BEHAVIOR, DESIGN_WORKFLOW)도 두 쪽 문장을 합쳤습니다.
    • main 병합(Show what Hide AI started: a group in the project tree and a badge on the provider icon #1001, #1002와 겹침): hide-node-link/src/protocol.rs는 #1002가 28 안에 넣은 선택 필드(StreamOpen의 caller) 설명을 두고 이 PR의 29를 그 뒤에 둡니다. #1001의 SpawnTask는 spawn 기록의 별도 필드라 이 PR의 shell 필드, layout.apply 탭과 겹치지 않고, #1001의 새 테스트 하나에 shell: None을 넣었습니다.
    • contracts/snapshot-wire-enums.json, web/src/snapshot.ts - snapshot wire에 start_failure가 추가됩니다.
  • 비용 검토: 상시 경로 변화는 없습니다. 탭 생성마다 노드 호출 1회, 시작 대기 중 100ms마다 pane.get 1회(최대 30초)가 들고 모두 worker에서 Mutex<Runtime> 밖입니다.
  • 후속:
    • 웹의 새 worktree 시작은 첫 창이 웹 쪽 worktree.create에서 와서 통합 없이 남습니다. 이슈는 운영자 확인 뒤에 냅니다.
    • #1000의 outdated로 끝난 시도는 worktree를 정리하지 않습니다(에이전트가 아직 창에 있어 그 자리에서는 남깁니다). 문서의 "재시도가 worktree를 쌓지 않는다"는 실패한 시도에만 맞습니다. 에이전트가 끝난 뒤 정리하는 설계가 필요해 후속으로 둡니다.

Evidence

  • 확인한 것:
    • 고정 Herdr 0.9.3 격리 서버, 한 글자 질문을 띄우는 사용자 설정, agent_start::real_herdr_tests를 셸별로 돌렸습니다.
      • macOS(로컬)와 Linux CI: zsh, bash, fish. Windows CI: Windows PowerShell(프로필의 한 글자 질문).
      • m43은 새 워크스페이스의 첫 탭을 layout.apply의 tab_id로 바꿔 열고(새 worktree와 같은 경로, B8), 탭 하나만 남는 것을 확인합니다.
      • 창 두 개를 연달아 열면 두 시작 모두 shell_starting(질문 줄)이고 친 글자는 없으며, 운영자의 활성 탭은 그대로입니다(B1, B2).
      • 답한 뒤 각 창이 자기 지시(promote m43/m72)로 자기 이름에 뜹니다. 서버 재시작 뒤 탭 이름이 남습니다.
      • 같은 fixture의 plain 탭에서는 질문이 c를 먹습니다(사고 재현).
    • 실제 zsh 5.9, bash 5.2·3.2, fish에서 사용자 파일을 각 셸의 순서대로 읽고, ZDOTDIR가 원래 값(unset, export 포함)으로 돌아오고, 표시가 한 번만 남는 것을 확인했습니다(real_shell_tests, B3).
    • 재시도의 worktree(B11): 커밋 없는 실패 시도는 정리되고 재시도는 새 브랜치 하나를 씁니다. 커밋이 있으면 그 브랜치에서 이어 갑니다.
    • 재요청(B5): 이름 보유 중에는 치지 않고, 풀리고 셸이 혼자면 한 번 다시 치며, 두 번째도 못 뜨면 agent_not_started입니다.
    • 실패 카드 상태 줄을 ko/en, light/dark gallery(360px 폭)로 봤습니다.
    • herdr-core 2065개 테스트를 기본 셸과 SHELL=/bin/bash로, workspace lint를 macOS에서 통과했습니다. CI의 각 lane은 아래 기록에 있습니다.
  • 확인하지 못한 것:
    • 격리 HOME의 데몬과 화면으로 Memory 올리기 전체 흐름은 돌리지 않았습니다. 시작 경로는 실제 Herdr 테스트로만 봤습니다.
    • 연결된 기기(Mac mini)의 창은 확인하지 않았습니다(B9). 프로토콜 29 미만 helper는 통합 없이 D-05로 뜹니다.
    • Windows의 folder-follow는 테스트의 cd 한 번으로만 봤고, 실제 운영자 프로필에서는 확인하지 않았습니다.
    • 화면 캡처 이미지는 첨부하지 않았습니다. 위 gallery 경로에서 볼 수 있습니다.
리뷰와 처리
  • 리뷰 세 갈래(PRD 대조, 코드, 보안)를 3b8b40462에서, 후속 리뷰를 b173426, 743075e, 병합 2b12684e1에서 돌렸습니다. 마지막 두 리뷰의 Fix now는 없습니다.
  • 고친 것:
    • 같은 의도의 재요청이 통합 대기를 잃던 문제: spawn 기록에 띄운 셸을 남깁니다(remote_spawn::a_retry_of_an_integrated_spawn_still_waits_for_the_first_prompt, 수정 없이는 실패).
    • Windows에서 Herdr가 셸을 전체 경로(C:\...\powershell.exe)로 알려 통합 셸로 보지 못하고 질문에 치던 문제(Windows CI가 잡음).
    • rc의 exec fish처럼 다른 셸로 바뀌면 표시를 기다리지 않습니다.
    • Memory 실패 정리: 프로젝트가 있는 기기의 Herdr와 노드로만, 시작되지 않았다는 답일 때만, 행이 실제로 바뀐 때만 돌고, 에이전트가 있거나 창을 닫은 뒤 커밋이 생기면 남깁니다.
    • 질문 줄: 제어, 폭 없는, 방향 문자를 빼고 hide_memory::redact를 거친 뒤 자르며, 진단 로그에는 코드만 남깁니다.
    • 통합 폴더: 다른 계정이 바꿀 수 있거나 내용이 다르면 다시 쓰고, umask와 상관없이 0700/0600으로 쓰며, rename 전에 디스크에 씁니다. 정리는 Hide가 붙인 이름만 지웁니다.
    • hide describe의 spawn 거절 목록에 shell_starting을 넣었습니다.
  • 후속으로 남긴 것: Typed 기록이 효과 뒤에 남음(Herdr가 잡힌 이름으로 두 번째 시작을 거절해 안전), 코어가 노드의 답을 검증하지 않음, HERDR_BIN_PATH가 없을 때 D-05로 바꾸지 않고 30초 뒤 실패, 1시간 정리와 1시간 넘게 질문에 멈춘 셸.
Verification record
  • PRD: agent-start-shell-ready (D-01D-14, B1B12), 로컬 계약. base a6cee95(main), head ec26d1b.
  • 결정적 검증: scripts/verify-cargo.sh test와 lint PASS(ec26d1b, macOS). scripts/verify-web.sh PASS. scripts/check-design-contract.mjs PASS.
  • 실제 셸, 실제 Herdr: macOS 로컬(zsh 5.9, bash 3.2, fish), Linux CI(zsh, bash, fish), Windows CI(Windows PowerShell) 모두 통과. 통합 폴더 테스트는 umask 002와 022 둘 다 통과.
  • 리뷰: PRD 대조, 코드, 보안 리뷰(3b8b404) 뒤 후속 리뷰 세 번. b17342666의 Fix now 세 건(umask 002에서 폴더를 매번 다시 씀, 자른 뒤 가림, 남은 주석)을 고쳤고, 743075e01과 2b12684(병합)은 Fix now 없음.

zsh (ZDOTDIR) and fish (XDG_DATA_DIRS vendor_conf.d) read the user's own
startup files first, give the environment back, and report the pane token
hide_prompt once the first prompt is drawn. The node writes one folder per
version under ~/.hide/shell-integration and removes the others; protocol 29
adds the ShellIntegration call.
…he rest

A spawn or fork pane is started with the shell integration in its env and
the start waits for the prompt mark; a shell held by a startup question is
refused as shell_starting with its last screen line. A shell that cannot
take the integration (bash, sh, PowerShell, cmd) is confirmed after the
fact: the start is typed again once, only after Herdr released the name
with the shell alone, and otherwise fails as agent_not_started.
zsh panes whose startup file asks a one-key question: a start waits for the
first prompt's mark, types nothing while the question is open and names it;
after the answer each pane runs its own prompt under its own name. A plain
start in the same fixture answers the question with the command's first
letter, the incident. The rust lane runs it when the core changes.
…es back its worktree

The failed card keeps the spawn's answer (memory schema 9) and draws it as a
start failure: the question the new pane's shell stopped at, the agent that
never started, or another refusal. A failed attempt whose branch holds no
commit and whose worktree holds no change has its panes closed and its
worktree and branch removed; one that holds work is kept and the retry
continues on it, so retries never pile worktrees up.
The status slot that says the attempt ended without a pull request names
the question the new pane's shell stopped at, or that the agent did not
start, in the four interface languages. Retry stays the one action; the
gallery's start_failed state draws it.
…ctly, and keeps other builds' folders while in use

The node adds the integration only for an account whose shell is zsh or
fish, and carries the user's own ZDOTDIR and XDG_DATA_DIRS in
HIDE_SHELL_ZDOTDIR and HIDE_SHELL_XDG_DATA_DIRS. zsh reads the user's four
files at the top level in its own order with their own ZDOTDIR, and both
shells end with the values the user had, unset and export included.
Another build's folder is removed only after no pane was started with it
for an hour. Real zsh and fish tests, and the pinned-Herdr startup question
test in fish too, run in the rust lane's shell step.
…egration

The tab the web's new-agent start opens carries the integration that the node of the
machine that runs it writes, and its agent start waits for
the first prompt's mark; a tab Herdr had already, or a new worktree's
first pane, starts plain as before. The node's account shell facts live
on the host environment, so a test pins the shell its panes start.
fish starts its completion generator in the shell's own foreground group
when a startup question reads, so a start waiting on an unmarked fish saw a
busy terminal instead of a starting shell. The mark is now read first, and a
shell is taken as one the integration does not reach only once its name is
seen. The fish restore test compares against the same fish without Hide,
since a system vendor file (Ubuntu's snapd.fish) sets XDG_DATA_DIRS after
Hide's, and the real-Herdr test shows the pane's screen and processes when a
wait runs out.
…up-question

# Conflicts:
#	herdr-core/src/runtime/memory_promotion.rs
#	hide-kit/src/layout.rs
#	hide-node-link/src/protocol.rs
Every shell Hide would start from its own argv (zsh, bash and fish on
unix; Windows PowerShell, PowerShell 7 and cmd on Windows) gets a
real-Herdr test: a one-key question in the user's own startup files holds
two back-to-back starts with nothing typed, each start then runs its own
prompt under its own name, the operator's tab keeps the focus, and a
server restart is recorded. The Linux rust lane and the Windows check run
them; the start now waits for the mark of every one of these shells.
A tab Hide makes for an agent (spawn, fork in its own tab, the new-agent
tab, and a new worktree's first tab, which is replaced) now runs the
account's shell from a command the node answers, through Herdr's
layout.apply, the way VS Code starts its terminals: zsh with ZDOTDIR
naming Hide's files, bash with an init file that reads the user's files
in bash's own order, fish with an init command, and Windows PowerShell
with Herdr's own prompt wrapper and the mark inline. Each marks its first
prompt once the user's startup files are done, so a start in it types
nothing into a startup question. A shell started as Herdr would start it
by default is a login shell on macOS and not on Linux. Nothing of the
user's environment is changed but zsh's ZDOTDIR, which is given back;
the fish data folder and its environment are gone. A split fork and
other shells start as before and are confirmed after typing.
ARCHITECTURE's agent start section, the install guide's files table,
delivery and the contributing gate now name the command each shell is
started with, the login rule, what Hide-made tabs do not follow of Herdr's
shell settings, what a server restart brings back, and the PowerShell
prompt wrapper a Herdr bump moves along.
…s agent never started, and keep a question line's credentials out
…ccounts, sweep only Hide's own names, and quote zsh paths
yansfil added a commit that referenced this pull request Oct 12, 2026
… the provider icon (#1001)

Related: PRD `agents/prd/hide-ai-origin-mark/prd.md` · overlaps #995 and
the merged #1000 (see Review)

## Summary

- Hide AI가 띄운 에이전트(오늘은 Memory 카드 올리기)가 사이드바에서 운영자가 띄운 줄과 구분되지 않았습니다.
- 코어가 coordination 기록(Hide의 code-owned identity가 origin인 handoff)에서
"Hide AI가 시작함"과 일 이름(`memory_promote` + `m72`)을 읽어 스냅샷에 싣습니다. 브랜치 이름은 보지
않습니다.
- 프로젝트 트리에서는 Hide AI가 만든 체크아웃이 `Hide AI` 머리 아래 한 묶음으로 모이고, 줄이 혼자 서는
목록(Done, Sessions)에서는 제공자 아이콘에 11px Hide 배지와 `프로젝트 › 일 이름`이 붙습니다.

![Light: Hide AI head and count after the operator's checkouts, task
lines, and a Done row with the 11px badge and a project > task place
line](https://github.com/yansfil/pr-assets/blob/main/hide/hide-ai-origin-mark/19cd7d8/folded-light-sidebar.png?raw=true)

![Dark: the same
sidebar](https://github.com/yansfil/pr-assets/blob/main/hide/hide-ai-origin-mark/19cd7d8/folded-dark-sidebar.png?raw=true)

![Korean, narrowest sidebar: the long task ends with an ellipsis on one
line](https://github.com/yansfil/pr-assets/blob/main/hide/hide-ai-origin-mark/19cd7d8/truncation-ko-narrow-sidebar.png?raw=true)

## Review

- **판단해 주세요**: 11px 배지와 12px 머리가 읽히는지(위 캡처, 맛의 판단), `Hide AI` 묶음이 에이전트가
끝나고 정리 대상이 되면 사라지는 것(`UI_BEHAVIOR.md`에 적음)이 맞는지.
- **판단해 주세요**: PRD D-10은 기존 토큰만 쓰라 했지만 11/9px 크기에 맞는 토큰이 없어
`--size-hide-badge`, `--size-hide-badge-mark`를 token 절차로 추가했습니다.
- **판단해 주세요**: D-05(Sessions 탭도 배지)는 가정입니다. ⌘K, Overview 팝오버, Agents
그래프, Task boards는 배지를 달지 않았고 장소 줄이 브랜치입니다.
- **결정됨**: 운영자가 Conversation history 목록(`ProjectSessions`)에는 배지를 달지 않기로
했습니다. 배지는 도구 탭의 Sessions 목록에만 있습니다.
- **PRD와 다른 점**: 체크아웃 표시는 `CheckoutSnapshot` 필드가 아니라
`navigator.hide_ai_checkouts` 목록(device와 path 키)입니다. 체크아웃 줄이 여섯 곳에서 다시
만들어져 필드는 매번 사라집니다.
- **조심해서 볼 파일**: `herdr-core/src/coordination/started.rs` - ledger에서
파생하는 순수 함수, `publish_delivery`마다 호출(Hide 시작이 없으면 에이전트 한 번 훑고 끝).
- **조심해서 볼 파일**: `herdr-core/src/runtime/delivery.rs`,
`runtime/agents.rs` - snapshot wire(`SidebarAgentSnapshot.hide_ai`,
`navigator.hide_ai_checkouts`), 값이 같으면 publish하지 않습니다.
- **조심해서 볼 파일**: `herdr-core/src/coordination/mod.rs` -
`Command::Spawn.task`/`SpawnRecord.task`; Hide 자신의 handoff만 줄 수
있고(`task_reserved`), 같은 intent의 이전 기록(task 없음)은 task를 받아들여 업그레이드를 넘겨
수렴합니다.
- **비용 검토**: 입력/틱당 추가 일 없음. 파생은 ledger publish에서만, 값 비교 뒤 바뀔 때만 snapshot
갱신. 목록은 spawn 기록 수(`SPAWN_LIMIT` 4096)에 묶여 있고 정리하지 않은 기록은
남습니다(follow-up).
- **겹침**: #1000(memory-card-quality)이 먼저 머지되어(`memory_promotion.rs`,
`memory_analysis.rs`) main을 이 브랜치에 합쳤고(충돌 없음, `spawn_agent`의 `task` 한 칸은
그대로), 합친 head에서 cargo test와 lint, web typecheck, lint, 단위,
`hide-ai-origin` e2e를 다시 돌렸습니다. #995는 같은 파일을 건드리지만 `git merge-tree`로
깨끗하게 합쳐지고, 먼저 머지되면 rebase합니다.
- **질문**: 없음.

## Evidence

- **확인한 것**:
- 격리된 HOME, 상태 폴더, 고정 Herdr, 원격 없는 연습 저장소에서 후보 Electron 창을 찍음: 밝은/어두운
테마, 기본/최대 글자 크기, 접힌 체크아웃, 좁은 사이드바에서 한국어와 영어로 긴 일 이름이 한 줄에서 말줄임으로
끝남(computed style로 확인). 화면 캡처는 창의 renderer 캡처입니다.
- Playwright e2e `hide-ai-origin`: 실제 코어와 Herdr에 ledger를 hided가 꺼진 동안
심고, 머리, 개수, 일 줄, 배지 없음, `hide-memory-` 닮은 브랜치가 운영자 쪽에 남음, 일 없음이면 `Hide
AI`만, hided 재시작 뒤 유지를 확인(3회 연속 통과). 전체 web e2e 250개 통과(처음 8개 실패는 이 기계의
commit 서명 agent와 부하였고, 서명 설정을 끄고 다시 돌리면 통과: 5개는 그대로 다시 돌려, 3개는 git 서명
설정을 끄고 돌려 통과).
- Rust: `verify-cargo.sh test`와 `lint` 전부 통과. 새 테스트는 파생 규칙(운영자 handoff,
delegation, Factory, 끝난 에이전트, 브랜치 이름), 재사용된 pane, 기기 pane,
`task_reserved`, 업그레이드 수렴, publish 빈도(같은 ledger 재발행과 다른 에이전트 등록은
snapshot을 움직이지 않음).
- web: typecheck, lint, 단위 1458개, `check-design-contract.mjs`, pen 검사. 새
단위 테스트는 task 코드 번역(4개 언어, 알 수 없는 kind는 version-skew로 코드 그대로), Sessions
배지와 접근성 이름, ⌥n 번호가 그려진 순서를 따름.
- **확인하지 못한 것**:
  - 연결된 기기(B11)의 실제 화면: 코드 경로와 ledger 모양은 테스트로 확인했지만 기기에서 띄운 적은 없습니다.
  - 실제 Memory 카드 올리기로 처음부터 끝까지 가는 경로: e2e는 올리기가 남기는 ledger를 심었습니다.
  - macOS가 창 캡처(`screencapture`)를 거부해 renderer 캡처로 대신했습니다.
- **생성물**: `design/hide-ui.lib.pen`은
스크립트(`scripts/pen-hide-ai-origin.mjs`)가 만든 `Component / Hide AI origin`
시트 하나만 더했고(기존 노드 변경 없음), `design/hide-screens.pen`은 토큰 두 개만 갱신했습니다.

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

- PRD: `agents/prd/hide-ai-origin-mark/prd.md` (sha256
fc2bc584c3a1d6d1467289b9b69521f73c6dfadd73b18157b5d286f586f8c4f6)
- Base 92c3fa9 → head 19cd7d8 reviewed, then main (0f47719) merged,
verified 2026-10-12T09:58:03.717Z: PASS
- Verification report:
`agents/runs/hide-ai-origin-mark/verification-report.json` and
`agents/runs/hide-ai-origin-mark/verification-report.md`; source
fingerprint
0cb7142a997dc55d9a3fb95c600903cec8e4f5f23f880266fbfe87ada9550715
- Suites:
  - S1: GREEN `bash scripts/verify-cargo.sh test` (exit 0)
  - S2: GREEN `bash scripts/verify-cargo.sh lint` (exit 0)
- sealed suites are Rust only; web typecheck, lint, unit and e2e were
run directly on the same head (see Evidence)
- Reviews:
- Fidelity review (head 77e2353, then 19cd7d8): Fix now 1건(ledger 전체
훑기를 publish마다 함)을 Hide 신원을 한 번 찾는 방식으로 고침. Sessions 배지 테스트와 네이티브 캡처, 좁은
사이드바와 한국어 캡처를 더함. 열린 것: D-05, D-10 토큰, B5의 "정리되면" 해석, B11 live.
- Code review (head 77e2353, then 19cd7d8): Fix now 3건을 고침: 기기 에이전트가
표시되지 않던 문제(ledger의 machine은 device id라 pane id로 직접 비교), 업그레이드 중인 올리기가
`intent_conflict`로 버려지던 문제, ⌥n 번호가 그려진 순서와 달랐던 문제. 후속 리뷰에서 세 건 모두 닫힘 확인.
- Follow-up improvements: `hide_ai_checkouts`가 spawn 기록과 함께 쌓임(카탈로그에 있는
체크아웃만 남기기), `SpawnTask`의 `deny_unknown_fields`(다운그레이드 호환), task 검증 세 곳을
`SpawnTask::valid()` 하나로, ⌘K와 Overview 팝오버의 장소 줄, 세션 업데이트마다 생기는 추가
wake-up, #1000이 Hide가 시작한 세션을 Memory 추출에서 빼려면 `coordination::started`를 쓸
수 있음.
- Evidence: 7 registered (6 screenshot, 1 log); paths are local to the
run directory
  - agents/runs/hide-ai-origin-mark/native/tree-done-light-default.png
  - agents/runs/hide-ai-origin-mark/native/tree-done-dark-large.png
  - agents/runs/hide-ai-origin-mark/native2/sessions-badge-light.png
  - agents/runs/hide-ai-origin-mark/native2/folded-light-sidebar.png
-
agents/runs/hide-ai-origin-mark/native2/truncation-ko-narrow-sidebar.png
-
agents/runs/hide-ai-origin-mark/native2/truncation-en-narrow-sidebar.png
  - agents/runs/hide-ai-origin-mark/cargo-test3.log
- Changed paths: 42 (see Files changed)
- Delivery: mode pr, branch `spec/hide-ai-origin-mark`, base `main`

</details>
@yansfil
yansfil merged commit 5993a59 into main Oct 12, 2026
43 of 45 checks passed
@yansfil
yansfil deleted the fix/agent-start-startup-question branch October 12, 2026 12:27
yansfil added a commit that referenced this pull request Oct 12, 2026
Related: PRD `agents/prd/settings-left-nav/prd.md` (local); sibling run
sidebar-titlebar-refresh shares `diagnosticsText` in
`web/src/settings.ts`

## Summary

- Today Settings is a 720 px dialog with six tabs in a row, each page
carrying a description sentence. Notifications are split between General
and Mobile, and GitHub and About sit below General.
- Settings is now an 880 px dialog, opened with the same ⌘, and the same
entry points. A left list groups the pages into `App` (General,
Notifications, Devices, Shortcuts) and `This Mac` (Agents, Hide AI,
Mobile, GitHub), with About pinned at the bottom.
- Notifications is a new page: this machine's notification rows (desktop
only) and the Phone push choice moved there from Mobile. GitHub and
About moved out of General into their own pages. The row content and
behavior did not change.
- Each page shows only its title. The page descriptions and the
`settings.connections`/`settings.about` group titles were removed from
all four locales.
- The list is a Radix vertical Tabs: Up/Down/Home/End move through it
and show each page. On a short window the page scrolls on its own and
the list does not move.

![왼쪽이 지금, 오른쪽이 바뀐 Settings: 가로 탭과 탭 설명이 왼쪽 목록(App / This Mac, 맨 아래
About)으로, 알림은 Notifications 한
페이지로](https://github.com/yansfil/pr-assets/blob/main/hide/settings-left-nav/5a01624/before-after.png?raw=true)
![Electron 데스크톱 e2e(dark)에서 연 Settings > Notifications: 이 기계 알림과 Phone
푸시가 한
페이지](https://github.com/yansfil/pr-assets/blob/main/hide/settings-left-nav/5a01624/desktop-notifications-crop.png?raw=true)

## Review

- **판단해 주세요**: in the first image, whether the 200 px list width and the
Notifications page with the machine group title (This Mac) above the
Phone group read well.
- **판단해 주세요**: the machine group label follows the browser's guess (This
Mac / This PC / This computer), the same as the existing machine label;
it is not the core's machine name (PRD D-07).
- **조심해서 볼 파일**: `web/src/SettingsSheet.tsx` - focus order and scroll
ownership (the page panel scrolls, the list stays still); a regression
shows up as keyboard focus trapped or the list scrolling away.
- **조심해서 볼 파일**: `web/src/settings/NotificationsTab.tsx` - the push
choice moved from Mobile; it sends the same `set_push_mode` event as
before.
- **조심해서 볼 파일**: `scripts/pen-screens-settings.mjs` - one sheet builder
now draws Settings for the Settings, onboarding, Mobile and core-move
boards; `design/hide-screens.pen` is its output.

## Evidence

- **확인한 것**: web Playwright e2e, 54 passed across 19 spec files before
merging main, and the 12 Settings-related specs (26 tests) again after
it. They cover the list groups and order, keyboard movement, the 720x480
window (page scrolls, list does not move, About visible, list overflow 0
px), push via Notifications, and language switching.
- **확인한 것**: desktop Electron e2e: first-run, overview-modal and
tab-names passed (5 tests), before and after merging main; first-run
opens Settings > Notifications in the real Electron window and captures
it (second image).
- **확인한 것**: `sasu implement verify` (`verify-cargo.sh test` and
`lint`), `verify-web.sh` (web 1465 + desktop 177 unit tests, typecheck,
builds) and `check-design-contract.mjs` passed after merging main.
- **확인한 것**: gallery captures (light, dark, Korean at 17 pt, 720x480)
and Pen exports of the settings boards were compared by eye against the
approved mock.
- **확인하지 못한 것**: no manual check on a packaged `hide.app`;
`/Applications/hide.app` and the operator's Herdr were left untouched.
The desktop `local-kit` spec was skipped because it needs
`HIDE_E2E_APP`.
- **확인하지 못한 것**: Pen does not render SVG icon marks, so the list icons
are empty in `hide-screens.pen`; the web shell draws them.
- **확인하지 못한 것**: the first `verify-cargo.sh test` run failed once in
`node_session_activity::serve_preserves_kit_protocol_alongside_activity`
with EAGAIN (os error 35) on spawn under parallel load. It passed 3/3 in
isolation and in the two full runs after it. This PR changes only doc
comments in Rust.
- **생성물**: `design/hide-screens.pen` (about 25 MB to 27 MB) is
regenerated by `node scripts/gen-screens.mjs`. If
sidebar-titlebar-refresh lands first, regenerate it rather than
hand-merge it.

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

- PRD: `agents/prd/settings-left-nav/prd.md` (sha256
5fbb32ea903bf3ebaf9aec0707c9bace5e3dc5786675b45475870a600c0b4c14)
- Base 5993a59 → head fea62d3, verified 2026-10-12T12:34:55.689Z: PASS
- Verification report:
`agents/runs/settings-left-nav/verification-report.json` and
`agents/runs/settings-left-nav/verification-report.md`; source
fingerprint
4b9e554f1fd391575fb05d1131db7218d3d25cbeb252d698bcff694a87eba31b
- Suites:
  - S1: GREEN `bash scripts/verify-cargo.sh test` (exit 0)
  - S2: GREEN `bash scripts/verify-cargo.sh lint` (exit 0)
- Reviews:
- Fidelity (first pass, before 3c6482e): Fix now 2, both fixed in
3c6482e: the Hide AI spec measured an element that does not scroll
(the page panel is now the scroller and the spec measures
`[data-settings-page]` at 720 px); the Pen sheet showed This Mac on
Windows/Linux states (a machine parameter was added).
- Code (first pass, before 3c6482e): Fix now: stale comments that
still named the old General/Connections/About layout, fixed in
3c6482e.
- Fidelity + Code follow-up on e350221: no Fix now. Follow-up:
UI_BEHAVIOR said "Tab enters the page", fixed in 5a01624.
- Fidelity + Code follow-up on 5a01624 (doc-only diff): no Fix now; it
checked the new Tab-order sentence against the DOM order in
`SettingsSheet.tsx`.
- Fidelity + Code follow-up on e47768b (merge of main with #999 and
#1001): no Fix now; confirmed #999's Linux no-service condition and new
note survive on the Notifications page and nothing #999 put in the old
group is missing. Its one follow-up, a stale catalog comment in
`firstRun.ts`, is fixed in eac3ef0 (comment only).
- Merge fea62d3 (main with #995): one conflicting line in
`docs/DESIGN_WORKFLOW.md` (this branch's onboarding `scale`/`page` query
with main's Memory `start_failed` state), resolved by keeping both; no
Settings, design or i18n file overlapped, so no separate review ran on
it.
- Follow-up improvements (not in this PR): ARIA roles for the group
labels inside the tablist; the `hided-ws.schema.json` description still
names the old Settings place (the PRD freezes that contract); there is
no e2e assertion of the full Tab order (list, chip, Close, panel); the
code comment at `SettingsSheet.tsx:81` is less precise than the doc; the
D-07 This Mac label versus the core's machine name.
- Evidence: 11 registered (9 screenshot, 2 log); paths are local to the
run directory
  - agents/runs/settings-left-nav/capture/before-after.png
  - agents/runs/settings-left-nav/capture/general-light.png
  - agents/runs/settings-left-nav/capture/notif-light.png
  - agents/runs/settings-left-nav/capture/agents-dark.png
  - agents/runs/settings-left-nav/capture/hideai-ko-large.png
  - agents/runs/settings-left-nav/capture/notif-small.png
-
agents/runs/settings-left-nav/capture/desktop/first-run-settings-notifications.png
- agents/runs/settings-left-nav/design/export2/screen-settings-light.png
- agents/runs/settings-left-nav/design/export2/screen-settings-dark.png
  - agents/runs/settings-left-nav/notes/e2e-2.log
  - agents/runs/settings-left-nav/notes/desktop-e2e.log
- Changed paths: 40 (see Files changed)
- Delivery: mode pr, branch `gen-prd/settings-left-nav`, base `main`

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