Skip to content

Fix MCP compact search line and cursor metadata #4402

Description

@Widthdom

Summary

MCP compact search reports chunk start lines rather than actual match lines and returns next_cursor even when count equals total, truncated=false, and more_available=false. Compact locations and pagination metadata should agree with the full result.

Evidence source

Dogfooded with the locally built cdidx 1.37.2 on origin/main 098db58. Full tests passed before audit.

Duplicate check

No open issues existed at filing time; closed issues were intentionally not used as blockers per filing instructions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcodex

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions