Commit 2740de4
fix: do not generate SDK-side requestId when server omits x-request-id header
When the response carries no x-request-id header, set requestID to null
instead of fabricating a UUID with an SDK-Generated- prefix. A null value
is the honest signal to callers that no server request ID is available.
Also removes the now-unused UUID import.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 3406eaa commit 2740de4
1 file changed
Lines changed: 1 addition & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
| |||
74 | 73 | | |
75 | 74 | | |
76 | 75 | | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
| 76 | + | |
82 | 77 | | |
83 | 78 | | |
84 | 79 | | |
| |||
0 commit comments