Skip to content

Codex 的 session-end 在正常执行时会输出 Windows 路径噪音 #537

@rendigua

Description

@rendigua

问题概述

在按官方 Codex 集成流程安装 Evolver 之后,生成的 session-end hook 在正常执行时会输出 Windows 路径噪音:

The system cannot find the path specified.

环境

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

我做了什么

  1. 正常安装 Evolver:
npm install -g @evomap/evolver
  1. 执行:
evolver setup-hooks --platform=codex
  1. 执行生成的 hook:
node C:\Users\Administrator\.codex\hooks\evolver-session-end.js

实际行为

hook 会重复输出:

The system cannot find the path specified.

即使这个 hook 本身还能返回一个合法的 JSON 结果,这个噪音依然会出现。

期望行为

Codex 的 session-end hook 在正常执行时不应该输出 Windows shell / 路径噪音。

为什么这个问题重要

这个额外噪音会明显干扰对真正问题来源的判断,很难区分:

  • 是 local memory path 的问题
  • 是 Codex hook 集成的问题
  • 还是 Windows shell 兼容性问题

可能原因

从行为上看,生成的 hook 很像在 git diff 相关命令里使用了 Unix 风格的 shell 重定向,这在 Windows 下可能并不兼容。

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