Open DevTools after the renderer loads to fix the blank screen on a fresh config - #4512
Merged
Merged
Conversation
Collaborator
📊 Performance Test ResultsComparing aa2748f vs trunk app-size
site-editor
site-startup
Results are median values from multiple test runs. Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change (<50ms diff) |
sejas
approved these changes
Aug 12, 2026
sejas
left a comment
Member
There was a problem hiding this comment.
I was able to start the app without refreshing it. I created a new site and it assigned the correct port. Thanks for the fix!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related issues
npm startagainst an emptyDEV_CONFIG_DIR.How AI was used in this PR
Claude Code reproduced the failure, isolated the trigger across fresh/seeded configs and both renderers, and wrote the fix. Reviewed and verified locally.
Proposed Changes
devToolsOpen(any fresh profile) opened a blank window. DevTools was attached before the first page load committed, which left the sandboxed renderer without its preload script — nowindow.ipcApi, so the renderer's bootstrap threw. DevTools now opens once the renderer has finished loading.Testing Instructions
DEV_CONFIG_DIR=/tmp/studio-fresh npm startAttempted to get the 'ipcNative' object but it was missing, and the console showsIPC API not available.Pre-merge Checklist