fix(skill-review): use uuid per review run to avoid checkpoint context bleed
This commit is contained in:
1 parent
335bc3cf48
commit
705de81c78
1 file changed
+2
-1
@@ -184,7 +184,8 @@ async def _run_review(thread_id: str, messages: list[BaseMessage], app_config: "
|
||||
)
|
||||
|
||||
# RunnableConfig supplies thread_id so ThreadDataMiddleware is satisfied.
|
||||
run_config = RunnableConfig(configurable={"thread_id": f"__skill-review__{thread_id}"})
|
||||
import uuid
|
||||
run_config = RunnableConfig(configurable={"thread_id": f"__skill-review__{uuid.uuid4()}"})
|
||||
|
||||
# Review instructions arrive as prompt_prefix: PromptPrefixMiddleware prepends
|
||||
# them before every model call without persisting them to state.
|
||||
|
||||
Reference in new issue
Block a user