MicroFish/backend/app/agent_engine
Flowershangfromthebranches 5ac47f412f fix: deduplicate agent IDs when profiles share the same name
_resolve_agent_id() produced identical slugs for same-named profiles
(e.g. two "Baidu" → both "baidu"), causing dropdown selection to
always hit the first match. Add _resolve_all_agent_ids() which runs
the same base resolution but appends _2, _3, … suffixes on collision,
guaranteeing every ID in the returned list is unique.

Applied across all call sites: list_agents, get_agent,
send_questionnaire, _simulation_round_structured_input,
_profiles_summary, and Web Console embedded data. JS template
mirrors the same dedup logic client-side.

105 passed, 0 failed. Provider boundary check passed.

🤖 Generated with [Qoder][https://qoder.com]
2026-06-10 09:29:40 +08:00
..
cli.py Add agent web interaction console 2026-06-10 08:34:28 +08:00
contracts.py Add agent web interaction console 2026-06-10 08:34:28 +08:00
json_schema.py Refactor MiroFish into staged agent engine 2026-06-07 13:49:55 +08:00
queue.py Refactor MiroFish into staged agent engine 2026-06-07 13:49:55 +08:00
runner.py fix: deduplicate agent IDs when profiles share the same name 2026-06-10 09:29:40 +08:00
schemas.py Add agent web interaction console 2026-06-10 08:34:28 +08:00
state.py Refactor MiroFish into staged agent engine 2026-06-07 13:49:55 +08:00