Commit c765e3b
CM-62984: Align Codex integration with session-start refactor
Post-merge fixes after #434 (session-start refactor) landed on main:
- consts.py: Codex SessionStart now calls CYCODE_SESSION_START_COMMAND
with --ide codex, matching the Cursor/Claude-code pattern (the old
CYCODE_ENSURE_AUTH_COMMAND constant was removed).
- session_start_command.py: add Codex branch to _build_session_payload
so session_start works for the Codex IDE.
- handlers.py: drop ai_client.create_conversation() call from
handle_before_command_exec; conversation creation now happens in the
session-start command, matching the other three handlers.
- test_hooks_manager.py: update Codex SessionStart test to assert on
CYCODE_SESSION_START_COMMAND + --ide codex.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 0a5b30d commit c765e3b
4 files changed
Lines changed: 14 additions & 4 deletions
File tree
- cycode/cli/apps/ai_guardrails
- scan
- tests/cli/commands/ai_guardrails
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| 173 | + | |
173 | 174 | | |
174 | 175 | | |
175 | 176 | | |
| |||
181 | 182 | | |
182 | 183 | | |
183 | 184 | | |
184 | | - | |
| 185 | + | |
185 | 186 | | |
186 | 187 | | |
187 | 188 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
272 | | - | |
273 | 272 | | |
274 | 273 | | |
275 | 274 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
44 | 53 | | |
45 | 54 | | |
46 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
| 154 | + | |
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
| 159 | + | |
| 160 | + | |
160 | 161 | | |
161 | 162 | | |
162 | 163 | | |
| |||
0 commit comments