MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_parse_session_start_with_model

Function test_parse_session_start_with_model

atomic-agent/src/hooks/cursor.rs:874–883  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

872
873 #[test]
874 fn test_parse_session_start_with_model() {
875 let hook = make_hook();
876 let input =
877 br#"{"conversation_id": "c1", "model": "claude-sonnet-4-6", "composer_mode": "agent"}"#;
878 let event = hook.parse_event(HookType::SessionStart, input).unwrap();
879 assert_eq!(event.session_id, "c1");
880 let raw = event.raw_json.unwrap();
881 assert_eq!(raw["model"], "claude-sonnet-4-6");
882 assert_eq!(raw["composer_mode"], "agent");
883 }
884
885 #[test]
886 fn test_parse_session_start_with_background_agent() {

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected