mirror of
https://github.com/openai/codex.git
synced 2026-11-15 21:50:46 +00:00
Track source attribution for individual context parts (#52195)
## What changed - Add `ContentItemMetadata` to distinguish user input, developer instructions, `AGENTS.md`, skills, harness context, and tool-supplied context independently of message role and content classification. - Keep attribution attached to content through prompt assembly, history processing, and hook-output spilling. Distinguish command hooks from MCP hooks and retain tool namespaces when known. - Treat missing historical attribution as unknown and send per-content metadata only to Responses Lite. ## Testing Update request and history assertions to cover attribution persistence and Responses Lite metadata handling. GitOrigin-RevId: 24e56005f5bdb98bf82f2b3943f29c4c81f3d587
This commit is contained in:
@@ -1209,6 +1209,7 @@ impl CodexThread {
|
||||
/*requested_timeout*/ None, /*wait_for_server*/ true,
|
||||
)
|
||||
.await
|
||||
.map(|call| call.result)
|
||||
}
|
||||
|
||||
pub fn enabled(&self, feature: Feature) -> bool {
|
||||
|
||||
Reference in New Issue
Block a user