matcha icon indicating copy to clipboard operation
matcha copied to clipboard

BUG: Off-by-one in contact search result truncation

Open andrinoff opened this issue 7 months ago • 2 comments

Describe the bug Contact search at config/cache.go:233 uses > 5 instead of >= 5 for truncation. Edge case with exactly 6 matches behaves unexpectedly.

To reproduce

  1. Search contacts that match exactly 6 results
  2. Logic returns 5 but condition unclear
  3. User doesn't know if more results exist

Expected behavior Consistent truncation logic, clear when results limited

Matcha version master

OS All

Additional context File: config/cache.go line 233 Boundary condition bug

andrinoff avatar Apr 21 '26 14:04 andrinoff

This has had no activity for 30 days. It will be closed in 14 days unless updated. Comment or remove the stale label to keep it open.

floatpanebot avatar May 22 '26 06:05 floatpanebot

Closing due to inactivity. Reopen if still relevant.

floatpanebot avatar Jun 04 '26 19:06 floatpanebot