Skip to content

Fix compressed window on first launch; enforce sidebar and main-area minimum widths (1.0.1) - #1

Merged
jkyberneees merged 1 commit into
mainfrom
fix/window-min-width
Oct 31, 2026
Merged

jkyberneees merged 1 commit into
mainfrom
fix/window-min-width

Conversation

@jkyberneees

Copy link
Copy Markdown
Contributor

Problem

On a fresh install the window opened at its 980 pt minimum (no default size and no saved frame). The first screen, Discover, needs about 1021 pt (sidebar 220 + panes 380 + 420), and chat with the settings inspector needs about 1060. Both appeared compressed from left to right. The detail column had no minimum of its own, so inner minimums never reached the window's minimum.

Fix

  • .defaultSize(width: 1280, height: 820) for the first launch; after that, the saved frame wins.
  • WindowLayout constants: sidebar 240–340, detail min 820 (chat 560 + inspector 260), window min = their sum (1060), all applied as split-view column widths.
  • Chat keeps at least 560 pt next to the inspector. Discover panes are min 340 / 400.
  • Discover model badges move to a second row when narrow, instead of breaking mid-word (ViewThatFits).
  • Dev aid: MLXRUNNER_SNAPSHOT_SIZE=WxH renders snapshots at that size, clamped to the window minimum.
  • Version 1.0.1 and a CHANGELOG entry.

Verification

  • With the saved frame deleted, the window opens at 1280×820 with contentMinSize 1060×692.
  • Snapshots at the minimum size: the sidebar, chat with inspector, Discover and Server render unclipped.
  • swift test: 94 tests passed.

Not covered: dragging the sidebar to its 340 max at the minimum window size (I couldn't drag in headless mode).

🤖 Generated with Claude Code

…minimum widths (1.0.1)

A fresh install had no saved frame and no default size, so the window opened at its 980 pt
minimum. Discover (the first screen) needs ~1021 pt and chat with the inspector ~1060, so
both were squeezed. Now: defaultSize 1280x820; sidebar column 240-340; detail column min 820
(chat 560 + inspector 260, which also fits Discover's 340 + 400 panes); window min is their
sum. Discover badges fall back to two rows instead of wrapping mid-word.
MLXRUNNER_SNAPSHOT_SIZE renders snapshots at a given (clamped) size.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Cancelled 🚫

View logs ↗
d1248a9 2026-10-31T14:31:27.755Z View logs ↗

@jkyberneees
jkyberneees merged commit 4f1d8b8 into main Oct 31, 2026
4 of 5 checks passed
@jkyberneees
jkyberneees deleted the fix/window-min-width branch October 31, 2026 14:31
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