Skip to content

[Bug/错误]: Codex 追踪不生效 #971

@oott123

Description

@oott123

Pre-submission Checklist / 提交前检查

  • I have searched the existing issues and this bug has not been reported / 我已搜索现有 issues,此 Bug 尚未被报告
  • I have read the documentation / 我已阅读文档
  • I am using the latest version of AxonHub / 我正在使用 AxonHub 的最新版本

Bug Description / Bug 描述

现在 codex 请求的 header 像这样:

{
  // ...
  "Originator": [
    "codex_cli_rs"
  ],
  "User-Agent": [
    "codex_cli_rs/0.111.0 (Arch Linux Unknown; x86_64) screen-256color"
  ],
  "X-Codex-Turn-Metadata": [
    "{\"turn_id\":\"019cc2d9-****-****-****-***********\",\"workspaces\":{\"/home/***/***\":{\"latest_git_commit_hash\":\"*****\",\"has_changes\":true}},\"sandbox\":\"seccomp\"}"
  ]
}

其中 X-Codex-Turn-Metadata 是个 json,里面的 turn_id 看上去一次对话不会变。

因为这个 Metadata 里还包含很多其它信息,在一次调用的过程里也会变,如果用 extra_trace_headers 把这个配置进去的话,还是很容易跟踪不完整。

Steps to Reproduce / 复现步骤

  1. 配置 codex 使用 axonhub 调用
  2. 启用 axonhub 的 codex 追踪集成
  3. 使用 codex 进行几次请求

Expected Behavior / 期望行为

会话出现在“追踪”或”线程“中

Actual Behavior / 实际行为

什么也没有

Operating System / 操作系统

Linux (Ubuntu/Debian) / Linux(Ubuntu/Debian)

AxonHub Version / AxonHub 版本

v0.9.12

Usage Scenario / 使用场景

Codex

API Format / API 格式

OpenAI - Responses (/v1/responses) / OpenAI Responses

Channel Type / 渠道类型

OpenAI / OpenAI

Logs / 日志

Additional Context / 其他补充信息

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    faqShould added to faq listquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions