Repository navigation
fix: deliver letters when the composer is empty - #1504
Merged
Merged
Conversation
yansfil
added a commit
that referenced
this pull request
Oct 21, 2026
…1517) Related: #1504 ## Summary The release candidate run 39630167240 fails the agent journey's `composer` cell on every system, so no candidate can pass. Two separate causes: - **Grok (all systems)**: after a turn Grok shows the next prompt it predicts, in grey italic, inside an empty composer. Hide read that suggestion as the operator's text and kept holding the letter. On Windows Grok also draws its prompt arrow as `>` instead of `❯`, so Hide found no composer at all. - **Codex and Antigravity (macOS)**: they keep a 12-line paste as 275 characters of text. The journey sends 8 Backspaces per screen read inside a 30 s limit, and macOS reads slowly enough that only 248-256 fit. The product was fine; the check stopped erasing too early. What changes: italic text now counts as Grok's empty-composer placeholder (typed text and the paste chip are never italic), Grok's marker may be `❯` or `>`, and the cell's 30 s wait now starts after the last key it sent. The cell also pastes the way Hide's terminal does (CR between lines, not LF): the LF form, which Hide never sends, made Grok on Windows submit each line as a prompt. A step after which the session holds a new prompt now fails the cell there. 스크린샷 없음: no screen changes; the composer parser and the journey check only. ## Review - **판단해 주세요**: an empty Grok composer is now "nothing, or only italic text". Grok's own source draws the suggestion with `ghost_text_style` (dim + italic) on every system; voice-capture interim words are also italic and would read empty. Accept? - **조심해서 볼 파일**: `hide-agent-adapter/src/declarations.rs` - Grok's declaration decides when a held letter may go in (failure path: a wrong `empty` rings over the operator's draft). - **조심해서 볼 파일**: `hide-agent-adapter/src/composer.rs` - `marker` is now a list; Claude Code, Codex, omp and agy keep one marker each, OpenCode and Pi none. - **조심해서 볼 파일**: `scripts/agent_journey/composer.py` - the step's 30 s counts from the last key; an erase can now take up to 50 reads plus 30 s. ## Evidence - **확인한 것**: the pinned Grok 1.0.52 against the journey's fake model under a private Herdr 0.9.5, read with `pane read --format ansi`: the suggestion is SGR 3 + (88,88,88), typed text (225,225,225) plain, the paste chip plain (200,200,200) on (17,17,17). - **확인한 것**: the same with `GROK_FORCE_LEGACY_CONSOLE=1` (the console Grok picks on Windows) draws `> ` and the same italic suggestion; 14 captures are new fixtures, judged in `grok_reads_its_suggestion_as_empty_on_either_console`. - **확인한 것**: the release run's per-step records: Codex/agy cleared at 280-288 Backspaces on Linux (28.2 s) and Windows (19 s), stopped at 248/256 in 30 s on macOS. A new script test with a 1 s read fails on the old code and passes now. - **확인한 것**: `cargo test -p hide-agent-adapter` (composer: 4 tests), clippy, fmt, the 161 agent-journey script tests, the workstation identity scan. - **확인하지 못한 것**: a real Windows screen with styling: the Windows `>` was reproduced through Grok's own override on macOS, and the journey run below is what proves Windows. - **확인한 것**: journey run https://github.com/with-hide/hide/actions/runs/39640248449 (head 941eecf): Linux and macOS fake lanes green in both attempts; on Windows `composer` passes for every agent that started, Grok's every cell included. - **확인한 것**: the cell now pastes as xterm.js does (bracketed, CR between lines); with that form Grok on Windows keeps the paste as one `[Pasted]` chip and starts no turn (the LF form in run 39635682277 submitted 11 prompts). - **확인하지 못한 것**: a fully green Windows lane: one agent's `start` failed with `spawn_busy` in each attempt (Codex in attempt 1, OpenCode in attempt 2), each passing in the other attempt. Flaky, outside this diff, filed as #1520 with the cause found so far (a start loop that re-sends `agent.start` without pause on `agent_pane_busy` while holding the spawn lock). <details><summary>Verification record</summary> </details>
yansfil
added a commit
that referenced
this pull request
Oct 28, 2026
#1783) ## Summary The mission page drew finished work two ways. Work that reached main was a faint check with no fill, while a review, a check or research, which never goes to main, kept the filled green check and surface. So a mission that was 18 / 18 done looked half empty, and its merged changes looked the least finished. Now every finished node is the green disc ✓ on the faint green surface, and every finished head cell is the same green. What is left before main stays only as the card's existing `머지 남음` / `합치기 남음` tag.  끝난 미션: main에 들어간 #1503·#1504·#1506, `→ main` 커밋, 조사·확인 노드가 모두 같은 ✓와 배경, 막대도 한 색. ## Review - **판단해 주세요**: 진행 중인 미션에서 머지를 기다리는 카드가 이제 `머지 남음` 배지로만 다른데, 그걸로 충분히 눈에 띄는지. - **판단해 주세요**: 미션 밖 노드가 main에 들어가면 마크의 접근성 이름이 `반영됨` 대신 `일 끝`이 됩니다(카드 줄은 여전히 `반영됨`). - **조심해서 볼 파일**: `web/src/missions.ts` - `nodeLook`에서 `landed` 상태를 지웠습니다. `nodeLanded`는 `landingLeft`가 계속 씁니다. ## Evidence - **확인한 것**: `pnpm --dir web` typecheck, lint, 전체 vitest (257 files, 2208 passed), `node scripts/check-design-contract.mjs` 통과. - **확인한 것**: 갤러리 `scene=mission` done·merge_wait·running을 다크 테마에서 캡처해 봤습니다. 끝난 카드는 모두 같은 모양이고, merge_wait에서 #1501에만 `머지 남음`이 붙었습니다. - **확인하지 못한 것**: 설치된 앱의 실제 미션에서는 보지 않았습니다(웹 셸 변경이라 갤러리 장면과 같은 컴포넌트입니다). <details><summary>진행 중 미션 (merge_wait)</summary>  </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.
Summary
입력창에 글을 쳤다가 Backspace로 다 지워도, Hide는 화면을 못 보니 그 키 입력을 "보내지 않은 초안"으로 여겨 편지를 최대 1시간 붙잡았습니다(
지금 전달알약만 남음).이제 초안 때문에 편지가 멈춘 칸이 30초 쉬면, Hide가 그 칸의 화면을 한 번 읽어 입력창이 비었는지 봅니다.
비었다고 확실히 읽힐 때만 초안을 풀어 편지가 바로 들어가고, 글이 남았거나 판단이 안 서면 지금처럼 붙잡습니다.
에이전트 화면이 업데이트로 바뀌는 경우에 대비해, 새 버전마다 입력창이 확실히 빈 순간에 한 번 검사해서 통과한 버전만 이 기능을 씁니다. 매일 밤 agent journey도 같은 판정기로 일곱 에이전트를 검사합니다.
Review
docs/delivery.mdReading the composer.herdr-core/src/delivery/composer.rs,doorbell.rs- 화면 읽기는 doorbell 스레드에서 lock 밖, 초안 한 번당 한 번, pass당 Herdr 호출 8회 안에 포함.herdr-core/src/runtime/delivery.rs-release_empty_composer는 Deliver now와 같은released_input_at_unix_ms를 씀; 읽은 뒤 키가 오면 거절.note_prompt_submitted의 working 경합 처리.hide-agent-adapter/src/composer.rs- 일곱 에이전트를 판정하는 단일 파서(SGR만 해석).pane.read1회(1초 타임아웃, 잘린 화면은 실패). 버전 검사는 5초마다 관찰 목록 한 번 훑고 최대 1칸 읽기. 상태 파일composer-checks.json128개 상한.--version에서만 알 수 있어, 연결된 기기의 칸은 예전처럼 붙잡습니다. 업데이트 뒤 재시작 안 한 칸은 새 버전 검사 결과로 판단됩니다.Evidence
dac6517c2debug 빌드) + 고정 Herdr 0.9.5, 실제 Claude Code 2.1.306과 Codex CLI 0.163.0. 키는 Hide WebSocket으로 보냄(terminal.input write_key확인).composer.read empty,composer.released, Deliver now 없이 약 30초 뒤 전달(hook_confirmed).not_empty, 편지 pending 유지, 2분 뒤letter_mark.shown.[Pasted text #1 +11 lines]을 Backspace 한 번으로 지움 →empty, 전달. 36칸 좁은 칸에서도 두 경우 모두 같은 결과.hide-agent-adapter/tests/it/composer.rs). doorbell 테스트: 해제·초안당 1회 읽기·버전 미확인/실패 시 읽지 않음·버전 검사·hook/working 경합.verify-cargo.sh test워크스페이스 전체 통과, clippy-D warnings통과,scripts/tests638개 통과, workstation identity 검사 통과.composer셀이 처음 확인), journey의 120칸 그리드, Grok·OpenCode·Pi·omp·agy의 라이브 해제(벨 대상이 아님).cbbd9ae0f로 고쳤고 단위 테스트로 확인했지만 고친 빌드로 라이브 재실행은 안 함.Verification record
main78506e8, headcbbd9ae0f