Repository navigation
fix: match labels the same way on every path (MCP 2.1.1) - #13
Merged
Merged
Conversation
The MCP tools stored labels exactly as typed, so "cartographer " sat on a task where neither weekly_review, list_tasks nor search would match it: weekly_review trimmed the label it was asked for, the board filter and search compared raw strings, and the app's own text boxes trimmed and de-duplicated. LabelParser now owns one rule for storing a label and one for matching it; every write path, filter and the load path use it, so labels already saved with stray spaces are cleaned on the next load. Also records the weekly_review label/days parameters in the changelog. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Both tests only asserted that days: 0 is rejected, which a rewrite of ReviewReport would keep or drop for its own reasons. The clamping test next to them still covers the window logic that can actually regress. The exact count in CLAUDE.md and README went stale within a few PRs (419 documented, 430 real); the suite passing is the baseline that matters. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Problem
A label typed with a stray space could never be found. The MCP tools (
create_task,update_task,create_tasks) stored labels exactly as given, so"cartographer "sat on a task while:weekly_reviewtrimmed the label it was asked for, but compared it against the untrimmed stored one;Fix
LabelParsernow owns the rule:Normalize(trim, drop blanks, distinct ignoring case) is used by all three MCP write paths and byProjectStore.NormalizeTasks, so labels already saved with spaces are cleaned on the next load.Has(case- and whitespace-insensitive) is used byBoardFilter,TaskSearchandReviewReport.MCP version bumped to 2.1.1 (patch: a fix, no response-shape change).
Also
weekly_reviewlabel/daysparameters from Let weekly_review answer for one effort instead of everything #4, which was missing.days: 0is rejected; the clamping test beside them covers the window logic.Tests
CreateTask_StoresLabelsTheWayTheAppDoes_SoTheReviewFindsThem: the reported bug end to end through the MCP surface.Load_CleansLabelsSavedBeforeEveryPathNormalizedThem: existing dirty data.Both fail on master and pass here. Release build: 0 warnings; 430 tests passing;
dotnet format --verify-no-changesclean.🤖 Generated with Claude Code