Skip to content

fix(projects): drop non-functional date_range_start/date_range_end params - #5

Merged
ai-nlma merged 1 commit into
mainfrom
fix/projects-date-range-params
Aug 6, 2026
Merged

ai-nlma merged 1 commit into
mainfrom
fix/projects-date-range-params

Conversation

@ai-nlma

@ai-nlma ai-nlma commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • turno_list_projects exposed date_range_start/date_range_end with schema descriptions identical to start/end, but only start/end are wired to the upstream GET /v2/projects filter — TurnoClient forwards query keys verbatim, so Turno silently ignores unrecognized ones. A caller that picked date_range_start/date_range_end got the entire unfiltered account history in reverse-chronological order with no error, as described in turno_list_projects: date_range_start/date_range_end are silently ignored, returning the whole unfiltered history #4.
  • Dropped the dead params from the tool schema. Since register.ts parses tool input with z.object(inputShape).parse(...) (default zod behavior strips unknown keys), any client still sending date_range_start/date_range_end now has them silently stripped locally instead of leaking upstream as a no-op.
  • Clarified the tool description to state start/end are the only functioning date filter.
  • Added a regression test (tests/unit/projects-tool.test.ts) asserting the schema shape and that start/end forward straight through to the upstream query.

Fixes #4

Test plan

  • npm run typecheck passes
  • npx vitest run — 25/25 tests pass across all suites, including the new projects-tool.test.ts

…rams

turno_list_projects exposed date_range_start/date_range_end alongside
start/end with identical descriptions, but only start/end are wired to
the upstream GET /v2/projects filter. TurnoClient forwards query keys
verbatim, so date_range_start/date_range_end were silently ignored by
Turno's API — a caller using that pair got the entire unfiltered
account history in reverse-chronological order with no error.

Drop the dead params from the schema so unknown date_range_* input is
stripped by zod's default parse instead of leaking upstream, and
clarify in the tool description that start/end are the only date
filter. Adds a regression test asserting the schema shape and that
start/end forward straight through to the upstream query.

Fixes #4
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.

turno_list_projects: date_range_start/date_range_end are silently ignored, returning the whole unfiltered history

1 participant