Skip to content

Lock each login shell ask per shell and home, and drop the unused kit version probe - #685

Merged
yansfil merged 2 commits into
mainfrom
fix/settings-cleanup-followups
Oct 7, 2026
Merged

yansfil merged 2 commits into
mainfrom
fix/settings-cleanup-followups

Conversation

@yansfil

@yansfil yansfil commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Related: #668

Summary

#668(Settings 정리) 머지 직후 그 작업 브랜치에서 만들어졌지만 올라가지 못한 커밋 두 개를 main 위로 옮겼습니다.

  • 로그인 셸 PATH 캐시가 모든 셸·홈 쌍을 잠금 하나로 묶고 있어서, 한 홈의 느린 셸 질의가 다른 홈의 질의까지 세워 두었습니다.
    이제 쌍마다 잠금이 따로 있어, 같은 쌍은 여전히 셸 하나를 같이 기다리고 다른 홈은 기다리지 않습니다.
    부하가 걸리면 hided::opener_lifecycle 테스트가 각자의 홈에서 서로의 셸 뒤에 줄을 서다 시간 초과로 실패했는데, 그 원인으로 보이는 대기를 없앴습니다.
  • 아무도 부르지 않는 kit 버전 프로브(hide_agent_hooks::program_version)를 지웠고, docs/ARCHITECTURE.md의 helper protocol 번호를 실제 값 20으로 고쳤습니다.

Review

  • 조심해서 볼 파일: hide-platform/src/programs.rs - 잠금 구조가 바뀝니다. 바깥 목록 잠금은 슬롯을 찾거나 만드는 동안만 잡고, 셸 질의는 그 쌍의 슬롯 잠금 안에서만 기다립니다. 상한 8쌍과 오래된 것부터 버리는 규칙은 그대로이고, 버려진 슬롯을 쥔 호출자는 자기 질의를 끝까지 마칩니다.

Evidence

  • 확인한 것: 새 테스트 a_slow_ask_for_one_home_does_not_hold_another_home_behind_it가 한 홈의 셸이 답하지 않는 동안 다른 홈이 답을 받는지 확인합니다. 기존 callers_that_arrive_cold_together_start_one_shell이 같은 쌍은 셸 하나만 띄우는지 계속 확인합니다.
  • 확인한 것: 두 커밋이 처음 만들어진 브랜치(Clean up Settings: six tabs, seven agents, a Hide AI tab and Reopen for unheard panes #668 head 위)에서 scripts/verify-cargo.sh test와 lint 전체가 통과했습니다.
  • 확인한 것: main 위로 옮긴 뒤 cargo fmt --check, attribution 검사, hide-platform·hide-agent-hooks·hide-kit의 clippy --all-targets -D warnings가 통과했습니다. 지운 program_version을 부르는 곳은 main(#670의 codex_trust 포함)에 없습니다.
  • 확인한 것: 같은 세 crate의 nextest 467개 중 464개가 통과했습니다. 실패한 3개는 load average 50에서 launchctl과 첫 실행이 시간 초과한 것이고(이 변경이 건드리지 않는 경로), 그 전 실행에서는 codex_trust의 a_codex_that_does_not_answer_is_stopped_and_nothing_of_it_is_left가 테스트 stand-in(fake-codex.py)이 자식 pid를 쓰기 전에 시간 초과로 실패했습니다. 이 4개를 따로 다시 돌리면 모두 통과합니다.
  • 확인하지 못한 것: opener_lifecycle 부하 실패의 원인이 이 잠금이었는지는 추적하지 않았습니다. 대기를 없앤 것이지, 그 실패를 다시 재현해 사라진 것을 본 것은 아닙니다.
  • 확인하지 못한 것: main 위 전체 Rust/웹/데스크톱 lane은 CI에 맡겼습니다.

… kit version probe nothing calls

The kit stopped gating hooks on a version, so its probe and the words that described it are gone.
One lock for every pair made a slow ask for one home hold every other home behind it; hided's opener tests, each in its own home, queued behind each other's shells under load and one timed out.
@yansfil
yansfil merged commit 3b6d2a7 into main Oct 7, 2026
22 checks passed
@yansfil
yansfil deleted the fix/settings-cleanup-followups branch October 7, 2026 00:52
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