Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Codex 的 session-end 在默认情况下无法发现本地 memory 路径 #536

@rendigua

Description

@rendigua

问题概述

evolver setup-hooks --platform=codex 能成功安装,但生成的 Codex session-end hook 默认会返回:

[Evolution] Session outcome recorded to nowhere (no Hub or local path)

而不是把结果写到本地 memory。

环境

  • 操作系统:Windows
  • 宿主:Codex
  • node:v22.15.0
  • npm:11.6.2
  • git:2.53.0.windows.2
  • 包版本:@evomap/[email protected]

我做了什么

  1. 正常安装 Evolver:
npm install -g @evomap/evolver
  1. 执行官方 Codex 集成命令:
evolver setup-hooks --platform=codex
  1. 确认生成了:
  • ~/.codex/hooks.json
  • ~/.codex/hooks/evolver-session-start.js
  • ~/.codex/hooks/evolver-signal-detect.js
  • ~/.codex/hooks/evolver-session-end.js
  1. 直接执行生成的 session-end hook:
node C:\Users\Administrator\.codex\hooks\evolver-session-end.js

实际行为

它会返回一个 JSON,其中消息是:

[Evolution] Session outcome recorded to nowhere (no Hub or local path)

并且没有观察到默认本地 memory 写入。

作为对照,如果 hook 能正确发现包根目录和 local memory graph,那么 session-start 会开始返回 recent outcomes,session-end 也能写到 local memory。所以当前问题看起来更像默认路径发现链条不完整,而不是 hook 完全不能执行。

期望行为

在执行官方的 setup-hooks --platform=codex 之后,生成的 Codex session-end hook 应该能自动发现并使用预期的本地 memory 路径,而不需要额外的手动路径设置。

说明

这个问题只针对按官方 Codex 接入流程得到的默认 local-memory 行为,不涉及 Hub / remote 模式。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions