---
name: "Add test coverage for api/agents.ts"
---

# Story 111: Add test coverage for api/agents.ts

## User Story

As a developer, I want better test coverage for api/agents.ts, so that regressions in the agent API wrapper are caught early.

## Acceptance Criteria

- [ ] api/agents.ts reaches 80% coverage (currently 29.5%, 67 lines missing)
- [ ] Tests use fetch mocks to exercise all agent API wrapper functions
- [ ] All vitest tests pass
- [ ] No production code changes are made

## Out of Scope

- TBD
