Repository navigation
Windows에서 OpenCode plugin과 Pi, omp extension 쓰기 - #969
Merged
Merged
Conversation
The scripts start the helper by its absolute path with no shell, which a windows-latest runner showed working under OpenCode 1.18.35 and omp 18.7.0 (Bun) and Pi 1.0.4 (Node): each loaded the file from its profile folder, crossed stdin and stdout and ended the child with SIGKILL. The refusal that held them off Windows is gone, and a Windows test runs this build's files in Node against the real helper in an awkward folder and requires the session guidance to reach the prompt.
The kit's test module is Unix-only as a whole; these marks only recorded that the kit wrote no OpenCode plugin on Windows, which no longer holds.
…xtensions # Conflicts: # docs/agent-hooks.md
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.
Summary
Windows에서 OpenCode의 plugin과 Pi, omp의 extension이 쓰이지 않아 세 에이전트의 hook 행이 Windows에서 지원되지 않는 것으로 보였습니다.
세 파일은 helper를 셸 없이 절대 경로로
spawn하므로, 그 호출이 Windows에서 그대로 동작하는지 확인하고 Windows에서도 씁니다.windows-latest러너(2026-10-11)에서 OpenCode 1.18.35(Bun 1.3.14)가%USERPROFILE%\.config\opencode\plugins의 plugin을, Pi 1.0.4(Node 22)와 omp 18.7.0(Bun)이%USERPROFILE%\.pi\agent\extensions,%USERPROFILE%\.omp\agent\extensions의 extension을 읽었습니다.세 호스트 모두에서 절대
.exe경로spawn, stdin/stdout UTF-8 왕복,kill("SIGKILL")이 동작했습니다.plugin::supported_here()는 항상 Ok가 되므로 함수와 호출부를 지웠습니다.windows_scripts.rs가 이 빌드의 세 파일을 Node에서 각 호스트가 부르는 방식대로 실행하고, 실제 helper(공백, 따옴표, 대괄호,$가 든 폴더)의 세션 guidance가 첫 prompt에 실리는지 요구합니다.Review
spawn/kill이고, 새 테스트는 Node에서 파일을 직접 부릅니다. OpenCode와 omp는 Bun에서 돌기 때문에 Bun의child_process동작은 러너 spike 한 번으로만 확인됐습니다. 이 수준이면 충분한지 봐 주세요.hide-kit/src/agent_kit.rs,hide-kit/src/agents.rs- 운영자 소유 폴더에 파일을 쓰는 kit 경로에서 Windows 거절 분기를 지웠습니다. 마커, 원자적 쓰기, 끄면 지우는 규칙은 macOS와 같은 코드입니다.hide-agent-hooks/src/plugin/tests.rs-cfg(unix)로 묶였던 설치/제거 테스트가 이제 Windows check lane에서도 돕니다.Evidence
hide-agent-hooks,hide-kitnextest 414개 전부 통과, clippy-D warnings, fmt-check, lint, policy 스크립트 통과.spawn,kill동작(위 Summary).windows_scripts와cfg(unix)를 푼 plugin 테스트 결과(이 PR의 CI).