Skip to content

fix(desktop): respect configured window size#644

Open
snvtac wants to merge 1 commit into
lsdefine:mainfrom
snvtac:snvtac/643-configurable-desktop-window-size
Open

fix(desktop): respect configured window size#644
snvtac wants to merge 1 commit into
lsdefine:mainfrom
snvtac:snvtac/643-configurable-desktop-window-size

Conversation

@snvtac

@snvtac snvtac commented Jun 25, 2026

Copy link
Copy Markdown

Summary

  • stop creating the desktop main window maximized by default
  • apply ~/.ga_desktop_settings.json window preferences before showing the main window
  • support maximized, window_width / window_height, and compatible width / height settings with unit coverage

Fixes #643.

Testing

  • git diff --check
  • CARGO_HOME=../work/cargo-home CARGO_TARGET_DIR=../work/cargo-target cargo test
  • CARGO_HOME=../work/cargo-home CARGO_TARGET_DIR=../work/cargo-target cargo check
  • CARGO_HOME=../work/cargo-home CARGO_TARGET_DIR=../work/cargo-target cargo clippy --all-targets

Note: cargo clippy --all-targets -- -D warnings still fails on the existing BufReader::lines().flatten() lint already present on origin/main; this PR leaves that unrelated lint untouched.

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.

桌面版GenericAgent启动默认强制最大化窗口,不支持通过配置修改默认窗口大小

1 participant