Add regression test for calendar_free_slots working hours #6835

Closed
opened 2026-02-16 18:05:24 -05:00 by yindo · 0 comments
Owner

Originally created by @adolago on GitHub (Jan 19, 2026).

Originally assigned to: @thdxr on GitHub.

Problem

There is no automated coverage ensuring that working hours are forwarded to findFreeSlots.

Proposed fix

  • Add packages/agent-core/test/mcp/calendar-free-slots.test.ts.
  • Register calendar tools with stubbed deps via registerCalendarTools.
  • Call the calendar_free_slots handler and assert the forwarded options.

Acceptance criteria

  • Test asserts workingHoursStart and workingHoursEnd are forwarded.
  • Test asserts preferences is not present in the options.

Test plan

  • cd packages/agent-core
  • bun test test/mcp/calendar-free-slots.test.ts
Originally created by @adolago on GitHub (Jan 19, 2026). Originally assigned to: @thdxr on GitHub. ## Problem There is no automated coverage ensuring that working hours are forwarded to `findFreeSlots`. ## Proposed fix - Add `packages/agent-core/test/mcp/calendar-free-slots.test.ts`. - Register calendar tools with stubbed deps via `registerCalendarTools`. - Call the `calendar_free_slots` handler and assert the forwarded options. ## Acceptance criteria - Test asserts `workingHoursStart` and `workingHoursEnd` are forwarded. - Test asserts `preferences` is not present in the options. ## Test plan - `cd packages/agent-core` - `bun test test/mcp/calendar-free-slots.test.ts`
yindo closed this issue 2026-02-16 18:05:24 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6835