autoThreadMatch knob defined but never consumed #68
Labels
No labels
blocked:commit-ready-failed
blocked:gate-fetch
blocked:gate-lint
blocked:gate-plan
blocked:gate-research
blocked:needs-attention
blocked:needs-decision
blocked:needs-human
blocked:no-changes
blocked:verify-failed
bug
deferred
feature-request
in-progress
needs-decompose
needs-triage
quickfix
security/medium
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/Kimi_Agent_Brother_10_Digitizing_App#68
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Where:
src/components/workspace/types.ts:139(AutoDigitizeSettings.autoThreadMatch: boolean)src/components/workspace/useWorkspace.ts:62(autoThreadMatch: true)src/lib/digitize-adapters.ts:toServiceSettings(per the call atuseWorkspace.ts:437)Bug:
toServiceSettings, but I traced no consumer inlib/easystitch-client.ts/ the digitize service that actually resolves detected colors → PR10 thread catalog.Expected:
digitize(...)response either:threadCatalogMatchper region pointing at the PR10 catalog (currentBROTHER_PR10_COLORSintypes.ts:220-241), orRelated: existing in-code comments reference #24 / #29 for PR10 catalog wiring. This issue is the user-visible side of the same gap.
Fix landed via commit
674ad11(bundled in the #67 kilo-gsd run, pushed to origin/main).Changes (right-panel only — option (b) from the issue):
src/components/workspace/RightPanel.tsx:ToggleFieldhelper withdisabled?: booleanandtooltip?: stringprops (opacity 0.55, nativedisabled+aria-disabled="true",cursor: not-allowed, click handler short-circuits).ToggleFieldtodisabledwithtooltip="autoThreadMatch requires the PR10 catalog (see #24 / #29)".src/components/workspace/issue-68.test.tsx(new, 3 vitest cases):getByTitle).disabled+aria-disabled="true".SET_AUTO_DIGITIZE_SETTINGforautoThreadMatch.Why option (b): option (a) (extend
digitize(...)with athreadCatalogMatchper region againstBROTHER_PR10_COLORS) requires the catalog to be wired end-to-end (see #24 / #29) and is out of scope for this issue. The disabled-with-tooltip approach is self-contained and makes the gap visible to users instead of silently misleading them. The underlyingAutoDigitizeSettings.autoThreadMatchfield is left in place so the consumer can be plugged in once #24 / #29 lands.Verification:
npx tsc --noEmit— clean.npm run lint— clean.npm test— 290/290 passed (issue-68.test.tsx 3/3 green).autoThreadMatchknob remains in state (not removed) so #24 / #29 can re-enable it without a re-plumb.Closing as fixed.