# Bug: Cannot save edited prompt back to Prompt Hub after opening trace run in Playground

**URL:** <https://forum.langchain.com/t/bug-cannot-save-edited-prompt-back-to-prompt-hub-after-opening-trace-run-in-playground/3492>\
**Category:** LangSmith Product Help\
**Created:** [April 20, 2026, 1:24pm UTC](https://forum.langchain.com/t/bug-cannot-save-edited-prompt-back-to-prompt-hub-after-opening-trace-run-in-playground/3492 "2026-04-20T13:24:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![denyskorolkov](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.langchain.com/denyskorolkov/32/2768_2.png) [@denyskorolkov](https://forum.langchain.com/u/denyskorolkov)\
**Post date:** [April 20, 2026, 1:24pm UTC](https://forum.langchain.com/t/bug-cannot-save-edited-prompt-back-to-prompt-hub-after-opening-trace-run-in-playground/3492/1 "2026-04-20T13:24:25Z")

</div>

## 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

1. Go to **Tracing** and open a trace run that produced undesired output
2. Click **“Open in Playground”** on that run — Playground loads with the exact inputs, messages, tools, and model config from the trace
3. Edit the system prompt to fix the issue
4. Click **Save** → the “Save prompt” dialog appears
5. Type the name of the existing prompt (e.g. `agent_review`)
6. **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.

GitHub issue: [Bug: Cannot save edited prompt back to Prompt Hub after opening trace run in Playground · Issue #2671 · langchain-ai/langsmith-sdk · GitHub](https://github.com/langchain-ai/langsmith-sdk/issues/2671)

---

<div class="post-metadata">

**Author:** ![madams0013](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.langchain.com/madams0013/32/188_2.png) [@madams0013](https://forum.langchain.com/u/madams0013)\
**Post date:** [April 20, 2026, 6:51pm UTC](https://forum.langchain.com/t/bug-cannot-save-edited-prompt-back-to-prompt-hub-after-opening-trace-run-in-playground/3492/2 "2026-04-20T18:51:00Z")

</div>

Thanks for the report! I’ve forwarded this to the prompt engineering team for a fix.
