Add CLAUDE.md and a SessionStart hook for Claude Code on the web - #2
Closed
Leo-Y-Zhang wants to merge 1 commit into
Closed
Leo-Y-Zhang wants to merge 1 commit into
Leo-Y-Zhang wants to merge 1 commit into
Conversation
CLAUDE.md records the repo layout and the exact install, lint and test commands that were proven to work in a fresh Linux container during the 2026-09-13 portfolio audit. The SessionStart hook installs dependencies only in web sessions (CLAUDE_CODE_REMOTE=true), synchronously and idempotently, so every future web session starts ready to run tests. Validated in a scratch copy: hook, one lint command and one test (see the audit's VALIDATION.md for this repo).
Owner
Author
|
Closed in favour of #3, the same branch and commit reopened as ready-for-review (the draft-to-ready call was rate-limited); #3 is merged. Generated by Claude Code |
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.
What
CLAUDE.md: repo purpose, layout, the exact install, lint and test commands proven to work in a fresh Linux container during the 2026-09-13 portfolio audit, and the unit versus end-to-end split (the e2e suite needs a Playwright browser revision the audit container did not have)..claude/hooks/session-start.sh: in web sessions only, runsnpm installand exports the Playwright browser path variables, idempotently..claude/settings.json: registers the hook.Validation
In a scratch copy: hook ran clean,
eslint src/core/scoring.tsclean,vitest run tests/unit/scoring.test.ts8 passed. Details:audit/proposals/Understudy/VALIDATION.mdin Leo-Y-Zhang/Blank#1.🤖 Generated with Claude Code
https://claude.ai/code/session_01DjMRWhXjCZMVopSJLNAt5x
Generated by Claude Code