Skip to content

feat(codex): deliver architectural decisions into Codex SessionStart#788

Open
DresdenGman wants to merge 1 commit into
repowise-dev:mainfrom
DresdenGman:feat/codex-decisions
Open

feat(codex): deliver architectural decisions into Codex SessionStart#788
DresdenGman wants to merge 1 commit into
repowise-dev:mainfrom
DresdenGman:feat/codex-decisions

Conversation

@DresdenGman

Copy link
Copy Markdown

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 #786.

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
@repowise-bot

repowise-bot Bot commented Jul 11, 2026

Copy link
Copy Markdown

✅ Health: 7.6 (unchanged)

📋 At a glance
1 file changed health · 1 hotspot touched · 1 new finding introduced · 1 co-change pair left out. Scoped to packages.

File Score Δ Why
.../augment_cmd/codex.py 10.0 → 9.8 ▼ -0.2 🔻 introduced error handling

💡 .../augment_cmd/codex.py: Handle or propagate the error. A swallowed exception, catch-all except, unguarded unwrap, or discarded Go error turns failures into silent misbehavior — log and re-raise, narrow the caught type, replace unwrap with the ? operator or a match, or check the error you are currently discarding.

🔎 More signals (2)

🔥 Hotspot touched (1)

  • .../augment_cmd/command.py — 4 commits/90d, 1 dependents · primary owner: Raghav Chamadiya (100%)

🔗 Hidden coupling (1 file)

  • .../augment_cmd/command.py co-changes with .../augment_cmd/read_state.py (2× — 🟢 routine) — not in this PR.

📊 Full report · ⭐ Star Repowise · 📥 Install bot · Last updated 2026-07-11 19:32 UTC
Silence on a single PR with [skip repowise] in the title · Per-repo toggle on repowise.dev/settings?tab=bot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Deliver architectural decisions into Codex sessions (SessionStart block + edit-time notice)

1 participant