Skip to content

SGPD-13292: Onboard wl-hopper to Claude cloud sessions - #1058

Open
Alexandre Asselin (alexasselin008) wants to merge 5 commits into
mainfrom
SGPD-13292-cloud-onboarding
Open

Alexandre Asselin (alexasselin008) wants to merge 5 commits into
mainfrom
SGPD-13292-cloud-onboarding

Conversation

@alexasselin008

@alexasselin008 Alexandre Asselin (alexasselin008) commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

What

Sets wl-hopper up for Claude cloud sessions (SGPD-13292), as was done for sg-protect-web:

  • .claude/cloud/session-setup.sh: a SessionStart hook, cloud-only (CLAUDE_CODE_REMOTE=true). It installs the Node major .nvmrc pins (the image ships Node 22), checked against nodejs.org's SHASUMS256, makes sure the pnpm packageManager pins is there, then runs pnpm install --frozen-lockfile and pnpm build:pkg. It logs to /tmp/cloud-setup.log and 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, plus CLAUDE_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))

  • Setup in about 30 s: Node 26.14.0 installed, install and build:pkg passed.
  • build:pkg, doc:generate, build:mcp, build:skills, pnpm lint and pnpm test (15/15 tasks) all pass.
  • _update-tokens ran end to end. _port-component ran through its research phase (raw.githubusercontent.com reachable). The hopper MCP 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 install plus build:pkg ran, and spawn depth 3 applied from the start.

🤖 Generated with Claude Code

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>
Copilot AI balanced review requested due to automatic review settings December 1, 2026 20:44
@changeset-bot

changeset-bot Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 666cb7c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@netlify

netlify Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for wl-hopper ready!

Name Link
🔨 Latest commit 666cb7c
🔍 Latest deploy log https://app.netlify.com/projects/wl-hopper/deploys/6b0f3d38b0afe224b2624feb
😎 Deploy Preview https://deploy-preview-1058--wl-hopper.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

View Storybook

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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>

This branch has not been deployed

No deployments
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