MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / codex_user_prompt_submit_context_for_event

Function codex_user_prompt_submit_context_for_event

src/hooks/codex.rs:93–104  ·  view source on GitHub ↗
(event: &str)

Source from the content-addressed store, hash-verified

91}
92
93pub async fn codex_user_prompt_submit_context_for_event(event: &str) -> String {
94 let (mut context, status) = codex_session_context_for_event(event).await;
95 if !matches!(status, HookWorkspaceStatus::Generic) {
96 if let Some(hint) = codex_prompt_hint(event) {
97 append_tool_hint(&mut context, &hint);
98 }
99 if let Some(recall) = codex_prompt_memory_recall(event).await {
100 append_context_block(&mut context, &recall);
101 }
102 }
103 context
104}
105
106async fn codex_prompt_memory_recall(event_json: &str) -> Option<String> {
107 let parsed = serde_json::from_str::<Value>(event_json).ok()?;

Calls 5

codex_prompt_hintFunction · 0.85
append_tool_hintFunction · 0.85
append_context_blockFunction · 0.85