Skip to content

Add SessionStart hook for Claude Code on the web#83

Open
1a35e1 wants to merge 1 commit into
developfrom
claude/gallant-ritchie-95h27
Open

Add SessionStart hook for Claude Code on the web#83
1a35e1 wants to merge 1 commit into
developfrom
claude/gallant-ritchie-95h27

Conversation

@1a35e1

@1a35e1 1a35e1 commented May 22, 2026

Copy link
Copy Markdown
Member

Summary

  • Adds a SessionStart hook (.claude/hooks/setup.sh) that prepares the workspace for Claude Code on the web.
  • On remote (web) containers it runs pnpm install and builds @ensmetadata/sdk — which the CLI and apps consume through its dist/ exports — so tests and linters work in the session. It exits early as a no-op on local machines.
  • Registers the hook in .claude/settings.json.

Test plan

  • Hook runs end-to-end: pnpm install (~20s) + SDK build via tsup, exit 0
  • Linter works: biome check packages/sdk/src/index.ts, exit 0
  • Tests work: CLI vitest run src/tests/uid.test.ts, 11/11 passed

Notes

  • Runs synchronously — web sessions start only after setup completes, which guarantees dependencies are ready before any test or lint runs. Can switch to async mode for faster startup if preferred.
  • Takes effect for all future web sessions once merged into the default branch.

https://claude.ai/code/session_01A6HKQ4t3BBPL13JiAcgN8j


Generated by Claude Code

Web sessions run in ephemeral containers where the repo is cloned
without node_modules. This SessionStart hook runs pnpm install and
builds @ensmetadata/sdk (consumed via its dist/ exports) so tests and
linters work. It is a no-op outside remote containers.

https://claude.ai/code/session_01A6HKQ4t3BBPL13JiAcgN8j
@vercel

vercel Bot commented May 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
atst-website Ready Ready Preview May 22, 2026 9:41am
ens-metadata-docs Ready Ready Preview May 22, 2026 9:41am
ens-metadata-identity Ready Ready Preview May 22, 2026 9:41am
ens-metadata-interface Ready Ready Preview May 22, 2026 9:41am

Request Review

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.

2 participants