Repository navigation
SGPD-13292: Onboard wl-hopper to Claude cloud sessions - #1058
Alexandre Asselin (alexasselin008) wants to merge 5 commits into
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
✅ Deploy Preview for wl-hopper ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
🟡 Changes recommended
The hook can instruct sessions to skip building even after installation or build failure, leaving required package outputs missing or stale.
1 open issue
What changed in this PR
Prepares wl-hopper for Claude cloud sessions with automated environment setup and cloud-specific guidance.
Changes:
- Adds a cloud-only startup hook to prepare Node, pnpm, dependencies, and package builds, logging failures without blocking the session.
- Documents cloud constraints, connector usage, and setup limitations.
- Configures a subagent depth limit of 3.
| File | Description |
|---|---|
.claude/settings.json |
Registers the cloud-only hook and sets subagent depth. |
.claude/cloud/session-setup.sh |
Prepares the toolchain and packages, persists environment variables, and injects cloud guidance. |
.claude/cloud/README.md |
Documents setup behavior, configuration, and known gaps. |
.claude/cloud/overrides.md |
Provides cloud-specific workflow and tool instructions. |
.claude/cloud/env |
Adds a comments-only template for non-secret environment variables. |
Review effort: Balanced
| - Writes go through the GitHub MCP: `create_pull_request`, `update_pull_request`, `add_issue_comment`, `add_reply_to_pull_request_comment` (numeric comment id). It has no tool to resolve a review thread: reply to it, and say in your report that it is left for a person to resolve. | ||
| - Waiting on CI: poll both CI calls above every minute until every check-run is `completed` and every required check has appeared and finished, within the skill's timeout, then read their conclusions. Right after a push both lists can be empty: keep polling, and report "no CI started" only after 5 minutes with nothing. A wait built on `gh pr checks` burns its whole timeout here. | ||
| - **Connector tool names.** Connector prefixes differ here: the GitHub tools are `mcp__github_mcp__<tool>` and the Jira and Confluence tools `mcp__Atlassian_MCP_V2_-_MintMCP__atlassian-v2__<tool>`. A skill naming a connector tool under another prefix (`mcp__claude_ai_github_mcp__`, `mcp__claude_ai_Atlassian__`) means the tool with the same name, or the closest one, under these. | ||
| - **Node, pnpm and `dist/`.** The setup hook puts the Node major `.nvmrc` pins on PATH, makes sure the pnpm `packageManager` pins is there, runs `pnpm install --frozen-lockfile` and `pnpm build:pkg`, so `dist/` is fresh at start. Skip the `pnpm build:pkg` that AGENTS.md asks for after `pnpm i` unless you changed a package since; turbo never caches `build`, so each run takes about 20 s. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

What
Sets wl-hopper up for Claude cloud sessions (SGPD-13292), as was done for sg-protect-web:
.claude/cloud/session-setup.sh: aSessionStarthook, cloud-only (CLAUDE_CODE_REMOTE=true). It installs the Node major.nvmrcpins (the image ships Node 22), checked against nodejs.org'sSHASUMS256, makes sure the pnpmpackageManagerpins is there, then runspnpm install --frozen-lockfileandpnpm build:pkg. It logs to/tmp/cloud-setup.logand always exits 0..claude/cloud/overrides.md: cloud-only rules injected at start: no worktrees, GitHub over REST (GraphQL is refused), the cloud's connector names..claude/cloud/env(empty) and.claude/cloud/README.md..claude/settings.json: the hook, plusCLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH=3(the local default; the cloud launcher sets 1).On a developer machine the hook exits at once, and nothing else changes locally.
Verified in the cloud (Workleap POC - Cloud (shared))
installandbuild:pkgpassed.build:pkg,doc:generate,build:mcp,build:skills,pnpm lintandpnpm test(15/15 tasks) all pass._update-tokensran end to end._port-componentran through its research phase (raw.githubusercontent.com reachable). ThehopperMCP server is connected.A session started on this commit ran the hook on its own: the rules were injected at startup, Node 26 was installed, a cold
pnpm installplusbuild:pkgran, and spawn depth 3 applied from the start.🤖 Generated with Claude Code