Repository navigation
에이전트 로고 보기 모드: 아래 바 보기 메뉴와 ⌥ 잠깐 보기 - #1133
Merged
Merged
Conversation
ui_state.agent_logo_mode (shown or hidden, hidden by default) is changed only by agent_logo_mode_set, survives a restart, reads an unknown stored value as hidden with a diagnostic, and is never changed by ui_state_update.
…the Agents key A View menu in the sidebar footer shows or hides the agent's logo in sidebar rows, Sessions rows and Agent tabs. While hidden, holding the Agents key shows the logos with the number keycaps. Hide AI rows wear the owl as a badge on the logo while shown. Documents, the Pen sidebar chrome and the design tokens follow.
The unsaved-change promise now says what the core does, a refused mode is asserted as recorded, the peek key is a pure function with a unit test, the desktop spec also checks Sessions rows, and stale no-logo statements name the default mode.
…mode # Conflicts: # herdr-core/src/persistence.rs
…mode # Conflicts: # docs/ARCHITECTURE.md
…mode # Conflicts: # contracts/hided-ws.schema.json # design/hide-ui.lib.pen # herdr-core/src/model.rs # herdr-core/src/persistence.rs # herdr-core/src/runtime.rs # herdr-core/src/runtime/events.rs # herdr-core/src/runtime/tests/appearance.rs # web/scripts/gen-types.mjs # web/src/actions.ts # web/src/generated/hided-ws.ts # web/src/snapshot.ts
yansfil
added a commit
that referenced
this pull request
Oct 15, 2026
…lose (#1158) Related: #1147 ## Summary #1147 keeps the file tree on when the right lane closes, but its PR skipped the desktop e2e lanes, so `desktop/e2e/right-lane.spec.ts` still expects the old reset. On every run that includes #1147 the macOS desktop lane fails at line 199 (`tree: false` expected, `true` saved), first seen on #1133's run 38702938833. This changes only the spec: the saved Workspace now expects `tree: true`, and the screenshot branch no longer toggles the tree from the lane menu (that toggle would now turn it off) but checks it is already shown. ## Review - **판단해 주세요**: the spec now follows #1147's behavior; no product code changes. - **조심해서 볼 파일**: `desktop/e2e/right-lane.spec.ts` - the `if (dir)` branch runs only where `HIDE_E2E_SCREENSHOT_DIR` is set, which CI's desktop lane does. ## Evidence - **확인한 것**: the failure log of run 38702938833 (desktop e2e macos, both tries) shows the `tree` mismatch at line 199; #1147's own `web/e2e/s3.spec.ts` change drops the same tree toggle after a close. - **확인하지 못한 것**: not run locally (the screenshot branch needs native capture, which a Herdr pane cannot take); this PR's own desktop e2e macOS lane is the proof.
yansfil
added a commit
that referenced
this pull request
Oct 15, 2026
Related: #1149 ## Summary 충돌을 풀려고 main을 합쳐 push하면, 바뀐 것이 문서뿐이어도 PR이 계획한 레인이 처음부터 다시 돕니다. 이제 그런 push는 이 PR의 마지막 초록 `verify`를 재사용하고 `policy`만 돌립니다. plan 요약에 재사용한 실행 ID가 남습니다. 재사용은 두 조건이 모두 참일 때만입니다. - **A. PR이 더하는 것이 그대로**: 그 실행의 head를 지금 main에 합친 결과와 이번 merge가 `policy`만 읽는 경로(문서, `design/`, `POLICY_ONLY`)에서만 다릅니다. 코드, 테스트가 읽는 가이드, 계약이 다르면 다시 돕니다. - **B. main이 PR 파일을 건드리지 않음**: 그 실행이 본 main 이후 main이 바꾼 파일 중, PR이 바꾼 파일이면서 레인이 읽는 것이 없습니다. #1133처럼 겹치면 다시 돕니다. - **실패는 일반 plan**: 실행이나 기록이 없거나, 기록의 head가 다르거나, API·다운로드·fetch·비교가 실패하면 지금처럼 계획하고, 요약에 이유를 씁니다. 각 PR 실행은 레인이 실제로 확인한 main과 head를 `ci-plan` 아티팩트로 남깁니다. 재사용한 실행은 원래 실행을 가리켜, 비교는 항상 레인이 돈 실행과 합니다. 머지 직전 `premerge-check.py`는 지금처럼 merge 결과에서 돕니다. ## Review - **판단해 주세요**: 재사용해도 `policy`(리눅스 잡 1개, 약 70초)는 돕니다. 스크립트 테스트와 불변식이 바뀐 문서를 읽기 때문입니다. brief의 "레인을 다시 돌리지 않고"보다 하나 더 돕니다. - **판단해 주세요**: B는 브리프대로 파일 겹침만 봅니다. main이 PR이 고친 함수를 쓰는 새 파일을 더한 경우는 지금의 "뒤처진 초록 PR 머지" 정책과 같이 premerge-check와 main push 런에 맡깁니다. - **조심해서 볼 파일**: `scripts/ci-plan.py` `plan` - 재사용 분기는 `NotReused`, git 실패, `OSError`, `ValueError`를 모두 일반 plan으로 돌립니다. 통과로 가는 길은 두 조건이 참일 때 하나뿐입니다. - **조심해서 볼 파일**: `scripts/ci-plan.py` `still_stands` - 충돌이 난 merge-tree 결과는 충돌 표시가 남은 채 비교되어, 코드 충돌을 다르게 푼 push는 A에서 걸립니다. - **조심해서 볼 파일**: `.github/workflows/pr.yml` plan 잡 - `actions: read` 권한, `GH_TOKEN`, 기록 업로드(`continue-on-error`: 업로드 실패는 다음 실행이 일반 plan이 될 뿐). - **비용 검토**: 재사용을 시도할 때만 commit과 tree를 받습니다(blob 없이, main 전체 이력 약 9 MB). GitHub에서 받은 depth 2 체크아웃 기준 첫 판정 11.6초(로컬 망). ## Evidence - **확인한 것**: `python3 -m unittest discover -s scripts/tests -p 'test_*.py'` 360개 통과. - **확인한 것**: 실제 git 저장소로 만든 테스트 7개: 문서 충돌만 푼 재push는 재사용, main과 겹친 코드(#1133 모양), 코드로 푼 충돌, PR 코드 변경, 테스트가 읽는 가이드 변경은 재실행, 실행 없음·조회 실패·받을 수 없는 커밋은 일반 plan. - **확인한 것**: 조건 B 제거, 조건 A 제거, READERS를 문서로 취급, 실패를 재사용으로, 다른 fork 실행 포함, 기록 head 미확인의 변조 6개가 각각 테스트를 실패시킵니다. - **확인한 것**: 실제 이력 재생. PR 39개에서 초록 실행 뒤에 온 실행 52개를 판정했습니다. 재사용 3, PR이 레인 경로를 바꿔 재실행 45, main 겹침으로 재실행 4. 표는 아래. - **확인한 것**: #1133(브리프의 반드시 재실행 사례)은 재실행입니다. 재병합에서 `persistence.rs` 충돌을 풀어 A가 걸리고, B만 따로 봐도 main과 겹친 레인 경로 6개로 걸립니다. - **확인한 것**: GitHub에서 depth 2로 받은 #1143 merge 체크아웃에서 fetch, merge-tree, 판정이 끝까지 돌았습니다(재실행 판정, 같은 head 재판정은 재사용). 실제 API 조회는 초록 실행을 찾고 기록이 없어 일반 plan으로 갑니다. - **확인하지 못한 것**: 머지 전 실행은 기록을 남기지 않았으므로 재사용은 이 PR 머지 뒤의 초록 실행부터 됩니다. - **확인하지 못한 것**: 이 PR의 첫 실행은 `ci-plan.py`를 바꿔 전체 레인입니다. 문서만 다시 push해 재사용이 실제로 일어나는지는 이 PR에서 따로 확인합니다. <details><summary>재생 결과 (재사용과 main 겹침 사례)</summary> 재생: 각 실행의 merge commit 첫 부모를 그 실행의 main으로 보고, head를 그 main에 합쳐 다시 만든 merge로 이 PR의 판정을 돌렸습니다. | PR | 실행 | 그 전 초록 실행 이후 바뀐 것 | 판정 | | --- | --- | --- | --- | | #967 | 38137531799 | `docs/VERIFICATION.md` 한 줄 | 재사용 (원래 전체 레인) | | #966 | 38173834278 | 베이스 브랜치 병합, 베이스가 바꾼 3개 파일은 PR과 안 겹침 | 재사용 | | #1010 | 38274906653 | 같은 head, 같은 main에서 다시 돈 실행 | 재사용 | | #1133 | 38689861115 | main 병합, `persistence.rs` 충돌을 코드로 해결 | 재실행 (A, B 모두) | | #1114 | 38668610949 | main이 PR도 바꾼 `hided/tests/it/core_move.rs`를 바꿈 | 재실행 (B) | | #991 | 38214789905 | main이 PR도 바꾼 `memory.rs` 등 4개를 바꿈 | 재실행 (B) | | #969 | 38142050470 | main이 PR도 바꾼 `pr.yml`을 바꿈 | 재실행 (B) | | #1143 | 38699835291 | main이 PR도 바꾼 `design/tokens.json` 등 10개를 바꿈 | 재실행 (B) | 나머지 44개는 PR이 레인이 읽는 경로를 바꿔 재실행입니다. </details>
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.
Related: #1109 (로고를 목록에서 뺀 변경)
Summary
Review
herdr-core/src/runtime/events.rs,persistence.rs- 새 ui_state 필드 하나와 이벤트 하나, ui_state_update가 바꾸지 못하게 한 곳(snapshot wire, failure path)web/src/agentLogoMode.ts- 모든 행이 구독하는 훅이라 고빈도 경로입니다desktop/e2e/digit-shortcuts.spec.ts,usage.spec.ts- 요구가 바뀐 기대값 두 곳입니다(⌥ hold에서 제목의 가로 위치는 로고 때문에 밀리고 줄은 그대로, 아래 바 컨트롤 5개에서 6개)useSyncExternalStore), 값이 같으면 다시 그리지 않습니다. 키 입력당 추가 작업은 없고 기존 hold 상태를 읽기만 합니다. 렌더 횟수는 측정하지 않았습니다.errorNotice고정 테스트, ⌥ hold e2e에서 로고가 실제로 나타났는지 함께 단언하기Evidence
ui_state.save_failed만 남깁니다. 저장은 테마와 같은write_ui_state경로입니다digit-shortcuts,usage)를 요구 변경에 맞게 고쳐 통과시켰고, 이 PR 머리의 CI(ee4314b)는 모두 초록이었습니다. main을 세 번 병합했고(마지막은 색 테마 #1143과 같은 모양의 ui_state 필드가 겹쳐 코어·계약·생성 타입 11곳을 풀었습니다) 병합한 머리에서 CI를 다시 돌립니다. main의 #1158과 같은 right-lane 데스크톱 spec 수정 한 개를 먼저 담았습니다theme와agent_logo_mode)가 한꺼번에 보고되는 경로의 테스트는 없습니다dependencyGraph,platform-program,worktree_behavior,node_issues,project_sessions, hided 프로세스 생성EAGAIN)은 이 변경과 무관하게 단독 또는 부하가 내려간 재실행에서 통과했습니다design/hide-screens.pen,design/hide-ui.lib.pen은 토큰(--size-hide-badge*)과 사이드바 chrome 스크립트로 다시 생성한 파일이라 diff가 큽니다. 스크립트 변경만 보면 됩니다Verification record
agents/prd/agent-logo-view-mode/prd.md(sha256 0fcfb5339f7085dcb2725c5bb9189a2e3621b83002acde3013ef7eda6a828cb6)agents/runs/agent-logo-view-mode/verification-report.jsonandagents/runs/agent-logo-view-mode/verification-report.md; source fingerprint 7586becd5d63ad576f22d326136b0a3bd5c547b7423f0568b3a32776a301e314bash scripts/verify-cargo.sh test(exit 0)bash scripts/verify-cargo.sh lint(exit 0)status-model.md와 Pen 스크립트 주석의 낡은 문장(수정), zh-CN 용어(수정). 후속 리뷰는 1670062, ee4314b, main 병합 5bc1e88, fa85b8d, 680244a에서 통과(ee4314b: 두 e2e 기대값 변경이 B13/B17/B22 요구에 맞고 단언이 약해지지 않았다는 판단. 5bc1e88:persistence.rsimport 충돌 하나의 해결과 숨긴 사이드바를 다시 여는 버튼을 창 윗줄에 둔다 #1134 사이드바 변경이 보기 메뉴와 겹치지 않는다는 판단. fa85b8d: main의project_settings와 로고 모드가ui_state_update보존, 저장, 스냅샷에서 겹치지 않는다는 판단이며 문서 문장 하나를 e5e36a0에서 고침. 680244a: main의 색 테마(앱 기본 색을 랜딩의 Hide 색으로 바꾸고 설정에 색 테마 고르기를 더하기 #1143)와 같은 모양의 ui_state 필드가 겹친 충돌 11곳의 해결 판단이며, 알 수 없는 저장값 진단을 main의Unrecognized목록에 맞춘 것을 확인하고 문서 문단 위치 하나를 고침. 모두 Fix now 없음). Follow-up: 메뉴를 radio 역할로, 훅 구독 하나로 합치기, 좁은 폭·연결 끊김·표시 모드 탭 맞춤 테스트, 라이트 테마 캡처, Pen 렌더링, hold e2e에 로고 등장 단언spec/agent-logo-view-mode, basemain