Skip to content

CM-62381-add-session-start-hook#434

Merged
RoniCycode merged 12 commits intomainfrom
CM-62381-refactor-ensure-auth-command
Apr 20, 2026
Merged

CM-62381-add-session-start-hook#434
RoniCycode merged 12 commits intomainfrom
CM-62381-refactor-ensure-auth-command

Conversation

@RoniCycode
Copy link
Copy Markdown
Collaborator

  • Change "ensure-auth" to "session-start" which includes conversation creation and MCP usage checks (once per session)

Comment thread cycode/cli/apps/ai_guardrails/session_start_command.py Outdated
Comment thread cycode/cli/apps/ai_guardrails/session_start_command.py Outdated
Comment thread cycode/cli/apps/ai_guardrails/session_start_command.py Outdated
Comment thread cycode/cyclient/ai_security_manager_client.py Outdated
Comment thread cycode/cli/apps/ai_guardrails/session_start_command.py
Comment thread cycode/cli/apps/ai_guardrails/session_start_command.py Outdated
Comment thread cycode/cli/apps/ai_guardrails/session_start_command.py Outdated
Comment thread cycode/cli/apps/ai_guardrails/session_start_command.py Outdated
Comment thread cycode/cli/apps/ai_guardrails/session_start_command.py
Comment thread cycode/cli/apps/ai_guardrails/session_start_command.py Outdated
Comment thread tests/cli/commands/ai_guardrails/test_session_start_command.py Outdated
Copy link
Copy Markdown
Collaborator

@elsapet elsapet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some comments for your consideration but no major blockers IMO 🙏

Comment thread cycode/cli/apps/ai_guardrails/session_start_command.py Outdated
Comment thread cycode/cli/apps/ai_guardrails/session_start_command.py
Comment thread cycode/cli/apps/ai_guardrails/scan/claude_config.py Outdated
Comment thread cycode/cli/apps/ai_guardrails/session_start_command.py Outdated
Comment thread cycode/cli/apps/ai_guardrails/__init__.py Outdated
Comment thread cycode/cli/apps/ai_guardrails/session_start_command.py
@RoniCycode RoniCycode merged commit 5405656 into main Apr 20, 2026
28 checks passed
@RoniCycode RoniCycode deleted the CM-62381-refactor-ensure-auth-command branch April 20, 2026 10:17
MaorDavidzon added a commit that referenced this pull request Apr 23, 2026
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>
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.

3 participants