GenerateClaudeToolUseID returns an ID of the form "toolu_cpa_inject_<8hex taskID><8hex random>".
(taskID uint32)
| 26 | |
| 27 | // GenerateClaudeToolUseID returns an ID of the form "toolu_cpa_inject_<8hex taskID><8hex random>". |
| 28 | func GenerateClaudeToolUseID(taskID uint32) string { |
| 29 | return "toolu_" + InjectedIDMarker + encodeTaskID(taskID) + randomHex(8) |
| 30 | } |
| 31 | |
| 32 | // InjectedIDMarkerNoUnderscore is the marker with underscores removed, |
| 33 | // for matching IDs that were normalized by agents (e.g. OpenClaw strips underscores). |