Skip to content

fix(calendar): default --start/--end to today when omitted in event list#530

Open
tiantao wants to merge 1 commit into
DingTalk-Real-AI:mainfrom
tiantao:fix/calendar-event-list-default-time-range
Open

fix(calendar): default --start/--end to today when omitted in event list#530
tiantao wants to merge 1 commit into
DingTalk-Real-AI:mainfrom
tiantao:fix/calendar-event-list-default-time-range

Conversation

@tiantao

@tiantao tiantao commented Jun 29, 2026

Copy link
Copy Markdown

dws calendar event list without --start/--end sent empty arguments to the MCP server, which returned a null-placeholder row instead of actual events. The dynamic command path skips unset flags in CollectBindings (registry.go), so no time range ever reaches the backend.

Add a hardcoded calendar event list helper leaf (priority 100) that defaults missing --start to today 00:00 and --end to today 23:59. When only one side is provided, the other defaults to the same date so the range is always valid.

Fixes #529

Summary

  • What changed?
  • Why is this change needed?

Verification

  • make build
  • make lint
  • make test
  • make policy
  • ./scripts/policy/check-generated-drift.sh
  • ./scripts/policy/check-command-surface.sh --strict (if command surface changed)

Notes

  • Any risks, follow-up work, or intentional scope cuts

`dws calendar event list` without --start/--end sent empty arguments
to the MCP server, which returned a null-placeholder row instead of
actual events. The dynamic command path skips unset flags in
CollectBindings (registry.go), so no time range ever reaches the
backend.

Add a hardcoded `calendar event list` helper leaf (priority 100) that
defaults missing --start to today 00:00 and --end to today 23:59. When
only one side is provided, the other defaults to the same date so the
range is always valid.

Fixes DingTalk-Real-AI#529

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dws calendar event list without --start/--end returns null-placeholder row instead of today's events

1 participant