Skip to content

Commit c4d20b3

Browse files
committed
fix(agent): include base_prompt in run-agents fingerprint
Two RunAgents calls differing only in base_prompt produced the same fingerprint; include it so distinct launches are not deduplicated.
1 parent de0191a commit c4d20b3

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/pythinker_code/tools/agent/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,11 @@ async def _run_in_background(self, params: Params) -> ToolReturnValue:
374374
thinking=self._runtime.llm.thinking
375375
if self._runtime.llm is not None
376376
else None,
377+
thinking_effort=(
378+
self._runtime.llm.thinking_effort
379+
if self._runtime.llm is not None
380+
else None
381+
),
377382
parent_agent_id=self._runtime.subagent_id,
378383
),
379384
)
@@ -457,6 +462,7 @@ async def _run_in_background(self, params: Params) -> ToolReturnValue:
457462
def _run_agents_fingerprint(params: RunAgentsParams) -> str:
458463
payload = {
459464
"summary": params.summary,
465+
"base_prompt": params.base_prompt,
460466
"agent_count": len(params.agents),
461467
"agent_names": [agent.name for agent in params.agents],
462468
"subagent_types": [agent.subagent_type or "coder" for agent in params.agents],

0 commit comments

Comments
 (0)