Bug Description
When opening a trace run in Playground and editing the system prompt, it’s impossible to save the changes back to an existing prompt in the Prompt Hub.
Steps to Reproduce
- Go to Tracing and open a trace run that produced undesired output
- Click “Open in Playground” on that run — Playground loads with the exact inputs, messages, tools, and model config from the trace
- Edit the system prompt to fix the issue
- Click Save → the “Save prompt” dialog appears
- Type the name of the existing prompt (e.g.
agent_review) - Result: Error message — “A prompt with this name already exists” — and the Save button is disabled entirely
Expected Behavior
Typing an existing prompt name should save the changes as a new commit to that prompt (same as client.push_prompt() in the SDK), not block the Save button.
Workaround Attempts
Using “Load prompt” first resets all messages, tools, and model config — losing all context loaded from the trace, which defeats the entire purpose of the “Open in Playground from trace” workflow.
Impact
The core workflow of “Open trace in Playground → edit prompt → save back to Hub” is completely broken for existing prompts.