CodexBar 是一个 macOS 菜单栏应用,用于查看本机 Codex 账号状态、额度、Token 用量、详细统计信息
Swift appkitcodexcodex-clideveloper-toolsmacosmacos-appmenu-bar-appopenai-codexproductivityswiftswiftuiusage-tracker
fix: 兼容并发自动审查来源
Bob63cb1ce046d7
diff --git a/CodexBar/Models/CodexWorkflowModels.swift b/CodexBar/Models/CodexWorkflowModels.swiftindex 79742e6..c222ba7 100644--- a/CodexBar/Models/CodexWorkflowModels.swift+++ b/CodexBar/Models/CodexWorkflowModels.swift@@ -81,7 +81,7 @@ nonisolated enum WorkflowEventOrigin: String, Codable, Sendable {}}-/// hooks 进程落盘的最小事件模型, 对历史字段缺失保持宽容+/// hooks 进程落盘和读取的最小事件模型, 在边界归一化来源并对历史字段缺失保持宽容nonisolated struct WorkflowHookEvent: Decodable, Equatable {let timestamp: Datelet name: String@@ -112,7 +112,7 @@ nonisolated struct WorkflowHookEvent: Decodable, Equatable {) {self.timestamp = timestampself.name = name- self.origin = origin+ self.origin = Self.resolvedOrigin(origin, modelName: modelName)self.directoryPath = directoryPathself.toolName = toolNameself.modelName = modelName@@ -138,12 +138,15 @@ nonisolated struct WorkflowHookEvent: Decodable, Equatable {)}+ let decodedOrigin = (try? container.decode(WorkflowEventOrigin.self, forKey: .origin)) ?? .unknown+ let decodedModelName = Self.string(from: container, key: .modelName)+self.timestamp = timestampself.name = name- origin = (try? container.decode(WorkflowEventOrigin.self, forKey: .origin)) ?? .unknown+ origin = Self.resolvedOrigin(decodedOrigin, modelName: decodedModelName)directoryPath = Self.string(from: container, key: .cwd)toolName = Self.string(from: container, key: .toolName)- modelName = Self.string(from: container, key: .modelName)+ modelName = decodedModelNameeffort = Self.string(from: container, key: .effort)permissionMode = Self.string(from: container, key: .permissionMode)approvalReviewer = try? container.decode(@@ -185,6 +188,18 @@ nonisolated struct WorkflowHookEvent: Decodable, Equatable {CodexDateFormat.localTimestampDate(from: string)}+ /// Ephemeral Guardian 没有 rollout path, canonical model 是来源判定的可靠后备+ private static func resolvedOrigin(+ _ origin: WorkflowEventOrigin,+ modelName: String?+ ) -> WorkflowEventOrigin {+ guard origin == .unknown,+ modelName == autoReviewModelName else {+ return origin+ }+ return .autoReview+ }+func jsonLineData() throws -> Data {let fields = try [WorkflowJSON.field("timestamp", CodexDateFormat.localTimestampString(from: timestamp)),@@ -218,6 +233,8 @@ nonisolated struct WorkflowHookEvent: Decodable, Equatable {case turnId = "turn"case agentId = "agent"}++ private static let autoReviewModelName = "codex-auto-review"}// MARK: - 每日聚合指标diff --git a/Config/Version.xcconfig b/Config/Version.xcconfigindex a0ec093..faa2444 100644--- a/Config/Version.xcconfig+++ b/Config/Version.xcconfig@@ -1,2 +1,2 @@-MARKETING_VERSION = 3.6.8-CURRENT_PROJECT_VERSION = 75+MARKETING_VERSION = 3.6.9+CURRENT_PROJECT_VERSION = 76diff --git a/Docs/DeveloperGuide/activity-monitor.md b/Docs/DeveloperGuide/activity-monitor.mdindex df0c233..d6f81ff 100644--- a/Docs/DeveloperGuide/activity-monitor.md+++ b/Docs/DeveloperGuide/activity-monitor.md@@ -194,7 +194,7 @@ subagent 事件更新父任务的 subagent 活动,不创建独立顶层任务### Auto-review 来源过滤-`CodexActivityMonitor.apply` 在任何状态转换之前检查 `WorkflowHookEvent.origin`。`autoReview` 不进入实时任务状态机,因此不会出现在菜单栏、活动卡片、任务中心和任务计数中,也不会产生通知、触觉反馈、等待批准、异常会话保护或防睡眠贡献。+`CodexActivityMonitor.apply` 在任何状态转换之前检查 `WorkflowHookEvent.origin`。`WorkflowHookEvent` 在构造和解码边界优先使用明确来源,只有来源为 `unknown` 时才以精确匹配的 `model == "codex-auto-review"` 作为 `.autoReview` 后备判定。`autoReview` 不进入实时任务状态机,因此不会出现在菜单栏、活动卡片、任务中心和任务计数中,也不会产生通知、触觉反馈、等待批准、异常会话保护或防睡眠贡献。过滤使用精确的 `session ID + turn ID`,因为 Codex 的 subagent Hook 复用父 session ID。只按 session 过滤会连同真正的主任务一起隐藏。@@ -209,7 +209,7 @@ subagent 事件更新父任务的 subagent 活动,不创建独立顶层任务其他 subagent 统一归类为 `auxiliary` 并保持原有行为,Memories 不因这项规则改变。原始 Hook 事件仍进入历史聚合,因此实时任务过滤不会改变统计或 CloudKit 数据。-升级前已写入的事件没有 `origin`,会按 `unknown` 继续执行原行为。monitor 只回放最近 24 小时,所以最后一条旧事件离开窗口后最迟约 24 小时完成自然过渡;实现不扫描历史 rollout,也不按 model 名兼容。+JSONL 中缺少 `origin` 或来源枚举无法识别时,来源字段先解码为 `unknown`。如果同一记录的 model 精确匹配 `codex-auto-review`,事件模型将 `origin` 归一化为 `.autoReview`;其他记录保持 `.unknown`。monitor 只回放最近 24 小时,不扫描历史 rollout,也不回写原始 Hook 记录。### 为什么新 prompt 不直接把旧 turn 判为中断diff --git a/Docs/DeveloperGuide/data-and-privacy.md b/Docs/DeveloperGuide/data-and-privacy.mdindex d65bd21..36724b4 100644--- a/Docs/DeveloperGuide/data-and-privacy.md+++ b/Docs/DeveloperGuide/data-and-privacy.md@@ -104,7 +104,7 @@ Hook 子进程从 stdin 提取:- permission 和 reviewer- session, turn 和 agent 身份-`transcript_path` 可用时,Hook 子进程还会从 rollout 第一条完整 `session_meta` 中提取并归一化来源,只持久化 `main`, `autoReview`, `auxiliary` 或 `unknown`。读取按 32 KiB 分块且总计不超过 256 KiB。+Hook 子进程优先从 `transcript_path` 指向的 rollout 第一条完整 `session_meta` 中提取并归一化来源。rollout 来源为 `unknown` 时,stdin 中已经提取的 model 只有精确匹配 `codex-auto-review` 才归类为 `autoReview`。JSONL 的来源字段只持久化 `main`, `autoReview`, `auxiliary` 或 `unknown`;rollout 读取按 32 KiB 分块且总计不超过 256 KiB。不把 prompt, response, tool 参数或 tool 输出写入 CodexBar Hook 文件。diff --git a/Docs/DeveloperGuide/hook-and-aggregation.md b/Docs/DeveloperGuide/hook-and-aggregation.mdindex ff393f0..44cc93b 100644--- a/Docs/DeveloperGuide/hook-and-aggregation.md+++ b/Docs/DeveloperGuide/hook-and-aggregation.md@@ -150,7 +150,7 @@ CodexBar 订阅以下 Hook 事件:把两类需求统一在一条最小原始记录中,可以让 recorder 只写一次,两个下游各自选择所需字段。但新增字段前仍要证明至少有一个消费者需要它,不能因为 Hook payload 中存在就全部持久化。-`transcript_path` 可用时,recorder 会为来源分类有界读取 rollout 首行。`PermissionRequest` 和 `UserPromptSubmit` 的 reviewer 或 effort 可能不在 Hook payload 中,只有这两个事件还会按 turn 定向读取 rollout 尾部。+`transcript_path` 可用时,recorder 会为来源分类有界读取 rollout 首行。rollout 来源无法确定时,只有精确匹配 `codex-auto-review` 的 model 才作为 Auto-review 来源的后备判定。`PermissionRequest` 和 `UserPromptSubmit` 的 reviewer 或 effort 可能不在 Hook payload 中,只有这两个事件还会按 turn 定向读取 rollout 尾部。## Hook 子进程@@ -235,22 +235,22 @@ Codex 对 `SessionEnd` 最多等待 3 秒,其他事件最多 5 秒。recorder### 来源归一化-`WorkflowHookEvent.origin` 是 CodexBar 自己维护的有限枚举,不是 rollout 原始 `source` 的副本:+`WorkflowHookEvent.origin` 是 CodexBar 自己维护的有限枚举,不是 rollout 原始 `source` 的副本。构造器和解码器都在事件输入边界应用同一套来源解析规则,因此下游只读取归一化后的 `origin`:-| `origin` | 判定 |+| 有效来源 | 判定 || --- | --- || `main` | `source` 是已知顶层字符串来源 `cli`, `vscode`, `exec`, `mcp`,或有效对象来源 `{ "custom": "..." }` |-| `autoReview` | `source.subagent.other` 与 `guardian` 完全匹配 |+| `autoReview` | `source.subagent.other` 与 `guardian` 完全匹配,或 rollout 来源为 `unknown` 且 model 与 `codex-auto-review` 完全匹配 || `auxiliary` | `source` 明确表示其他 subagent,包括 `review`, `thread_spawn` 和 Memories 相关来源 |-| `unknown` | 字段缺失、结构损坏、无法读取或遇到未知顶层来源 |+| `unknown` | 字段缺失、结构损坏、无法读取或遇到未知顶层来源,并且 model 不满足 Auto-review 后备判定 |-来源读取从文件起点按 32 KiB 分块,遇到第一个 newline 立即停止,总预算为 256 KiB。第一条完整记录不是 `session_meta`、超过预算或任何文件与解码操作失败时都回退到 `unknown`,不等待、不重试,也不能让 Hook 失败。+来源读取从文件起点按 32 KiB 分块,遇到第一个 newline 立即停止,总预算为 256 KiB。第一条完整记录不是 `session_meta`、超过预算或任何文件与解码操作失败时,rollout 来源回退到 `unknown`,不等待、不重试,也不能让 Hook 失败。model 后备判定只接受精确字符串,不做前缀、别名或模糊匹配。-原始 JSONL 只保存上述枚举值。`transcript_path`、原始 `source`、任意 `other` 字符串和 transcript 内容都不会写入 Hook 文件或系统日志。+recorder 在写入前完成来源解析,JSONL 的来源字段只保存上述枚举值。`transcript_path`、原始 `source`、任意 `other` 字符串和 transcript 内容都不会写入 Hook 文件或系统日志。-旧事件缺少 `origin`,以及未来版本写入当前 App 不认识的枚举值时,都解码为 `unknown`。CodexBar 不回填历史记录,也不使用 `model == "codex-auto-review"` 猜测来源。+JSONL 中缺少 `origin`,或枚举值无法识别时,来源字段先解码为 `unknown`。`WorkflowHookEvent` 解码器随后应用相同的精确 model 后备判定,因此 `model == "codex-auto-review"` 的事件在内存中的 `origin` 为 `autoReview`。读取过程不会回填或重写原始 JSONL。-`origin` 只改变实时活动过滤,不改变历史统计输入。Auto-review 事件仍参与现有 session、turn、model、tool、project 和事件计数,因此这次改动不递增聚合 schema,也不改变 CloudKit 投影。+来源分类只改变实时活动过滤,不改变历史统计输入。Auto-review 事件仍参与 session、turn、model、tool、project 和事件计数;聚合 schema 和 CloudKit 投影不包含来源分类。### 输入归一化diff --git a/Docs/UserGuide/activity-and-hook.md b/Docs/UserGuide/activity-and-hook.mdindex 87c0eef..b92fc14 100644--- a/Docs/UserGuide/activity-and-hook.md+++ b/Docs/UserGuide/activity-and-hook.md@@ -73,7 +73,7 @@ CodexBar 使用 `$CODEX_HOME/hooks.json`,未设置 `CODEX_HOME` 时使用 `~/.Codex Auto-review 使用独立 reviewer agent 处理权限审核。CodexBar 会识别并排除这个内部审核任务,因此它不会显示在菜单栏、活动卡片或任务中心,也不会触发通知、触觉反馈、异常会话保护或防睡眠。其他子 Agent 的现有行为不变。-实时任务只回放最近 24 小时,这些旧记录会在最后一条旧事件之后最多约 24 小时自然退出。+Auto-review 来源优先根据 rollout 元数据识别;rollout 来源不可用时,精确匹配 `codex-auto-review` 的 model 作为后备判定。实时任务读取本机 Hook 记录时应用同一规则,不回填或重写原始记录。Hook 事件缺少 session ID 时,CodexBar 会按项目显示匿名任务。匿名任务仍可出现在运行中、等待批准、最近完成和最近终止列表中,但不触发任务通知或触觉反馈,不参与防睡眠和异常会话保护。diff --git a/Docs/UserGuide/sync-data-privacy.md b/Docs/UserGuide/sync-data-privacy.mdindex 0e2b399..adf874d 100644--- a/Docs/UserGuide/sync-data-privacy.md+++ b/Docs/UserGuide/sync-data-privacy.md@@ -109,9 +109,9 @@ CodexBar 会读取以下本机数据:- 通过本机 app-server 获取账户、额度、Token 用量、手动重置次数明细和 Codex 配置- 读取 Hook 原始事件以生成统计和实时任务-- 读取本机 Codex rollout 的首条来源和生命周期字段,以排除 Auto-review 实时任务、区分完成与终止并补充进展时间+- 读取 Hook model 字段和本机 Codex rollout 的首条来源及生命周期字段,以排除 Auto-review 实时任务、区分完成与终止并补充进展时间-rollout 来源读取最多 256 KiB,只保存 `main`, `autoReview`, `auxiliary` 或 `unknown` 四种归一化结果。CodexBar 不保存 rollout 路径或原始来源值;其他 rollout 读取也只提取生命周期、时间和推理强度等字段,不展示或保存会话正文和工具内容。+来源判定优先使用 rollout 元数据;rollout 来源为 `unknown` 时,只有精确匹配 `codex-auto-review` 的 Hook model 才归类为 `autoReview`。rollout 来源读取最多 256 KiB,只保存 `main`, `autoReview`, `auxiliary` 或 `unknown` 四种归一化结果。CodexBar 不保存 rollout 路径或原始来源值;其他 rollout 读取也只提取生命周期、时间和推理强度等字段,不展示或保存会话正文和工具内容。用户主动开启自动重置后,CodexBar 通过同一个本机 app-server 使用明确列出的临期重置次数。原始 `creditId` 和幂等键不写入磁盘或 CloudKit;`UserDefaults` 只保存功能开关、提前量、自动重置通知开关、音效选择和哈希后的通知去重键。diff --git a/Docs/en/DeveloperGuide/activity-monitor.md b/Docs/en/DeveloperGuide/activity-monitor.mdindex ebe6787..c0fb012 100644--- a/Docs/en/DeveloperGuide/activity-monitor.md+++ b/Docs/en/DeveloperGuide/activity-monitor.md@@ -194,7 +194,7 @@ Without a session ID, only a project key remains. It may merge concurrent anonym### Auto-review Origin Filtering-`CodexActivityMonitor.apply` checks `WorkflowHookEvent.origin` before any state transition. An `autoReview` event never enters the live-task state machine, so it cannot appear in the menu bar, activity card, Task Center, or task counts and cannot produce notifications, haptics, approval waiting, Stalled Task Protection, or sleep-prevention contribution.+`CodexActivityMonitor.apply` checks `WorkflowHookEvent.origin` before any state transition. At construction and decoding boundaries, `WorkflowHookEvent` prefers an explicit origin and uses an exact `model == "codex-auto-review"` match as the `.autoReview` fallback only when that origin is `unknown`. An `autoReview` event never enters the live-task state machine, so it cannot appear in the menu bar, activity card, Task Center, or task counts and cannot produce notifications, haptics, approval waiting, Stalled Task Protection, or sleep-prevention contribution.Filtering uses the exact `session ID + turn ID` because Codex subagent Hooks reuse the parent session ID. Filtering by session alone would also hide the real main task.@@ -209,7 +209,7 @@ If an explicit `main` or `auxiliary` event later matches the same key, source trOther subagents normalize to `auxiliary` and retain their existing behavior; Memories does not change under this rule. Raw Hook events still enter historical aggregation, so live-task filtering does not change metrics or CloudKit data.-Events written before the upgrade have no `origin` and continue under existing behavior as `unknown`. The monitor replays only the most recent 24 hours, so the transition completes naturally no later than about 24 hours after the final legacy event; the implementation neither scans historical rollouts nor falls back to model-name matching.+When JSONL omits `origin` or contains an unrecognized origin value, the origin field first decodes as `unknown`. If that record's model exactly equals `codex-auto-review`, the event model normalizes `origin` to `.autoReview`; other records remain `.unknown`. The monitor replays only the most recent 24 hours, does not scan historical rollouts, and does not rewrite raw Hook records.### Why a New Prompt Does Not Immediately Terminate the Old Turndiff --git a/Docs/en/DeveloperGuide/data-and-privacy.md b/Docs/en/DeveloperGuide/data-and-privacy.mdindex af1a076..95ea947 100644--- a/Docs/en/DeveloperGuide/data-and-privacy.md+++ b/Docs/en/DeveloperGuide/data-and-privacy.md@@ -104,7 +104,7 @@ The Hook subprocess extracts from stdin:- Permission and reviewer- Session, turn, and agent identities-When `transcript_path` is available, the Hook subprocess also extracts and normalizes origin from the rollout's first complete `session_meta` record, persisting only `main`, `autoReview`, `auxiliary`, or `unknown`. It reads in 32 KiB chunks with a total limit of 256 KiB.+The Hook subprocess first extracts and normalizes origin from the first complete `session_meta` record in the rollout referenced by `transcript_path`. When the rollout origin is `unknown`, the model already extracted from stdin classifies the event as `autoReview` only if it exactly equals `codex-auto-review`. The JSONL origin field persists only `main`, `autoReview`, `auxiliary`, or `unknown`; rollout reading uses 32 KiB chunks with a total limit of 256 KiB.It does not write prompt text, responses, tool arguments, or tool output to CodexBar Hook files.diff --git a/Docs/en/DeveloperGuide/hook-and-aggregation.md b/Docs/en/DeveloperGuide/hook-and-aggregation.mdindex 04a9634..bb2af00 100644--- a/Docs/en/DeveloperGuide/hook-and-aggregation.md+++ b/Docs/en/DeveloperGuide/hook-and-aggregation.md@@ -150,7 +150,7 @@ Historical counts need event name, date, project, model, and identity sets. LiveOne minimal raw record lets the recorder write once while both consumers select their fields. A new field still requires a demonstrated consumer; its presence in the Hook payload does not justify persisting everything.-When `transcript_path` is available, the recorder performs a bounded read of the rollout's first line to classify origin. Reviewer or effort for `PermissionRequest` and `UserPromptSubmit` may be absent from the Hook payload, so only those two events also read the rollout tail for that turn.+When `transcript_path` is available, the recorder performs a bounded read of the rollout's first line to classify origin. If the rollout origin cannot be determined, only an exact `codex-auto-review` model match serves as the Auto-review fallback. Reviewer or effort for `PermissionRequest` and `UserPromptSubmit` may be absent from the Hook payload, so only those two events also read the rollout tail for that turn.## Hook Subprocess@@ -235,22 +235,22 @@ The lookup:### Origin Normalization-`WorkflowHookEvent.origin` is a finite CodexBar-owned enum, not a copy of the rollout's raw `source`:+`WorkflowHookEvent.origin` is a finite CodexBar-owned enum, not a copy of the rollout's raw `source`. Both the initializer and decoder apply the same origin-resolution rule at the event input boundary, so downstream consumers read only the normalized `origin`:-| `origin` | Classification |+| Effective origin | Classification || --- | --- || `main` | `source` is a known top-level string source `cli`, `vscode`, `exec`, or `mcp`, or a valid object source `{ "custom": "..." }` |-| `autoReview` | `source.subagent.other` exactly equals `guardian` |+| `autoReview` | `source.subagent.other` exactly equals `guardian`, or the rollout origin is `unknown` and the model exactly equals `codex-auto-review` || `auxiliary` | `source` explicitly represents another subagent, including `review`, `thread_spawn`, and Memories-related sources |-| `unknown` | The field is missing, malformed, unreadable, or an unknown top-level source |+| `unknown` | The field is missing, malformed, unreadable, or an unknown top-level source, and the model does not satisfy the Auto-review fallback |-Origin reading starts at byte zero in 32 KiB chunks, stops at the first newline, and has a total budget of 256 KiB. If the first complete record is not `session_meta`, exceeds the budget, or any file or decoding operation fails, classification falls back to `unknown` without waiting or retrying and without failing the Hook.+Origin reading starts at byte zero in 32 KiB chunks, stops at the first newline, and has a total budget of 256 KiB. If the first complete record is not `session_meta`, exceeds the budget, or any file or decoding operation fails, the rollout origin falls back to `unknown` without waiting or retrying and without failing the Hook. The model fallback accepts only the exact string, with no prefix, alias, or fuzzy matching.-Raw JSONL stores only this enum. It never stores `transcript_path`, raw `source`, arbitrary `other` strings, or transcript content, and none of those values enter system logs.+The recorder resolves origin before writing, and the JSONL origin field stores only this enum. It never stores `transcript_path`, raw `source`, arbitrary `other` strings, or transcript content, and none of those values enter system logs.-Old events without `origin` and future enum values unknown to the current app both decode as `unknown`. CodexBar neither backfills historical records nor infers origin from `model == "codex-auto-review"`.+When JSONL omits `origin` or contains an unrecognized enum value, the origin field first decodes as `unknown`. The `WorkflowHookEvent` decoder then applies the same exact model fallback, so an event with `model == "codex-auto-review"` has `origin` equal to `autoReview` in memory. Reading never backfills or rewrites raw JSONL.-`origin` changes only live-activity filtering, not historical aggregation input. Auto-review events continue to contribute to existing session, turn, model, tool, project, and event counts, so this change does not increment the aggregation schema or alter the CloudKit projection.+Origin classification changes only live-activity filtering, not historical aggregation input. Auto-review events still contribute to session, turn, model, tool, project, and event counts; neither the aggregation schema nor the CloudKit projection contains origin classification.### Input Normalizationdiff --git a/Docs/en/UserGuide/activity-and-hook.md b/Docs/en/UserGuide/activity-and-hook.mdindex 5b7bd7b..4939da3 100644--- a/Docs/en/UserGuide/activity-and-hook.md+++ b/Docs/en/UserGuide/activity-and-hook.md@@ -73,7 +73,7 @@ Subagent events update their parent top-level task instead of appearing as separCodex Auto-review uses a separate reviewer agent for permission review. CodexBar recognizes and excludes that internal review task, so it does not appear in the menu bar, activity card, or Task Center and cannot trigger notifications, haptics, Stalled Task Protection, or sleep prevention. Existing behavior for other subagents is unchanged.-Hook events written before the upgrade have no origin classification and may still restore legacy Auto-review tasks. Live activity replays only the most recent 24 hours, so those old records age out naturally no later than about 24 hours after the final legacy event, without a historical migration.+Auto-review origin is identified from rollout metadata first. When rollout origin is unavailable, an exact `codex-auto-review` model match serves as the fallback. Live activity applies the same rule while reading local Hook records without backfilling or rewriting the raw records.When a Hook event has no session ID, CodexBar shows an anonymous task for its project. Anonymous tasks can still appear in Running, Waiting for Approval, Recently Completed, and Recently Terminated lists, but they do not trigger task notifications or haptic feedback and do not participate in sleep prevention or stalled task protection.diff --git a/Docs/en/UserGuide/sync-data-privacy.md b/Docs/en/UserGuide/sync-data-privacy.mdindex 858b071..3f4ca76 100644--- a/Docs/en/UserGuide/sync-data-privacy.md+++ b/Docs/en/UserGuide/sync-data-privacy.md@@ -109,9 +109,9 @@ CodexBar reads the following local data:- Account, rate-limit, token usage, reset-credit details, and Codex configuration through the local app-server- Raw Hook events to generate metrics and live tasks-- The first origin and lifecycle fields from local Codex rollout files to exclude Auto-review live tasks, distinguish completion from termination, and supplement progress timestamps+- Hook model fields and the first origin and lifecycle fields from local Codex rollout files to exclude Auto-review live tasks, distinguish completion from termination, and supplement progress timestamps-Origin reading is limited to 256 KiB and stores only the normalized result `main`, `autoReview`, `auxiliary`, or `unknown`. CodexBar does not store rollout paths or raw source values; other rollout reads likewise extract only lifecycle, time, reasoning-effort, and similar fields and never display or store conversation text or tool content.+Origin classification prefers rollout metadata. When rollout origin is `unknown`, only an exact `codex-auto-review` Hook model match classifies the event as `autoReview`. Origin reading is limited to 256 KiB and stores only the normalized result `main`, `autoReview`, `auxiliary`, or `unknown`. CodexBar does not store rollout paths or raw source values; other rollout reads likewise extract only lifecycle, time, reasoning-effort, and similar fields and never display or store conversation text or tool content.After you explicitly enable Automatic Reset, CodexBar uses reset credits that the same local app-server explicitly reports as near expiration. Raw `creditId` and idempotency keys are not written to disk or CloudKit. `UserDefaults` stores only the feature switch, lead time, notification switch, sound choice, and hashed notification-deduplication keys.diff --git a/appcast.xml b/appcast.xmlindex b164804..a61826e 100644--- a/appcast.xml+++ b/appcast.xml@@ -7,6 +7,15 @@<link>https://codexbar.zabrian.app/appcast.xml</link><description>CodexBar appcast feed</description><language>zh-CN</language>+ <item>+ <title>CodexBar.app 3.6.9</title>+ <sparkle:version>76</sparkle:version>+ <sparkle:shortVersionString>3.6.9</sparkle:shortVersionString>+ <sparkle:minimumSystemVersion>15.0</sparkle:minimumSystemVersion>+ <sparkle:releaseNotesLink>https://codexbar.zabrian.app/notes#3.6.9</sparkle:releaseNotesLink>+ <pubDate>Wed, 26 Aug 2026 18:05:54 +0800</pubDate>+ <enclosure url="https://codexbar.zabrian.app/download/CodexBar-v3.6.9.dmg" sparkle:edSignature="NGVVu88kgLRq9GhNS/O+t2RgQfVc06E0yK2TBppFnVv9k8ssPNXFrGngdjpEMCh8Z7jrwOmlFyPQa7yF6pIkCg==" length="7208639" type="application/octet-stream"/>+ </item><item><title>CodexBar.app 3.6.8</title><sparkle:version>75</sparkle:version>