Skip to content

fix(core): show the id when a take or DM name is blank - #6721

Open
davidfarah2003 wants to merge 1 commit into
mainfrom
fix/tool-result-blank
Open

davidfarah2003 wants to merge 1 commit into
mainfrom
fix/tool-result-blank

Conversation

@davidfarah2003

Copy link
Copy Markdown
Contributor

Fixes #6720.

A take notice printed the holder's name, so a whitespace-only name left a gap ( (local.blank) took your @reviewer request) and a newline split the line. An anycast status did the same (taken by (local.blank), Ask with cotal_dm). A direct-message receipt did the same (Sent to ., and the offline sentence named that blank three times).

The notice, the status, and the receipt show the id when the name is missing or only whitespace. A name that contains a character stays, including a leading space ( ada). A real name is still printed in front of its id. A redelivery notice and a refused take use the same id.

pnpm exec tsx extensions/connector-core/smoke/tool-blank-name.smoke.ts passed 13 checks. The take notice is the text decideTake stores. The status and the DM receipt come from the real cotal_anycast and cotal_dm tools.

docs/mcp-tools.mdx covers the notice, the status, and the DM receipt.

A take notice, an anycast status, and a direct-message receipt printed a whitespace-only holder or recipient name as a blank. They now show the id. A name that still contains a character, including a leading space, stays.
@davidfarah2003

Copy link
Copy Markdown
Contributor Author

Please stop opening one pull request per blank-name surface. Thirty-eight have been opened today; each needs its own full suite run and they conflict in the shared suite files. Eighteen are combined in #6692. The fourteen still open (#6694 to #6721) get combined into one second pull request after #6692 merges; please do not push to them. Further surfaces: comment on #6638 and send one patch for all of them rather than new issues and pull requests.

This branch has not been deployed

No deployments
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.

A take notice and a DM receipt show a blank when the name is whitespace

1 participant