Skip to content

chore: SessionStart 부트스트랩 훅에서 compact 발동만 뺀다 - #1040

Closed
m-a-king wants to merge 1 commit into
devfrom
chore/session-start-matcher
Closed

chore: SessionStart 부트스트랩 훅에서 compact 발동만 뺀다#1040
m-a-king wants to merge 1 commit into
devfrom
chore/session-start-matcher

Conversation

@m-a-king

@m-a-king m-a-king commented Sep 5, 2026

Copy link
Copy Markdown
Collaborator

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" 를 추가했다.

  • compact 는 작업 도중 일어나 그 순간 정본을 새로 받을 이유가 없다.
  • clear 는 남긴다. 프로세스를 끄지 않고 /clear 로 다음 작업을 이어가는 일이 잦아, 여기서 안 받으면 켜 둔 동안 정본 갱신을 못 받는다.
  • resume 은 새 프로세스로 옛 세션을 열 때 startup 대신 오는 값이라 빼면 --resume 세션이 설치를 못 받는다.
    정본 템플릿(infra workspace/workspace-init.sh)도 Terraform 운영 체계화 #77 에서 같은 matcher 를 갖도록 고쳤다.

Result

compact 때 설치기가 돌지 않는다. startup·resume·clear 는 그대로 돌고, #77 머지 뒤에는 1초 안에 끝난다.

https://claude.ai/code/session_01Lng75FcSaVLFy7bsp8tKQ9

@m-a-king m-a-king added the chore 그 외 (빌드·deps·ci·도구·설정·잡일) label Sep 5, 2026
@m-a-king m-a-king self-assigned this Sep 5, 2026
@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown

Discord 스레드 연동용 메타데이터입니다. discord-pr-bot 워크플로가 자동 생성하며, 수정·삭제하면 PR 과 Discord 알림 연동이 끊깁니다.

@coderabbitai

coderabbitai Bot commented Sep 5, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yml

Review profile: CHILL

Plan: Team

Run ID: e58ae733-418d-4eee-98f6-a88a96a6cd78


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

- 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
m-a-king force-pushed the chore/session-start-matcher branch from e23794c to ff504b9 Compare September 6, 2026 08:07
@m-a-king m-a-king changed the title chore: SessionStart 부트스트랩 훅을 startup·resume 에만 건다 chore: SessionStart 부트스트랩 훅에서 compact 발동만 뺀다 Sep 6, 2026
@m-a-king

m-a-king commented Sep 6, 2026

Copy link
Copy Markdown
Collaborator Author

SessionStart 발동 시점을 하나도 빼지 않기로 했다(compact 시점 검사도 원함). matcher 없는 원래 설정과 같아져 이 PR 은 필요 없다. 속도는 TeamPiKi/infra#77 의 sha 비교가 해결한다.

@m-a-king m-a-king closed this Sep 6, 2026
@m-a-king
m-a-king deleted the chore/session-start-matcher branch September 6, 2026 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore 그 외 (빌드·deps·ci·도구·설정·잡일)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant