Skip to content

test(copilot): catch a tool silently dropping its query from the chip#5953

Draft
j15z wants to merge 1 commit into
stagingfrom
test/argument-aware-tool-titles
Draft

test(copilot): catch a tool silently dropping its query from the chip#5953
j15z wants to merge 1 commit into
stagingfrom
test/argument-aware-tool-titles

Conversation

@j15z

@j15z j15z commented Jul 25, 2026

Copy link
Copy Markdown
Collaborator

Summary

has an intentional display title for every visible catalog tool only checks that a title exists. A bare fallback label satisfies it exactly as well as a useful one, so a tool that shows its query in the chip can stop doing so with the suite still green.

Adds a subset ratchet: any catalog tool taking a query must show it, unless listed in a documented allowlist. The set may shrink but never grow, so removing a tool — or teaching one to show its query — needs no change here.

Three tools currently ignore their query and are baselined with the reason recorded: search_documentation and search_library_docs have no argument-aware case, and search_online has one that reads toolTitle/title without falling back to query. Changing their chips is a UX decision that does not belong in a test-hardening change.

Type of Change

  • Other: test hardening

Testing

Verified the assertion actually fires — removing an entry from the allowlist fails with the offending tool named:

AssertionError: expected [ 'search_online' ] to deeply equal []

52 tool-display tests pass, tsc clean, biome clean.

Reviewers should focus on whether the allowlist is the right shape: a subset check keeps the invariant honest about today's state while still catching a regression, but it does mean the three baselined tools are not enforced until someone removes them.

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

The "has an intentional display title for every visible catalog tool"
assertion only checks that a title exists. A bare fallback label satisfies
it exactly as well as the useful one, so a tool that DID show its query can
lose that behavior with the suite still green — a coarse check contented by
a degraded state.

Adds a subset ratchet: any catalog tool that takes a `query` must show it,
unless it is in a documented allowlist. The set may shrink, never grow, so
removing a tool or teaching one to show its query needs no update here.

Baselines the three tools that ignore their query today rather than
changing their chips — making the rule true everywhere is a UX change and
does not belong in a test-hardening commit.

Verified by removing an entry from the allowlist: the assertion fails with
the offending tool named.
@vercel

vercel Bot commented Jul 25, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
docs Skipped Skipped Jul 25, 2026 2:13am

Request Review

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