mirror of
https://github.com/openai/codex.git
synced 2026-11-28 23:34:06 +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
@@ -108,6 +108,7 @@ impl FeedbackRequestProcessor {
|
||||
None
|
||||
};
|
||||
apply_feedback_turn_metadata(&mut upload_tags, turn_metadata);
|
||||
let prompt_hash = upload_tags.get("prompt_hash").cloned();
|
||||
|
||||
if let Some(chatgpt_user_id) = auth
|
||||
.as_ref()
|
||||
@@ -314,7 +315,10 @@ impl FeedbackRequestProcessor {
|
||||
|
||||
upload_result
|
||||
.map_err(|err| internal_error(format!("failed to upload feedback: {err:#}")))?;
|
||||
Ok(FeedbackUploadResponse { thread_id })
|
||||
Ok(FeedbackUploadResponse {
|
||||
thread_id,
|
||||
prompt_hash,
|
||||
})
|
||||
}
|
||||
|
||||
async fn resolve_rollout_path(
|
||||
|
||||
Reference in new issue
Block a user