Skip to content

Remove code the #1093, #1107 and #1111 merges made obsolete - #1130

Merged
yansfil merged 7 commits into
mainfrom
chore/merged-cleanup-1014
Oct 15, 2026
Merged

yansfil merged 7 commits into
mainfrom
chore/merged-cleanup-1014

Conversation

@yansfil

@yansfil yansfil commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Summary

오늘 머지된 #1093, #1107, #1111이 쓸모없게 만든 코드를 걷어내고, 같은 일을 하던 두 군데를 한 곳으로 합쳤습니다.
화면과 동작은 그대로이고, 하나만 다릅니다: 원격 기기의 프로젝트가 GitHub 저장소를 갖지 않을 때, 이제 이 컴퓨터의 프로젝트와 똑같이 아무것도 그리지 않습니다.
전에는 기기 프로젝트의 체크아웃 카드에만 "origin이 GitHub 저장소를 가리키지 않는다"는 문장이 따로 떴습니다.

Review

  • 판단해 주세요: 기기 프로젝트의 "GitHub 없음"을 로컬과 같은 답(available, 사유 없음)으로 맞췄습니다. 웹이 unavailable_reason을 카드에 그리기 때문에 문장 하나가 사라지는 변화입니다. failure_category는 그대로라 로컬 이슈 기본값은 같습니다.
  • 조심해서 볼 파일: hide-project/src/lib.rs - origin을 읽는 규칙 둘을 그대로 지켰습니다. include는 파일이 직접 적은 origin을 가리지 못하고(목록 전체만 "알 수 없음"), 이름 비교는 정확히 origin이라 "Origin"은 다른 remote입니다.
  • 조심해서 볼 파일: hide-host/src/worktrees.rs - 자체 origin 파서와 읽기 상한 256 KiB가 사라지고 hide-project의 1 MiB 상한을 따릅니다. ProjectWorktreesSnapshot.repository가 이 값을 씁니다.
  • 조심해서 볼 파일: web/src/PaneHeaderBand.tsx - 모듈 전역 캐시 대신 필드별 selector와 useMemo를 썼습니다. 세션 목록의 행 목록은 헤더와 같은 단일 슬롯 캐시를 공유합니다(둘 다 스토어의 agents와 status.remote를 넘김).

Evidence

  • 확인한 것: web typecheck, lint, PaneHeaderBand/AgentSessions 테스트(렌더 횟수 테스트 포함); cargo fmt-check, lint; hide-project, hide-host, herdr-core 전체 테스트(새 테스트 a_node_repository_without_a_github_remote_draws_no_reason, origin 규칙 둘을 hide-project로 옮긴 테스트); 정책 스크립트 4종과 attribution 검사.
  • 확인하지 못한 것: 전체 테스트를 부하 속에서 돌렸을 때 hided 통합 테스트(connect_build, mobile, node_session_activity)가 실행마다 다르게 1~2개 실패했고, 단독 실행에서는 모두 통과했습니다. 이 변경과 닿는 코드가 아니며 원인은 찾지 못했습니다. herdr-core lib 테스트 하나도 첫 전체 실행에서 한 번 실패하고 재실행에서 통과했습니다.
  • 확인하지 못한 것: usage_ledger 쪽 fail_with 정리(A4)는 호출부 11곳의 로그 모양이 바뀌어 이번에는 하지 않았습니다.

…, and drop the device-facts cache

sessionsModel and the Sessions panel take their rows from the one builder the pane headers use. The pane header reads the device list and connection rows as its own selectors instead of a module-level cache.
…trip already prove

adapters.rs asserted the role mapping parse_codex_line already tests; the events round trip above it fails on a changed role.
A node project whose origin names no GitHub repository now reads available with no reason, as github::no_github_remote answers a local project, so its checkout card draws no sentence for it. failure_category stays no_github_remote, which the Local-issues default and the board read.
hide-host kept its own origin parser and file reader beside hide_project::git::Config. Config now carries each remote with its name; origin is looked up there and the host's copy is gone. An include still leaves the full remote list unknown while an origin the file itself names is found, and the origin name matches exactly.
read_project measures through describe_within since the worktree read was bounded; the test of a missing worktree now calls describe_within beside the code it covers.
…1014

# Conflicts:
#	herdr-core/src/runtime/issues.rs
@yansfil
yansfil merged commit e4313e9 into main Oct 15, 2026
21 checks passed
@yansfil
yansfil deleted the chore/merged-cleanup-1014 branch October 15, 2026 08:39
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