Skip to content

armgit / Wake

Public Imported from GitHub
0

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

Rust

Merge branch 'main' into fix/codex-compressed-rollouts

Corey Chiu6308eb478f73
diff --cc CHANGELOG.md
index 31fcc5b,50fb878..f641284
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@@ -2,8 -2,9 +2,10 @@@
## [Unreleased]
+- Fix: Codex sessions stored as `.jsonl.zst` are listed, searchable and readable alongside plain JSONL, keeping their titles and archived status
-
+ - Fix: Sessions recorded by older Codex versions show their messages and titles instead of appearing empty
+ - Fix: Clean Up no longer refuses Codex sessions written by recent versions
+ - Fix: Open In → iTerm resumes the session in a new iTerm window instead of failing with an AppleScript error (#73, thanks @quintus-lab)
- Fix: Conversations from the Antigravity CLI show their full messages, not just a summary (#71, thanks @dingtwo)
## [0.9.5] — 2026-10-16
diff --cc crates/wake-core/src/adapters/codex.rs
index 9d37a38,20d839e..ba8c14e
--- a/crates/wake-core/src/adapters/codex.rs
+++ b/crates/wake-core/src/adapters/codex.rs
@@@ -536,9 -517,25 +536,24 @@@ fn format_review_json(text: &str) -> Op
format_review_output(&review)
}
+ /// 2025 年 9 月前后的老格式首行:`{id, timestamp, instructions, git}`,没有 type 信封;之后是
+ /// `{"record_type":"state"}` 标记与不带信封的 response item(message / reasoning / function_call …)
+ fn is_legacy_header(row: &Value) -> bool {
+ row.get("type").is_none() && row.get("id").is_some() && row.get("timestamp").is_some()
+ }
+
+ /// `<environment_context>` 注入块里的工作目录:session_meta 与 turn_context 都没给 cwd 时的兜底
+ /// (老格式只有它)。认块的写法与 `is_injected_user_content` 一致
+ fn environment_cwd(text: &str) -> Option<String> {
+ text.trim_start()
+ .starts_with("<environment_context")
+ .then(|| tag_inner(text, "cwd"))
+ .flatten()
+ }
+
fn parse_rollout(path: &Path, decode_images: bool) -> Result<CodexParse> {
let _image_budget = transcript_image_decode_budget(decode_images);
- let file = fs::File::open(path)?;
- let reader = BufReader::with_capacity(1 << 20, file);
+ let reader = open_rollout(path, 1 << 20)?;
let mut messages: Vec<TranscriptMessage> = Vec::new();
let mut event_fallback: Vec<TranscriptMessage> = Vec::new();