# Open in IDE

When a test fails, you can send the failure context directly to your IDE for AI-assisted debugging. ReSim packages the log summary, relevant log lines, and test identifiers into a prompt and stages it in your IDE's AI chat panel — ready for you to review and submit.

## Supported IDEs

| IDE     | Requirements                                                                                          |
| ------- | ----------------------------------------------------------------------------------------------------- |
| VS Code | [ReSim VS Code extension](https://marketplace.visualstudio.com/items?itemName=resim-ai.resim) v0.1.3+ |
| Cursor  | [ReSim Cursor extension](https://open-vsx.org/extension/resim-ai/resim) v0.1.3+                       |

## Using the feature

1. Navigate to a test with an **Error** status.
1. Click the **Open in IDE** button near the top of the page.
1. Select your IDE from the dropdown menu.
1. Your IDE will open with a pre-filled prompt in the AI chat panel.
1. Review the prompt, then submit it to start investigating the failure.

Note

This prompt is staged as a draft — it won't be sent to the AI assistant until you review and submit it.

### Copy Prompt

If you use an AI tool that isn't listed in the dropdown (Claude Code, Codex, etc) - select **Copy Prompt** from the dropdown instead. This copies the failure context to your clipboard as a ready-to-use prompt that you can paste into any AI assistant.

## Troubleshooting

**I don't see the "Open in IDE" button**

The button only appears on tests in the Error state. This feature is also enabled on a per-organization basis — contact [info@resim.ai](mailto:info@resim.ai) if you don't see it on failed tests in the Error state.

**My IDE didn't open**

For VS Code and Cursor, make sure the ReSim extension is installed and active. If the link expires (it's valid for 30 seconds), click **Open in IDE** again.
