Skip to content

armgit / Wake

Public Imported from GitHub
0

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

Rust

docs: update project documentation for v0.3.6

Corey Chiu4de0929e3274
diff --git a/CHANGELOG.md b/CHANGELOG.md
index bfea4c6..67a064e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,12 +8,12 @@
- New: Window → Main Window brings the main window back when only Settings is left open
- Fix: Close Window in the File menu and ⌘W reliably close the window
- Fix: About, Settings and Check for Updates stay usable in the menu bar after the main window is closed
-- Fix: new sessions no longer go missing until the next refresh when macOS drops file change notifications
+- Fix: new sessions no longer go missing until the next refresh when the system drops file change notifications
- Fix: the Settings window now opens on the same screen as the Wake window instead of always on the primary display
-- New: Wake remembers which screen and position its window was on and opens there next time, including after a restart or a Dock reopen
+- New: Wake remembers which screen its window was on, its position and size, and whether it was maximized or full screen, and opens it there next time, including after a restart or a Dock reopen
- Fix: your own messages in the conversation view no longer collapse into a one-character-wide column
- Fix: the close button in the Add location and Edit location dialogs is visible again
-- Fix: clicking outside the Add location dialog or the search palette closes it again
+- Fix: clicking outside the Add / Edit location dialog or the search palette closes it again
- New: Export as Markdown and Save image ask where to save the file and start from the folder you used last time
## [0.3.5] — 2026-09-02
diff --git a/DESIGN.md b/DESIGN.md
index 2fd6771..bc52873 100644
--- a/DESIGN.md
+++ b/DESIGN.md
@@ -184,7 +184,7 @@ macOS 不设置横跨三栏的自定义 header。主窗口透明标题栏高 44p
- 用户使用靠右的低饱和引用块。
- 助手正文平铺,不在每条回复前重复 Agent 名称。
-- 消息图片以 104px、10px 圆角的缩略图随正文排列;点击后使用全窗口暗色遮罩按原始宽高比预览,绝不放大超过源尺寸。预览胶囊集中显示格式、尺寸、文件大小以及复制/保存动作;无法直接预览的格式保留原始字节,并提供下载入口。
+- 消息图片以 104px、10px 圆角的缩略图随正文排列;点击后使用全窗口暗色遮罩按原始宽高比预览,绝不放大超过源尺寸。预览胶囊集中显示格式、尺寸、文件大小以及复制/保存动作;无法直接预览的格式保留原始字节,并提供 Save image(系统「另存为」,与导出共用上次目录)入口。
- 仅有 thinking、没有正文或工具的中间事件不进入阅读视图;正式回复所带的 thinking 显示为折叠面板,收起是一行摘要,展开后显示完整原文。Thinking 与工具调用分别保存展开状态,禁止互相连带。
- Codex review 的 `ExitedReviewMode.review_output` 转为可读 Markdown,展示结论、说明、finding、代码位置与置信度;注入式 `<user_action>` 只作缺少结构化事件时的文本兜底,不显示 XML 外壳,也不与结构化结果重复。
- 工具调用合并为低强调折叠卡:单条收起时显示工具名与参数摘要,多条显示数量与名称序列,失败数常驻。摘要格数从当前阅读区像素宽反算,再用 `unicode-width` 截断。展开后显示可用的完整 Input,以及成功和失败 Output;失败结果使用 danger 色。Input/Output 面板最多展示前 600 个字符,但始终提供复制完整原文的操作,不引入嵌套滚动区。
@@ -240,7 +240,7 @@ emoji 不再承担界面或正文结构图标职责。
- 先改标准结构和控件,再添加自定义材质面。
- 颜色只改 `theme.rs`;图标必须登记到 `assets.rs`,路径包含后缀(`.svg` / `.png`,漏后缀 = 静默空白)。
- 所有交互元素先设置 `.id()` 再绑定点击或滚动行为。
-- `Root::render_dialog_layer` 与 `Root::render_notification_layer` 必须保留。
+- 每个窗口根节点在内容之后必须挂 `ui::overlay_layers(window, cx)`(封装 `Root::render_dialog_layer`、`Root::render_notification_layer` 与"点面板外关闭"的 sentinel,顺序即契约);普通弹窗经 `ui::open_closable_dialog` 打开,确认类用 `open_alert_dialog`。
- 对原始 Agent 数据目录继续只读;任何视觉改造不得破坏刷新、搜索跳转、恢复或删除语义。
- 术语统一:用户可见文案一律说 **Refresh** 与 **Session**,不出现 scan / rescan / rebuild / index(这些只保留在数据层内部命名中)。
diff --git a/PRODUCT.md b/PRODUCT.md
index 626ac9a..81c8a2b 100644
--- a/PRODUCT.md
+++ b/PRODUCT.md
@@ -12,7 +12,7 @@ Rust + gpui 0.2 + gpui-component 0.5(用户既定,workspace: crates/wake-core
## Users
-Corey 本人(独立开发者,主力工具 Claude Code 与 Codex,中文为主)。已开源(2026-08-18 v0.1.0 首发,当前 v0.3.4 2026-09-01,github.com/iAmCorey/Wake,MIT):面向同时使用多个 coding agent 的开发者。
+Corey 本人(独立开发者,主力工具 Claude Code 与 Codex,中文为主)。已开源(2026-08-18 v0.1.0 首发,当前 v0.3.6 2026-09-02,github.com/iAmCorey/Wake,MIT):面向同时使用多个 coding agent 的开发者。
## Product Purpose
@@ -28,7 +28,7 @@ Corey 本人(独立开发者,主力工具 Claude Code 与 Codex,中文为主)。
## Capabilities and Constraints
-已实现:十四家 adapter、FTS5 trigram 搜索(<3 码点 LIKE 降级)、**搜索跳转定位**(2026-08-18:⌘K 命中直达详情页对应消息并高亮,seq 契约保证)、详情页逐消息渲染(气泡/工具折叠簇/thinking/tree-sitter 高亮;2026-08-17 由整篇 markdown 方案升级)、恢复/收藏/置顶/导出/删除(废纸篓+墓碑)、文件监听增量、Insights 统计页(0.3.0:活跃热力图与 streak、时段/星期/月份分布、Agents·Projects·Models 三榜单按 sessions/tokens/prompts 切换;口径=主线用户消息,规格见 DESIGN.md)、Updates 页与 macOS Wake 菜单手动检查 GitHub 最新正式版并打开 Release 页更新(不后台联网、不自动替换应用包)、测试套件(adapter 契约、DB 往返、scanner 回归 + CI 三平台 + pre-commit,合成 fixture)、三端桌面(macOS 主平台;Linux/Windows experimental,终端恢复/废纸篓·回收站/剪贴板按平台原生实现,发版 CI 自动出六产物)。
+已实现:十四家 adapter、FTS5 trigram 搜索(<3 码点 LIKE 降级)、**搜索跳转定位**(2026-08-18:⌘K 命中直达详情页对应消息并高亮,seq 契约保证)、详情页逐消息渲染(气泡/工具折叠簇/thinking/tree-sitter 高亮;2026-08-17 由整篇 markdown 方案升级)、恢复/收藏/置顶/导出/删除(废纸篓+墓碑)、文件监听增量、Insights 统计页(0.3.0:活跃热力图与 streak、时段/星期/月份分布、Agents·Projects·Models 三榜单按 sessions/tokens/prompts 切换;口径=主线用户消息,规格见 DESIGN.md)、Updates 页与 macOS Wake 菜单手动检查 GitHub 最新正式版并打开 Release 页更新(不后台联网、不自动替换应用包)、测试套件(adapter 契约、DB 往返、scanner 回归 + CI 三平台 + pre-commit,合成 fixture)、三端桌面(macOS 主平台;Linux/Windows experimental,终端恢复/废纸篓·回收站/剪贴板按平台原生实现,发版 CI 自动出六产物)、窗口记忆(0.3.6:记住所在屏幕/屏内位置/最大化/全屏,重启与 Dock 重开都回到原处,Settings 开在主窗所在屏)、完整 macOS 菜单栏(0.3.6:标准 Edit/Window 菜单、⌘W、Window → Main Window,主窗关闭后 About/Settings/Updates 仍可用)、导出 Markdown 与保存图片走系统「另存为」并记住上次目录(0.3.6,issue #25)。
约束:对 agent 数据目录只读;绝不写 Codex 的 SQLite;不读凭证;GPUI 无 SF Symbols(图标用 lucide SVG 自备)。
已支持十四家 agent:Claude Code、Codex、Qoder CLI(`~/.qoder/projects` JSONL,active-leaf 分支恢复、tool result 回挂、`QODER_CONFIG_DIR`)、Copilot CLI、Cursor(CLI transcripts)、OpenCode(含 OpenCode 2 next,stable 的 `opencode.db` 与 next 的 `opencode-next.db` 同时扫描;逐会话兼容 `message+part`、真实 `session+session_message` 及早期 `session_v2` schema;preview 会话标 opencode2 徽章)、Kiro、Gemini CLI(2026-08-17 P1 五家落地)+ Pi、Oh My Pi、Grok Build、Kimi Code、Antigravity CLI(2026-08-19 对齐 kooky 内置 roster;Antigravity 正文加密仅元数据卡片)+ DeepSeek Harness(dsh,2026-08-20,zstd 事件日志透明解压;格式由源码推断,当天用户跑出真实会话完成首验)。做不了的:Cursor IDE chats 正文加密,Windsurf/Trae 加密,Amp/Factory(Droid)/Warp 云端无本地数据,Reasonix 本机零会话格式未实测。
diff --git a/README.md b/README.md
index bf9dbe2..e26af76 100644
--- a/README.md
+++ b/README.md
@@ -17,9 +17,9 @@ Your agent history is scattered across `~/.claude`, `~/.codex`, and a dozen othe
- **Unified browsing** — all sessions grouped by agent / project, with Grok Build subagents nested under their parent and live file watching for incremental updates
- **Full-text search** (⌘K / Ctrl+K) — SQLite FTS5 trigram index; handles CJK text and code substrings (like `useEffect(`) equally well; jumps straight to the matched message in the transcript
-- **Transcript view** — per-message rendering with user/assistant bubbles, collapsible tool-call clusters, thinking summaries, tree-sitter code highlighting (30+ languages)
+- **Transcript view** — per-message rendering with user/assistant bubbles, inline images (copy or save them), collapsible tool-call clusters, thinking summaries, tree-sitter code highlighting (30+ languages)
- **One-click resume** — reopens the session in your terminal (Terminal/iTerm on macOS; native terminal hosts on Linux and Windows) at the original project directory (`claude --resume`, `codex resume`, …)
-- **Manage** — star/pin (stored in Wake's own DB, original files untouched), export to Markdown, delete (system Trash + tombstone so deleted sessions stay deleted)
+- **Manage** — star/pin (stored in Wake's own DB, original files untouched), export to Markdown or save an inline image through the system Save dialog (Wake remembers the last folder), delete (system Trash + tombstone so deleted sessions stay deleted)
- **Insights** — a stats page for your whole library: GitHub-style activity heatmap with streaks, hour / weekday / month breakdowns, and Agents / Projects / Models leaderboards switchable between sessions, tokens, and prompts
![Full-text search across every agent's sessions](imgs/screenshot-2.webp)
@@ -53,7 +53,7 @@ Cursor IDE chats, Windsurf, and Trae encrypt their local data; Amp, Factory (Dro
- Agent data directories are opened **read-only**; Wake never writes to another tool's files or databases
- Credential files (`auth.json` and friends) are never read
- No background network requests — the only network action is a user-initiated update check against Wake's public GitHub Release metadata; session data is never sent
-- Wake's own index lives at `~/Library/Application Support/wake/wake.db` (Linux: `~/.local/share/wake`, Windows: `%LOCALAPPDATA%\wake`) and can be rebuilt from scratch at any time (stars/pins live in a separate table and survive rebuilds)
+- Wake's own index lives at `~/Library/Application Support/wake/wake.db` (Linux: `~/.local/share/wake`, Windows: `%LOCALAPPDATA%\wake`) and can be rebuilt from scratch at any time (stars/pins live in a separate table and survive rebuilds). Two small preference files (`appearance`, `window.json`) sit beside it on macOS, under `~/.config/wake` on Linux and `%APPDATA%\wake` on Windows; Open In and export-folder choices live in the index database's `prefs` table
## Performance