mirror of
https://github.com/openai/codex.git
synced 2026-11-14 14:49:31 +00:00
Return the prompt hash in upload responses (#44325)
## What changed Add nullable `promptHash` to the upload response, populated from the uploaded `prompt_hash` tag. It identifies the whitespace-normalized SHA-256 of the session base instructions, excludes later developer messages, and is `null` when the reported rollout has no prompt metadata. Update the protocol schemas, precomputed exports, and generated TypeScript and Python types. GitOrigin-RevId: 6fa70fbe7a06604ac1cd0ea363eb4f192083dad9
This commit is contained in:
1 parent
0735c51978
commit
0adfc1f2f2
9 files changed
+48
-2
No files matched your search
@@ -27,4 +27,9 @@ pub struct FeedbackUploadParams {
|
||||
#[ts(export_to = "v2/")]
|
||||
pub struct FeedbackUploadResponse {
|
||||
pub thread_id: String,
|
||||
/// Whitespace-normalized SHA-256 of the session base instructions, matching the
|
||||
/// uploaded `prompt_hash` tag. Does not include later developer messages.
|
||||
/// Null when the reported rollout has no prompt metadata.
|
||||
#[serde(default)]
|
||||
pub prompt_hash: Option<String>,
|
||||
}
|
||||
Reference in new issue
Block a user