Skip to content

Keep editor full height when output is a short error - #332

Merged
mxschmitt merged 4 commits into
mainfrom
cursor/fix-editor-height-8395
Sep 4, 2026
Merged

Keep editor full height when output is a short error#332
mxschmitt merged 4 commits into
mainfrom
cursor/fix-editor-height-8395

Conversation

@mxschmitt

@mxschmitt mxschmitt commented Sep 4, 2026

Copy link
Copy Markdown
Owner

Why

On production, after Run fails with a short error, the editor clips and leaves a large empty region below. Grid/Row/Col used height: 100%, which does not resolve against Content’s flex-induced height: auto, so the playground sized to the error content (~216px).

Fix

Fill the shell with rsuite Box props (flex={1}, minh={0}, display="flex", direction="column") instead of a layout stylesheet. Custom CSS is only:

  • the existing html / body / #app height reset
  • a max-width: 767px editor min-height so stacked mobile columns stay content-sized

CI

The frontend image build runs tsc && vite build. The new layout spec imported Page from @playwright/test, which is not a frontend dependency, so Docker tsc failed with TS2307. The spec now imports Page from playwright/test.

Tests

cd frontend && npx tsc --noEmit && npx playwright test src/components/App/index.spec.tsx --project=chromium

Includes editor column stays full height after a short output error.

Open in Web Open in Cursor 

Percentage height on the Grid/Row/Cols does not resolve against
Content's flex-induced auto height, so a short error output collapsed
the playground to ~200px. Fill the shell with flex instead and assert
the columns stay viewport-tall after a bot-check error.

Co-authored-by: Max Schmitt <max@schmitt.mx>
@mxschmitt
mxschmitt marked this pull request as ready for review September 4, 2026 05:31
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 4, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-04T05:34:24.963283Z 931f5bb Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

cursoragent and others added 3 commits September 4, 2026 05:33
Keep the Content/Grid/Row fill chain on Box props so a short error
does not collapse the editor. Leave only the html/body/#app height
reset, and use minh={{ xs: 500, md: 0 }} for the mobile editor.

Co-authored-by: Max Schmitt <max@schmitt.mx>
rsuite media-query style updates did not apply flex/minh at md, so
the editor stayed at the 500px xs floor. Use flex={1} on the fill
chain and a single max-width 767px rule for stacked columns.

Co-authored-by: Max Schmitt <max@schmitt.mx>
Production tsc type-checks component specs, and @playwright/test is
not a frontend dependency. Import Page from playwright/test instead.

Co-authored-by: Max Schmitt <max@schmitt.mx>
@mxschmitt
mxschmitt merged commit 8cd776b into main Sep 4, 2026
10 of 11 checks passed
@mxschmitt
mxschmitt deleted the cursor/fix-editor-height-8395 branch September 4, 2026 05:59
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.

2 participants