镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Getting two traces with Human-in-the-loop #2540

Closed

Description

@gemue-parndt

Question

Hey everyone, first of all, I love the HITL feature!

I've implemented HITL and use Phoenix as an open-source alternative to the OpenAI traces dashboard for viewing the traces. :)

Here’s my workflow:

  1. The LLM generates text.
  2. The LLM attempts to call the "write_page" tool, which requires approval.
  3. The user clicks "approve".
  4. The LLM executes the tool call.
  5. The LLM returns its response.

Everything works well, but I notice that instead of a single trace, I end up with two traces:

  • The first trace covers steps 1–2 and is ending with the tool call .
  • The second trace includes steps 4–5 (step 3 isn’t shown, which makes sense since it’s not an LLM action) and is starting with the tool call.

Does anyone have suggestions or tips on how to combine these traces, or is this split the expected behavior?

Activity

  1. deleted a comment from on Feb 24, 2026
  2. added 2 commits that reference this issue on Feb 26, 2026
    e591454
    323000a
  3. added this to the 0.10.x milestone on Feb 26, 2026
  4. added
    bugSomething isn't working
    and removed
    questionQuestion about using the SDK
    on Feb 26, 2026
  5. seratch commented on Feb 26, 2026

    @seratch
    Member

    Thanks for sharing this. This seems to be a bug, so we'll fix it in the upcoming release.

  6. added a commit that references this issue on Feb 26, 2026
    6814a54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions