Repository navigation
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.
feat(m29): add deterministic saved queue views #51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
feat(m29): add deterministic saved queue views #51
Changes from all commits
8aa00c2File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
issue (bug_risk):
filtersis optional in the MCP schema but required in the RustCreateQueueViewParams, which will cause deserialization failures.On the Rust side,
CreateQueueViewParams.filtersis a non-optionalQueueViewFilterswithout#[serde(default)], so JSON requests that omitfilterswill fail to deserialize. In contrast, the schema andtools.tsallowfiltersto beundefinedand pass it through as-is. Please either makefiltersrequired in the schema or update Rust toOption<QueueViewFilters>and/or add#[serde(default)]so it is genuinely optional in the protocol.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: Duplicated queue view filter/sort schema objects introduce drift and confusion.
We now have two parallel schema definitions for filters/sort (
QueueViewFilters/QueueViewSortvsQueueViewFiltersSchema/QueueViewSortSchema), and they already differ in descriptions and enum values. Unless there’s a strong reason to keep both, prefer a single shared definition to avoid drift between what tools accept and what the daemon expects.Suggested implementation:
QueueViewFiltersis imported or defined in this file. If it lives in another module (e.g. a shared daemon schema file), add an appropriate import such as:import { QueueViewFilters } from "path/to/queue-view-schemas";QueueViewSortSchema = { ... }object literal withQueueViewSortSchema = QueueViewSort, and ensureQueueViewSortis imported from the canonical location.QueueViewFilters/QueueViewSortare Zod object schemas with different descriptions or enum values, reconcile those in the canonical definitions rather than reintroducing them here, so both daemon and tools stay in sync.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
issue (bug_risk): The MCP filter enums (
effortFilter,triageBucketFilter) are inconsistent with the earlierQueueViewFiltersdefinition and likely with the Rust types.QueueViewFilters(used inCreateQueueViewInput) andQueueViewFiltersSchemadefine different value sets:effortFilter:"tiny" | "small" | "medium" | "large" | "xlarge"vs"tiny" | "small" | "medium" | "large" | "huge"triageBucketFilter:"ready" | "blocked" | "deferred"vs"urgent" | "attention" | "stale" | "blocked" | "ready"This ambiguity makes it unclear what the daemon actually accepts and risks values that don’t map to
RunEffort/RunTriageBucketin Rust. Please consolidate these to a single shared enum definition aligned exactly with the Rust variants.Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.