Repository navigation
feat(codex): deliver architectural decisions into Codex SessionStart - #788
Conversation
Wire the existing standing-decisions injection into the Codex SessionStart hook so decisions follow the user across agents — matching the behavior that Claude Code already has. - Extract the MCP-usage paragraph into a module-level _MCP_CONTEXT constant - On SessionStart, append the relevance-ranked decisions from _session_decision_block() to the context block - Pass session_id from the hook payload so decision scoring uses it Closes repowise-dev#786
|
✅ Health: 7.6 (unchanged) 📋 At a glance
🔎 More signals (2)🔥 Hotspot touched (1)
🔗 Hidden coupling (1 file)
📊 Full report · ⭐ Star Repowise · 📥 Install bot · Last updated 2026-07-13 21:12 UTC |
|
Thanks for picking this up @DresdenGman One thing though: this closes #786, but the issue asks for two delivery moments and this only does one. The edit-time "governed by" notice is still missing. _handle_post_edit_use is untouched and only emits the staleness reminder, so editing a governed file in Codex won't surface the decision the way it does in Claude. The builder for it already exists (_edit_decision_notice), so it should be a small addition. Note that the post-edit handler doesn't get session_id today, so that branch needs it plumbed through too. Can you either add the edit-time notice here, or drop "Closes #786" to "Part of #786" and open a follow-up? Just don't want the issue auto-closing with half the work still open. The SessionStart change itself is ready. |
Wire the existing _edit_decision_notice builder into the Codex post-edit hook so editing a governed file surfaces the same once-per-decision notice Claude Code delivers — matching the second half of what repowise-dev#786 asked for. - _handle_post_edit_use accepts session_id and tool_input params - On edit, reloads session state and calls _edit_decision_notice with the edited file's repo-relative path - Staleness reminder + decision notice combined into one response Closes repowise-dev#786
|
Added the edit-time governing-decision notice — |
Wire the existing standing-decisions injection into the Codex SessionStart hook so decisions follow the user across agents — matching the behavior that Claude Code already has.
_MCP_CONTEXTconstant_session_decision_block()to the context blocksession_idfrom the hook payload so decision scoring uses itCloses #786.