Skip to content

armgit / Wake

Public Imported from GitHub
0

All your AI agent sessions in one place — browse, search, resume. Rust + GPUI.

Rust

fix: make header buttons clickable on Windows (#65)

Corey Chiu0ab144ee5646
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8eef552..68fb266 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,6 +6,7 @@
- Fix: On Windows and Linux, adding a memory location offers a file picker next to the folder picker, so a single file no longer has to be typed in by hand (#68, thanks @lin-code-world)
- New: A memory location can be written as `<project>/CODEBUDDY.md`, like the built-in project files, to read that file or folder in every project (#67, thanks @lin-code-world)
- Fix: Clean Up no longer refuses CodeBuddy and WorkBuddy sessions written by recent versions (#66, thanks @lin-code-world)
+- Fix: On Windows, buttons at the top of pages and sessions, such as Back, Refresh and Open In, respond to clicks (#65, thanks @lin-code-world)
## [0.9.3] — 2026-10-13
diff --git a/crates/wake/src/workbench.rs b/crates/wake/src/workbench.rs
index 5506072..7d0504a 100644
--- a/crates/wake/src/workbench.rs
+++ b/crates/wake/src/workbench.rs
@@ -152,7 +152,6 @@ fn library_header(
.w_full()
.h(LIBRARY_IDENTITY_HEIGHT)
.flex_shrink_0()
- .window_control_area(WindowControlArea::Drag)
.px(inset)
.justify_center()
.child(
@@ -6891,8 +6890,7 @@ impl Workbench {
// ---------------- Insights ----------------
- /// Insights 整页(替换中栏+右栏)。头部沿用中栏 88px 标题节奏兼窗口
- /// 拖拽区;内容 720px 阅读宽居中,区块只用留白与组头分隔,不做卡片墙
+ /// Insights 整页(替换中栏+右栏)。头部沿用中栏 88px 标题节奏;内容 720px 阅读宽居中,区块只用留白与组头分隔,不做卡片墙
fn render_insights(&self, cx: &Context<Self>) -> AnyElement {
let theme = cx.theme();
// 副标题只说 "Since {首会话月份}"(用户定稿);拿不到时间时回落默认句
@@ -9847,7 +9845,9 @@ fn project_badge(
/// 阅读面头部的骨架(会话详情与记忆阅读面共用):44px 上下文行(左 `lead`:Label muted
/// 的品牌图 + agent + 归属;右 `actions`)→ 可换行的 22px 标题(整题挂 tooltip)→
-/// Label 的元信息行。整块是窗口拖拽区
+/// Label 的元信息行。不挂 `window_control_area(Drag)`:它只在 Windows 上起作用,而 Windows 用的是系统
+/// 标题栏,挂上只会在下面多出一块拖窗区、吞掉里面按钮的点击(gpui 只要鼠标下有拖拽区就回 HTCAPTION,#65);
+/// macOS / Linux 的后端本来就不理它
fn detail_header_frame(
id: &'static str,
lead: Vec<AnyElement>,
@@ -9860,7 +9860,6 @@ fn detail_header_frame(
v_flex()
.id(id)
.flex_shrink_0()
- .window_control_area(WindowControlArea::Drag)
.px(SPACE_XXL)
.pb(SPACE_SM)
.border_b_1()
diff --git a/crates/wake/src/workbench/cleanup/history.rs b/crates/wake/src/workbench/cleanup/history.rs
index 2a584d2..bdad987 100644
--- a/crates/wake/src/workbench/cleanup/history.rs
+++ b/crates/wake/src/workbench/cleanup/history.rs
@@ -175,7 +175,6 @@ impl Workbench {
.px(SPACE_XXL)
.gap(SPACE_MD)
.items_start()
- .window_control_area(WindowControlArea::Drag)
.child(
div().pt(zpx(24.)).child(
Button::new("cleanup-history-back")