Skip to content

armgit / Wake

Public Imported from GitHub
0

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

Rust

Close out remaining Windows review items

Claude89cdb6b021bc
diff --git a/README.md b/README.md
index 2497b7d..83c6a2e 100644
--- a/README.md
+++ b/README.md
@@ -7,7 +7,7 @@
[![Stars](https://img.shields.io/github/stars/iAmCorey/Wake?style=flat-square)](https://github.com/iAmCorey/Wake/stargazers)
[![CI](https://img.shields.io/github/actions/workflow/status/iAmCorey/Wake/ci.yml?branch=main&label=CI&style=flat-square)](https://github.com/iAmCorey/Wake/actions/workflows/ci.yml)
-A native desktop app that gathers every coding-agent session on your machine into one place — browse, full-text search, and resume any conversation in seconds. Built with **Rust + GPUI** (gpui 0.2 + gpui-component 0.5). macOS first; experimental Linux support since v0.2.5, experimental Windows support since v0.2.6.
+A native desktop app that gathers every coding-agent session on your machine into one place — browse, full-text search, and resume any conversation in seconds. Built with **Rust + GPUI** (gpui 0.2 + gpui-component 0.5). macOS first; experimental Linux support since v0.2.5, experimental Windows support since v0.2.7.
Your agent history is scattered across `~/.claude`, `~/.codex`, and ten other private directories. Wake reads them all, read-only, and gives you one fast window into it. Everything stays local: no network requests, ever.
diff --git a/crates/wake-core/src/adapters/parse_utils.rs b/crates/wake-core/src/adapters/parse_utils.rs
index aee7a7a..e14d8d0 100644
--- a/crates/wake-core/src/adapters/parse_utils.rs
+++ b/crates/wake-core/src/adapters/parse_utils.rs
@@ -331,8 +331,13 @@ pub fn is_injected_user_content(text: &str) -> bool {
return true;
}
// Codex 的 skill 展开体:skill-name + SKILL.md 路径 + frontmatter(不带 $,
- // 用户手打的 "$skill" 引用是另一条独立消息,不受影响)
- t.contains("/.codex/plugins/") || (t.contains("/plugins/cache/") && t.contains("SKILL.md"))
+ // 用户手打的 "$skill" 引用是另一条独立消息,不受影响)。路径子串两种
+ // 分隔符都认——Windows 上 Codex 写进日志的是反斜杠路径,只匹配 '/'
+ // 会让展开体漏过滤、灌进正文与 FTS(2026-08-25 review)
+ t.contains("/.codex/plugins/")
+ || t.contains(r"\.codex\plugins\")
+ || ((t.contains("/plugins/cache/") || t.contains(r"\plugins\cache\"))
+ && t.contains("SKILL.md"))
}
/// tool 输入的单行摘要
diff --git a/crates/wake/build.rs b/crates/wake/build.rs
index 92c391e..6186b17 100644
--- a/crates/wake/build.rs
+++ b/crates/wake/build.rs
@@ -18,6 +18,12 @@ fn main() {
res.set("ProductName", "Wake");
res.set("FileDescription", "Wake — coding agent session manager");
if let Err(e) = res.compile() {
+ // 宿主即 Windows(= 真机构建,rc.exe 理应在)时硬失败:静默降级会让
+ // make-windows.ps1 打出一个没图标、没版本信息的 exe 而无人察觉;
+ // 跨平台 check(Linux 宿主查 windows 目标)才允许降级为警告
+ if cfg!(windows) {
+ panic!("Windows resources failed to embed (icon/version info): {e}");
+ }
println!("cargo:warning=Windows resources skipped (icon/version info): {e}");
}
}
diff --git a/crates/wake/src/workbench.rs b/crates/wake/src/workbench.rs
index b942e08..edd7aff 100644
--- a/crates/wake/src/workbench.rs
+++ b/crates/wake/src/workbench.rs
@@ -1296,6 +1296,15 @@ impl Workbench {
cx: &mut Context<Self>,
) -> bool {
let expanded = expand_tilde(raw_text.trim());
+ // Windows 上把手输的 '/' 折成 '\':`~/.claude` 展开后是
+ // `C:\Users\me/.claude` 这种混分隔符形态,而 path_owns 的重叠判定是
+ // 字节精确比较、explorer 只认反斜杠——不在入口归一,同一目录就会以
+ // 两种拼写各注册一份(POSIX 不动:'\' 在那边是合法文件名字符)
+ let expanded = if cfg!(target_os = "windows") {
+ expanded.replace('/', "\\")
+ } else {
+ expanded
+ };
// 绝对性先判、只判一次:is_absolute 三端同判据(starts_with('/') 会把
// 所有 Windows 盘符路径误拒),空串它也判 false,无需另设 is_empty 关。
// **必须判在剪尾之前**:`//` 剪完是空串,若拿剪后的结果去判就会退回
@@ -2871,6 +2880,16 @@ impl Workbench {
.on_click(cx.listener(move |this, _, window, cx| {
if let Some(term) = current {
this.do_resume(term, remember_current, window, cx);
+ } else {
+ // 空列表在 macOS 不可能(Terminal.app 恒在),
+ // Windows/Linux 上 PATH 被启动器改写时会发生
+ // ——静默无操作是死按钮,至少说一声为什么
+ window.push_notification(
+ Notification::warning(
+ "No terminal application found on PATH",
+ ),
+ cx,
+ );
}
})),
)