Skip to content

fix: sidebar drag regression, short-bubble wrap, pi version probe#92

Merged
Tryanks merged 1 commit into
mainfrom
fix/sidebar-drag-regression
Jul 19, 2026
Merged

fix: sidebar drag regression, short-bubble wrap, pi version probe#92
Tryanks merged 1 commit into
mainfrom
fix/sidebar-drag-regression

Conversation

@Tryanks

@Tryanks Tryanks commented Jul 19, 2026

Copy link
Copy Markdown
Owner

Three targeted fixes for issues found using v0.1.24:

Sidebar can't be dragged (regression from #80): the remembered-width restore ran on every render frame, and since on_resize only records the width on mouse-up, each in-progress drag frame was snapped back. The restore is now armed only when the viewport width actually changes (the fullscreen/rescale trigger it was built for) and keeps applying just until the panel reports the restored width, so it can never fight a drag.

Short user messages wrap their last character (regression from #83): the intrinsic bubble width from layout_line could lose to sub-pixel snapping, wrapping the final glyph — most visible with CJK, where any 1px deficit moves exactly one character. Width is now ceiled with 1px slack.

pi shows "installed but failed to run": pi prints --version to stderr; run_capture_env treated a clean exit with empty stdout as failure. It now falls back to stderr (verified locally against pi 0.80.10).

Gates: fmt / clippy (services+ui) / services+ui tests green locally; full workspace gate on CI.

🤖 Generated with Claude Code

Three post-v0.1.24 fixes:

- The sidebar width restore ran every frame, snapping the panel back
  during a drag (on_resize only records on mouse-up) — the sidebar
  could no longer be resized at all. The restore is now armed only by
  a viewport width change and disarms once the panel reports the
  restored width.
- Short user messages wrapped their last glyph to a second line: the
  measured intrinsic width could lose to sub-pixel snapping. Ceil the
  computed bubble width and add 1px slack.
- pi prints --version to stderr; provider probes treated the empty
  stdout of a clean exit as a failed run. Fall back to stderr.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Tryanks
Tryanks merged commit df7934a into main Jul 19, 2026
5 of 6 checks passed
@Tryanks
Tryanks deleted the fix/sidebar-drag-regression branch July 19, 2026 05:43
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