Skip to content

Stop running trace when starting a new trace #808

Description

@jack5github

Is your feature request related to a problem? Please describe.

In an agentic LLM workflow, every step counts towards increasing the load on the AI and its context window. Performance traces are a particularly sore point for LLMs, as only one can be active at any given time. Currently, the MCP server throws an error if attempting to start a new trace when one already exists, even if that trace was from an entirely different conversation completely unrelated to the present one.

Describe the solution you'd like

Rather than throwing an error and interrupting the thought processes of an LLM when running performance_start_trace, close any existing performance trace and include a notice that this action happened in the response given by the start tool.

Describe alternatives you've considered

N/A

Additional context

No response

Activity

  1. OrKoN commented on Jul 9, 2026

    @OrKoN
    Collaborator

    I am not sure it's worth changing the behavior here. The browser can only do one trace recording at a time and discarding a currently running trace would interfere with the workflow of whoever started it. The stop trace tool can be used if this happens and the agent decides that it is fine to stop the current trace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions