chore: SessionStart 부트스트랩 훅에서 compact 발동만 뺀다 - #1040
Closed
m-a-king wants to merge 1 commit into
Closed
Conversation
|
Discord 스레드 연동용 메타데이터입니다. discord-pr-bot 워크플로가 자동 생성하며, 수정·삭제하면 PR 과 Discord 알림 연동이 끊깁니다. |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Team Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
- SessionStart 는 startup 외에 resume·clear·compact 에도 발동한다. compact 는 작업 도중 일어나 그 순간 infra 정본을 새로 받을 이유가 없어 뺀다 - clear 는 남긴다. 프로세스를 끄지 않고 /clear 로 다음 작업을 이어가는 일이 잦아, 여기서 안 받으면 켜 둔 동안 정본 갱신을 못 받는다. 설치기가 sha 비교(TeamPiKi/infra#77)로 1초 안에 끝나 비용은 작다 - resume 은 새 프로세스로 옛 세션을 열 때 startup 대신 오는 값이라 남긴다 Claude-Session: https://claude.ai/code/session_01Lng75FcSaVLFy7bsp8tKQ9
m-a-king
force-pushed
the
chore/session-start-matcher
branch
from
September 6, 2026 08:07
e23794c to
ff504b9
Compare
Collaborator
Author
|
SessionStart 발동 시점을 하나도 빼지 않기로 했다(compact 시점 검사도 원함). matcher 없는 원래 설정과 같아져 이 PR 은 필요 없다. 속도는 TeamPiKi/infra#77 의 sha 비교가 해결한다. |
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.
Situation
SessionStart 훅은 startup 외에 resume·clear·compact 에도 발동한다. 그래서
/clear마다 infra install.sh 가 통째로 다시 돌아 몇 초씩 기다려야 했다(piki 워크스페이스에서 6.6초 실측).Task
근본 원인인 설치기 속도는 TeamPiKi/infra#77 에서 sha 비교로 0.9초까지 줄였다. 이 PR 은 그래도 돌 이유가 없는 compact 발동만 끊는다.
Action
.claude/settings.json의 SessionStart 훅에"matcher": "startup|resume|clear"를 추가했다.--resume세션이 설치를 못 받는다.정본 템플릿(infra
workspace/workspace-init.sh)도 Terraform 운영 체계화 #77 에서 같은 matcher 를 갖도록 고쳤다.Result
compact 때 설치기가 돌지 않는다. startup·resume·clear 는 그대로 돌고, #77 머지 뒤에는 1초 안에 끝난다.
https://claude.ai/code/session_01Lng75FcSaVLFy7bsp8tKQ9