Repository navigation
앱 기본 색을 랜딩의 Hide 색으로 바꾸고 설정에 색 테마 고르기를 더하기 - #1143
Merged
Merged
Conversation
The core stores a second appearance choice beside the mode: the palette every window draws in, Hide or Neutral. A store without it opens Hide, an unknown stored value opens Hide with the ui_state.color_theme_unknown diagnostic, and color_theme_set is the one event that changes it; ui_state_update carries it through. The WS contract types the payload and the snapshot enum is pinned, and the phone projection carries the choice so a paired phone draws it.
…inal colors design/tokens.json keeps the Neutral values as each color's Dark and Light and gives the colors the Hide palette draws differently a hide value: the Owl Field surfaces, greys, lineage rail, selection and terminal colors. Both palettes get a new ANSI 16 that reads on its background; the Tango and GitHub Light colors are gone. gen-tokens writes the Hide values into .palette-hide blocks, the Pen variables carry them on a second theme axis, Palette (Neutral by default, so every existing frame is unchanged), and Foundations draws all four palettes. PR closed keeps its own grey so a PR mark looks the same in both palettes. check-token-contrast fails the design contract when a terminal text color or a secondary grey falls below 4.5:1 in any palette and mode.
Settings > General > Appearance gains a Color theme row, Hide or Neutral, each with a swatch of its background, between Language and the Theme row, which is now called Mode in all four languages. The page puts palette-hide on the document root beside the mode class and re-colors open terminals and editors in place. The first paint, the desktop window before the page draws, the host status page and the phone start in Hide Dark; the phone follows the operator's color theme with its own light or dark, and its manifest wears Hide Dark.
theme.spec opens on Hide, switches to Neutral from the keyboard and checks that the page and the open terminal change together while the terminal's content, the mode and the accent stay, that each color theme has its Light, and that the choice survives a daemon restart. settings-general checks the Appearance row order, the Hide default and the row and choice names in all four languages on the smallest window. The Color theme toggle waits for a live connection as the Language row does, so a choice made while the page reconnects is not dropped, and the dev gallery removes the Hide class so its scenes keep matching the Neutral Pen frames.
UI_BEHAVIOR's General names the Color theme and Mode rows and what the color theme changes and keeps; ARCHITECTURE says who owns ui_state.color_theme and how it reaches the page, the phone and the desktop window's first color; BRAND says how the Hide palette carries the mark's field into the app; DESIGN_WORKFLOW adds the hide token value, the Palette axis, and the contrast check.
…k one grey in both
# Conflicts: # scripts/gen-screens.mjs
yansfil
added a commit
that referenced
this pull request
Oct 15, 2026
Related: #1109 (로고를 목록에서 뺀 변경) ## Summary - #1109 이후 사이드바, 세션 목록, 탭에서 로고가 빠져 어느 행이 Claude Code이고 Codex인지 한눈에 알 수 없었습니다. - 사이드바 아래 바에 보기 메뉴(눈 버튼)를 두고, 에이전트 로고를 "행 왼쪽에 표시" 또는 "숨기기"로 고르게 했습니다. - 기본은 숨기기라 지금 화면 그대로이고, 숨긴 상태에서도 ⌥(Windows·Linux는 Alt)를 누르는 동안 번호 키캡과 함께 로고가 보입니다. - 고른 모드는 테마처럼 코어가 저장해 모든 창에 같이 적용되고 재시작 뒤에도 남습니다.   ## Review - **판단해 주세요**: 메뉴 글귀 "행 왼쪽에 표시 / 숨기기"와 "행 왼쪽에 표시" 옆의 Claude·Codex 로고 미리보기(승인한 시안에는 있고 B2에는 없습니다) - **조심해서 볼 파일**: `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 상태를 읽기만 합니다. 렌더 횟수는 측정하지 않았습니다. - **후속 개선**: 메뉴를 radio 역할로, 행마다 두 개인 훅 구독을 하나로, 좁은 폭·연결 끊김·표시 모드 탭 맞춤 테스트, 라이트 테마·어두운 로고 캡처, 알림이 닿지 않는 `errorNotice` 고정 테스트, ⌥ hold e2e에서 로고가 실제로 나타났는지 함께 단언하기 ## Evidence - **확인한 것**: B20(운영자가 "테마와 똑같이"로 수정): 거절된 모드는 화면을 바꾸지 않고, 받아들인 변경의 저장 실패는 이번 실행에서 선택대로 그려지며 `ui_state.save_failed`만 남깁니다. 저장은 테마와 같은 `write_ui_state` 경로입니다 - **확인한 것**: 코어 appearance 테스트 22개(기본값, 저장·재시작, 알 수 없는 값, 거절, ui_state_update 불변), Rust lint, 전체 cargo test(재실행에서 통과) - **확인한 것**: web 단위 테스트 1608개와 typecheck·lint, 새 web e2e 2개(메뉴·체크·키보드·표시/숨김·두 번째 창·daemon 재시작), 숨김 기본값 기하를 지키는 기존 e2e 45개 - **확인한 것**: 데스크톱 e2e 1개: ⌥ hold에서 사이드바·탭·세션 행에 로고가 키캡과 함께 나타나고 다른 키·blur·해제로 끝나며, 표시 모드에서는 키캡만 더해짐. 캡처는 렌더러 이미지입니다 - **확인한 것**: CI에서 이 변경 때문에 깨진 데스크톱 e2e 두 개(`digit-shortcuts`, `usage`)를 요구 변경에 맞게 고쳐 통과시켰고, 이 PR 머리의 CI(ee4314b)는 모두 초록이었습니다. main을 세 번 병합했고(마지막은 색 테마 #1143과 같은 모양의 ui_state 필드가 겹쳐 코어·계약·생성 타입 11곳을 풀었습니다) 병합한 머리에서 CI를 다시 돌립니다. main의 #1158과 같은 right-lane 데스크톱 spec 수정 한 개를 먼저 담았습니다 - **확인하지 못한 것**: Windows·Linux 실행(CI의 OS 레인 제외), 라이트 테마·어두운 로고(Grok, Cursor) 캡처, 좁은 사이드바와 연결 끊김 메뉴 테스트, 키를 바꾼 ⌥ 안내 줄, 네이티브 창 캡처 - **확인하지 못한 것**: Pen 라이브러리의 보기 메뉴 칸은 생성했지만 Pen에서 그려 보지 않았고, 표시 모드의 행 마스터는 그리지 않았습니다(코드에서만 그립니다) - **확인하지 못한 것**: 알 수 없는 저장값 두 개(`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가 큽니다. 스크립트 변경만 보면 됩니다 <details><summary>Verification record</summary> - PRD: `agents/prd/agent-logo-view-mode/prd.md` (sha256 0fcfb5339f7085dcb2725c5bb9189a2e3621b83002acde3013ef7eda6a828cb6) - Base a28d47f → head f58cc19, verified 2026-10-15T09:09:59.395Z: PASS - Verification report: `agents/runs/agent-logo-view-mode/verification-report.json` and `agents/runs/agent-logo-view-mode/verification-report.md`; source fingerprint 7586becd5d63ad576f22d326136b0a3bd5c547b7423f0568b3a32776a301e314 - Suites: - S1: GREEN `bash scripts/verify-cargo.sh test` (exit 0) - S2: GREEN `bash scripts/verify-cargo.sh lint` (exit 0) - Reviews: Fidelity와 Code는 c490ffa24에서 실행. Fix now: B20 저장 실패 경로(문서를 코드에 맞춤, 판단 요청에 올림), `status-model.md`와 Pen 스크립트 주석의 낡은 문장(수정), zh-CN 용어(수정). 후속 리뷰는 1670062, ee4314b, main 병합 5bc1e88, fa85b8d, 680244a에서 통과(ee4314b: 두 e2e 기대값 변경이 B13/B17/B22 요구에 맞고 단언이 약해지지 않았다는 판단. 5bc1e88: `persistence.rs` import 충돌 하나의 해결과 #1134 사이드바 변경이 보기 메뉴와 겹치지 않는다는 판단. fa85b8d: main의 `project_settings`와 로고 모드가 `ui_state_update` 보존, 저장, 스냅샷에서 겹치지 않는다는 판단이며 문서 문장 하나를 e5e36a0에서 고침. 680244a: main의 색 테마(#1143)와 같은 모양의 ui_state 필드가 겹친 충돌 11곳의 해결 판단이며, 알 수 없는 저장값 진단을 main의 `Unrecognized` 목록에 맞춘 것을 확인하고 문서 문단 위치 하나를 고침. 모두 Fix now 없음). Follow-up: 메뉴를 radio 역할로, 훅 구독 하나로 합치기, 좁은 폭·연결 끊김·표시 모드 탭 맞춤 테스트, 라이트 테마 캡처, Pen 렌더링, hold e2e에 로고 등장 단언 - Evidence: 5 registered (5 screenshot); paths are local to the run directory - agents/runs/agent-logo-view-mode/shots/view-menu-hidden.png - agents/runs/agent-logo-view-mode/shots/view-menu-shown.png - agents/runs/agent-logo-view-mode/shots/logo-peek-hidden.png - agents/runs/agent-logo-view-mode/shots/logo-peek-held.png - agents/runs/agent-logo-view-mode/shots/logo-shown-held.png - Changed paths: 40 (see Files changed) - Delivery: mode pr, branch `spec/agent-logo-view-mode`, base `main` </details>
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: PRD
agents/prd/hide-color-theme/prd.mdSummary
#B7C9CCin Light, and terminal 16 colors tuned to each background.Palettetheme axis.Review
herdr-core/src/persistence.rs- failure path: an unknown stored color theme opens Hide with a log-only diagnostic; merged with main'spane_completions.herdr-core/src/runtime/events.rs- newcolor_theme_setevent under the runtime mutex (no I/O added), andui_state_updatecarries the stored value through.contracts/hided-ws.schema.json,contracts/snapshot-wire-enums.json,hided/src/mobile/- snapshot wire: additiveui_state.color_themeand the phone frame field.design/tokens.json,scripts/gen-tokens.mjs,scripts/pen-tokens.mjs- a color token may carry ahideoverride; the generators and Pen checks now know the second palette.desktop/scripts/build.mjs- pre-paint color now read from the Hide Dark block; the build fails if it is not found.Evidence
sasu implement verifyPASS on the merged head (cargo test, cargo lint);verify-webweb 1600 and desktop 185 tests pass.check-token-contrast.mjsin the design contract: every terminal text color, muted, subtle and Seen gray is at least 4.5:1 in all four theme and mode combinations; design contract PASS.#0D191B, phone page through a paired Chromium phone context.design-review.mjsrun (review scenes stay Neutral by design), editor selection during a switch beyond the e2e.design/hide-ui.lib.pen,design/hide-screens.pen,web/src/tokens.cssandweb/src/generated/hided-ws.tsare regenerated by their scripts.추가 증거
tokens.cssby a regex; an unknown stored value is rewritten to Hide on the next save (same as Mode); the gallerySessionWorkflowSceneand Pen screen idle marks keepmuted-foreground(moving them would change review-target pixels); the Factory worker mark keepsmuted-foreground; Neutral muted text on a popover is 3.98:1 (pre-existing); Hide Dark's popover equals its border.Verification record
agents/prd/hide-color-theme/prd.md(sha256 1e1af3909d61bbff56bc9e6f7b52f8b8a5881cbd0f9bcceb7a7ed8a2ec2282ef)agents/runs/hide-color-theme/verification-report.jsonandagents/runs/hide-color-theme/verification-report.md; source fingerprint b623f97598a7b0bf8b7fb8c68d872d0b186c39e58aeb0c643881cc8cfbc87507bash scripts/verify-cargo.sh test(exit 0)bash scripts/verify-cargo.sh lint(exit 0)--status-seenused by status marks only.contrast()accepted non-#RRGGBB) - fixed in 279890e; follow-ups taken in 4b83991 (droppedhideentries that repeated Neutral, Pen Settings rows).persistence.rsconflict): no Fix now, no follow-up.scripts/gen-screens.mjsconflict kept both the palette theme axis and scoped--sheetregeneration): no Fix now; generators reproduce every committed generated file and the design contract passes.spec/hide-color-theme, basemain