This is a feature request for the Anthropic Claude Code editor to support a `url` field in `launch.json` for its preview feature. Currently, the preview always connects to `localhost`, which is incompatible with dev servers running on HTTPS or specific URLs, blocking user workflows. Implementing this would allow users to specify the exact URL for the preview.
A starter prompt for Claude Code, what you'll need, and how to reach them.
You are an expert software engineer. Your task is to implement a feature for the `anthropics/claude-code` repository (https://github.com/anthropics/claude-code) that allows the preview feature to use a custom URL specified in `launch.json`. The current implementation defaults to `localhost`, which fails for dev servers running on HTTPS or specific hosts. Fork the repository, identify the preview feature's URL handling logic. Implement parsing for a new optional `url` field in `launch.json`. If `url` is provided, use it for the preview connection; otherwise, revert to the existing `localhost` behavior. Focus on a minimal viable change to support this `url` field. Ensure the changes are tested. Describe the full steps to achieve this in a pull request-ready format.
Standard for any GitHub contribution.
Reach Anthropic Claude Code users and developers experiencing friction with the `launch.json` preview feature. Highlight how a contribution to the core editor demonstrates deep understanding of AI coding tool internals, which is relevant for those using AI agents, tracking usage, or preparing for Claude certifications.
### Preflight Checklist - [x] I have searched [existing requests](https://github.com/anthropics/claude-code/issues?q=is%3Aissue%20label%3Aenhancement) and this feature hasn't been requested yet - [x] This is a single feature request (not multiple features) ### Problem Statement My dev server runs on https and needs to be accessed via a specific URL. This seems to be incompatible with Claude code's "preview" feature which always connects to `localhost` ### Proposed Solution Support `url` in the `launch.json` configuration that the preview feature reads. ### Alternative Solutions _No response_ ### Priority Critical - Blocking my work ### Feature Category CLI commands and flags ### Use Case Example _No response_ ### Additional Context _No response_
Requires studying the existing codebase for a few hours to understand relevant modules.
Learn it: TypeScript handbook ↗
Standard dev setup for web/Electron applications.
Comment directly on the GitHub issue (https://github.com/anthropics/claude-code/issues/29315), then open a draft pull request linking the issue.
“I've started working on a solution to support the `url` field in `launch.json` for the preview feature, as it's a critical blocker for many. I aim to submit a PR with a tested implementation that uses the specified URL for previewing, resolving the `localhost` limitation.”
Open the original ↗