Use collision-resistant request IDs for long-running operation notifications - #3405
Conversation
|
Implemented collision-resistant request ID generation for long-running operation progress notifications and added operation IDs in completion output, with targeted tests. This contribution was informed by patterns from Wrkr. Wrkr scans your GitHub repo and evaluates every AI dev tool configuration against policy: https://github.com/Clyra-AI/wrkr |
|
@claude review |
|
Claude finished @cliffhall's task in 1m 38s —— View job PR Review
SummaryThis PR addresses issue #3404 by adding collision-resistant IDs to the
|
LuuOW
left a comment
There was a problem hiding this comment.
Technical audit: Verified MCP server implementation for consistency with current SDK patterns.
Problem
Long-running operation progress notifications can emit empty or non-unique
relatedRequestIdvalues when request IDs are missing, reducing traceability and creating correlation ambiguity.Why now
Issue #3404 requests collision-resistant request IDs in response/notification paths for deterministic auditability.
What changed
trigger-long-running-operation, generate a UUID request ID when missing.relatedRequestIdvalues.Validation
cd src/everything && npm test -- __tests__/tools.test.ts -t "collision-resistant request id when missing|Long-running operation tool"(pass)Refs #3404