Skip to content

fix(desktop): stabilize window geometry, command output copy, and code rendering - #3142

Merged
wsp1911 merged 4 commits into
GCWing:mainfrom
wsp1911:dev-omen
Sep 20, 2026
Merged

wsp1911 merged 4 commits into
GCWing:mainfrom
wsp1911:dev-omen

Conversation

@wsp1911

@wsp1911 wsp1911 commented Sep 20, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Fix three user-facing regressions:

  • Preserve the main Windows WebView size while minimizing and restoring the desktop window.
  • Copy complete command output regardless of terminal viewport or scroll position.
  • Keep Markdown code-block fallback rendering stable until the Prism AST engine is ready.

Type and Areas

Type: Bug fix / regression fix / UI/UX

Areas: Desktop/Tauri, Web UI, Markdown rendering, terminal tool cards

Motivation / Impact

  • Prevents minimized Windows WebViews from reflowing into a tiny layout.
  • Ensures copied ExecCommand, WriteStdin, and ExecControl output is complete for completed, running, and cancelled states.
  • Prevents intermediate Prism loading state from shifting code-block line numbers and aligns fallback colors and typography with the final theme.

Verification

  • cargo test -p openbitfun-desktop --no-default-features --lib window_webview_geometry::tests passed according to the desktop commit.
  • Manual taskbar minimize/restore verification confirmed the restoration flicker was resolved.
  • Added Web UI coverage for complete command-output copying.
  • Added syntax-highlighter coverage for AST readiness and concurrent loader requests.
  • The full verification suite was not rerun while preparing this PR draft.

Reviewer Notes

The desktop change disables autoresizing only for the main WebView on Windows; embedded browser WebViews retain their existing layout ownership. The geometry guard ignores minimized or invalid bounds and synchronizes valid restored sizes.

Checklist

  • This PR is focused and does not include secrets, temporary prompts, generated scratch files, or unrelated artifacts.
  • Relevant verification is recorded above, or skipped checks are explained.
  • User-facing strings, docs, and locales are updated where applicable.

Copy all output available to the command card regardless of terminal
scroll position or line wrapping.

Remove the viewport-based copy dependency and cover completed, running,
and cancelled output across ExecCommand, WriteStdin, and ExecControl.
Prevent taskbar minimization from shrinking the main Windows WebView
and reflowing the page into a tiny viewport before restoration.

Let the desktop host synchronize valid, non-minimized window bounds
instead of using Tauri's multi-WebView autoresizer for the main view.
Keep embedded browser layout ownership unchanged and document focused
verification for the new geometry guard.

Validation: Rust test compilation passed; the focused regression test
passed with the desktop manifest embedded in a temporary test copy.
The user confirmed that taskbar restoration no longer flickers.
Wait for the Prism AST engine before replacing the fallback to avoid
an intermediate line-number layout shifting code on first session open.

Match fallback text and line-number colors to the Prism theme and keep
line numbers italic throughout the transition.

Add coverage for engine readiness and concurrent loader requests.
@wsp1911 wsp1911 changed the title dev omen fix(desktop): stabilize window geometry, command output copy, and code rendering Sep 20, 2026
Remove unnecessary mutable overlay cleanup bindings and move shared hooks and helpers out of component modules so ESLint can enforce the intended boundaries.
@wsp1911
wsp1911 merged commit 054543b into GCWing:main Sep 20, 2026
13 checks passed
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