SIGN IN SIGN UP

feat(harness-acp): support `title` and `toolUseKind` for ACP tools (#19353)

## Background

Some ACP implementations, including Cursor, rely on standard ACP `title`
and `toolUseKind` metadata when built-in tool calls omit a programmatic
name. Because these are ACP protocol fields rather than
implementation-specific extensions, support belongs in the central ACP
meta-adapter.

## Summary

- Carry built-in `title` and `toolUseKind` metadata through the ACP
bridge.
- Resolve unnamed built-in calls using the longest compatible title
prefix and ACP tool kind, while preserving dynamic calls when matches
remain ambiguous.
- Start the initial prompt before waiting for lazy MCP catalog discovery
and correlate nested Cursor MCP inputs.
- Add regression coverage for serialization, matching, catalog refresh,
and host-tool correlation.

## Checklist

- [x] All commits are signed (PRs with unsigned commits cannot be
merged)
- [x] Tests have been added / updated (for bug fixes / features)
- [ ] Documentation has been added / updated (for bug fixes / features)
- [x] A _patch_ changeset for relevant packages has been added (for bug
fixes / features - run `pnpm changeset` in the project root)
- [x] I have reviewed this pull request (self-review)

## Future Work

This will unblock implementation of a Cursor harness adapter.
F
Felix Arntz committed
b6396ff42be29353f3cac12822ec9231afbccd39
Parent: 2214258
Committed by GitHub <noreply@github.com> on 8/24/2026, 6:56:07 PM