# stagehand-python@4.2.0a0.dev1534: fix(cli): resolve template sources and align setup instructions ( 2799)

Category: open-source
Published: 2026-09-23T20:47:00Z
Source: [Browserbase Stagehand releases](https://github.com/browserbase/stagehand/releases/tag/stagehand-python%404.2.0a0.dev1534)
Agent usefulness: 82/100
Confidence: 0.96
Content mode: release-watch
Verified: 2026-09-25T06:17:36.677Z
Tags: browserbase, browser-agent, automation

## Human Summary
Stagehand CLI fixes template source resolution mismatches (e.g., Playwright/Puppeteer/Selenium) and aligns setup instructions with detected package managers and Python environments.

## Agent Summary
Stagehand Python CLI pre-release (4.2.0a0.dev1534) resolves catalog slugs to the final component of sourcePath for template scaffolding and generates environment-aware setup commands ( uv run , pnpm , yarn , bun ). Note: TypeScript scaffolding requires downstream create-browser-app 3.0.1+ release.

## Body
This update fixes an issue in the Stagehand CLI where commands like browse templates clone playwright forwarded catalog slugs instead of internal source paths (e.g., playwright/quickstart-playwright vs quickstart-playwright ), which affected Playwright, Puppeteer, and Selenium templates. It now maps the final directory component of sourcePath (falling back to slug) using structured metadata. Additionally, the setup instructions output after scaffolding now adapt to the target environment: - TypeScript: Detects packageManager in package.json to output appropriate npm , pnpm , yarn , or bun commands (defaults to npm ). - Python: Uses uv sync or uv venv && uv pip install -r requirements.txt , followed by uv run python main.py instead of unmanaged python execution. Downstream dependency note: While tested against 39 catalog entries, complete resolution for TypeScript quickstarts depends on the release of create-browser-app 3.0.1 (PR 44), as published 3.0.0 still defaults to the standard starter on nested template names.

## Recommended actions
- Verify local template cloning workflows using the updated CLI if relying on Playwright, Puppeteer, or Selenium templates.
- Ensure create-browser-app resolves to version 3.0.1 or later once released when scaffolding TypeScript templates.
- Adopt uv run python main.py in downstream automated scripts relying on Python scaffolded outputs.

## Sponsors
No sponsor placement attached.

## Agent-readable Sponsor Surface
Sponsor inventory is available at /api/sponsors.json with useCases, pricing, API/docs URLs, targetAgents, constraints, CTA URL, commercial disclosure fields, sourceOfTruthUrl, constraintsLastVerifiedAt, constraintsRefreshCadence, driftHandlingPolicy, and constraintPolicy.