Repository navigation
fix(projects): drop non-functional date_range_start/date_range_end params - #5
Merged
Merged
Conversation
…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
This was referenced Aug 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
turno_list_projectsexposeddate_range_start/date_range_endwith schema descriptions identical tostart/end, but onlystart/endare wired to the upstreamGET /v2/projectsfilter —TurnoClientforwards query keys verbatim, so Turno silently ignores unrecognized ones. A caller that pickeddate_range_start/date_range_endgot 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.register.tsparses tool input withz.object(inputShape).parse(...)(default zod behavior strips unknown keys), any client still sendingdate_range_start/date_range_endnow has them silently stripped locally instead of leaking upstream as a no-op.start/endare the only functioning date filter.tests/unit/projects-tool.test.ts) asserting the schema shape and thatstart/endforward straight through to the upstream query.Fixes #4
Test plan
npm run typecheckpassesnpx vitest run— 25/25 tests pass across all suites, including the newprojects-tool.test.ts