Files
DuncanandWill Pfleger b87b276114 refactor(desktop): extract build_local_agent_index as testable production helper
The local_store_failure test was guarding map_err logic in isolation
rather than calling the production function. Extract the local-agent
index-building logic into build_local_agent_index<E>() so the failure
test drives the actual production entry point: injecting Err() into
the helper now kills the test as expected (mutation-f verified).

Production code simplified to:
  build_local_agent_index(load_managed_agents(&app))?

Also remove the orphaned success-arm doc comment block that triggered
a dead-doc-comment clippy lint.

Co-authored-by: Will Pfleger <pfleger.will@gmail.com>
Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
2026-08-06 14:58:05 -04:00
..