Skip to content

chore: SessionStart 부트스트랩 훅을 startup·resume 에만 건다 - #64

Open
m-a-king wants to merge 1 commit into
mainfrom
chore/session-start-matcher
Open

chore: SessionStart 부트스트랩 훅을 startup·resume 에만 건다#64
m-a-king wants to merge 1 commit into
mainfrom
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 외에 clear·compact 에도 발동한다. 그래서 /clear 마다 infra install.sh 가 통째로 다시 돌아 몇 초씩 기다려야 했다(piki 워크스페이스에서 6.6초 실측).

Task

/clear·compact 에서는 디스크의 자산이 그대로라 다시 깔 게 없다. 그 경로의 재실행을 끊는다.

Action

.claude/settings.json 의 SessionStart 훅에 "matcher": "startup|resume" 을 추가했다. resume 은 새 프로세스로 옛 세션을 열 때 startup 대신 오는 값이라 빼면 --resume 세션이 영영 설치를 못 받으므로 남겼다. 정본 템플릿(infra workspace/workspace-init.sh)도 TeamPiKi/infra#77 에서 같은 matcher 를 갖도록 고쳤다.

Result

  • /clear, compact 때 설치기가 돌지 않는다. startup·resume 동작은 그대로다.
  • 한계: 켜 둔 세션 안에서 infra 정본 갱신을 받으려면 재시작해야 한다. ensure-assets.sh 는 없는 파일만 채운다.

https://claude.ai/code/session_01Lng75FcSaVLFy7bsp8tKQ9

- SessionStart 는 clear·compact 에도 발동해 /clear 마다 infra 설치기가 통째로 돌아 몇 초씩 기다렸다. 그때는 디스크의 자산이 그대로라 다시 깔 게 없다
- resume 은 새 프로세스로 옛 세션을 열 때 startup 대신 오는 값이라 빼면 그 경로가 설치를 못 받으므로 남긴다
- 정본 템플릿(infra workspace-init.sh)도 같은 matcher 를 갖도록 TeamPiKi/infra#77 에서 고쳤다

Claude-Session: 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: Organization UI

Review profile: CHILL

Plan: Team

Run ID: 406e251d-6c19-4a7c-a427-98bb9813b468


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.

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