Skip to content

fix: keep HAR list search when callers use the describe filter - #1042

Draft
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/critical-bug-audit-4418
Draft

cursor[bot] wants to merge 1 commit into
mainfrom
cursor/critical-bug-audit-4418

Conversation

@cursor

@cursor cursor Bot commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

Description

harness_list search for v1 registries, artifacts, and artifact versions silently returned an unfiltered page when the caller used the filter name from harness_describe.

queryParams maps an input key to an API query key. HAR list endpoints expect the query parameter search_term. harness_describe advertises that filter as search, and harness_list also has a top-level search_term argument. A recent change kept only the search_term input key, so filters.search was dropped before the request. The API then returned the full page.

Both input names now map to search_term. When both are set, search_term wins.

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Documentation
  • Other

Checklist

  • pnpm test passes (172 files, 3934 tests)
  • pnpm typecheck passes
  • pnpm build passes
  • pnpm standards:check passes (architecture guardrails — see docs/coding-standards.md)
  • pnpm docs:check passes (if registry/tool counts changed)

Coding Standards (registry-driven MCP model)

If this PR adds or changes Harness API coverage:

  • No new server.registerTool() calls — only toolset definitions in src/registry/toolsets/
  • Toolset registered in ALL_TOOLSETS and ToolsetName union
  • operationPolicy on every new/changed endpoint
  • Shared response extractors from src/registry/extractors.ts (no raw passthrough on real endpoints)
  • identifierFields and scope declared on new resources
  • No console.log() in src/ (stdio JSON-RPC safety)
Open in Web View Automation 

harness_describe still advertises search for registry, artifact, and
artifact version lists. The query map only read search_term, so that
filter was dropped and the API returned an unfiltered page. Accept both
input names and send the HAR search_term query parameter.

Co-authored-by: Rohan Gupta <thisrohangupta@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant