Skip to content

Playground Updates#935

Draft
amadeus wants to merge 13 commits into
beta-1.3from
amadeus/playground-updates
Draft

Playground Updates#935
amadeus wants to merge 13 commits into
beta-1.3from
amadeus/playground-updates

Conversation

@amadeus

@amadeus amadeus commented Jul 2, 2026

Copy link
Copy Markdown
Member

Working through adding modes for Virtualizer and CodeView in the Playground.

@vercel

vercel Bot commented Jul 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
pierre-docs-diffs Ready Ready Preview Jul 3, 2026 7:35pm
pierre-docs-diffshub Ready Ready Preview Jul 3, 2026 7:35pm
pierre-docs-trees Ready Ready Preview Jul 3, 2026 7:35pm
pierrejs-diff-demo Ready Ready Preview Jul 3, 2026 7:35pm

Request Review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e420a59a70

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +1131 to +1133
{viewMode === 'normal' ? (
<EditorProvider editor={editor}>{fileDiff}</EditorProvider>
) : viewMode === 'virtualizer' ? (

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Gate edit-mode retries to the normal view

When a user loads or shares a URL like /playground?view=virtualizer&edit=edit (the UI can create this by switching views while already in Edit), this branch never mounts the EditorProvider/FileDiff, but contentEditable remains true. The marker effect above then calls editor.setMarkers(...), catches Text document is not initialized, and schedules another requestAnimationFrame forever because the editor will never attach in Virtualizer/CodeView modes. Gate contentEditable/the marker retry on viewMode === 'normal' or reset edit mode when leaving Normal.

Useful? React with 👍 / 👎.

It's important to test both versions
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.

1 participant