Cursor `workspaceOpen` hook handler. Notifies the daemon to run one-shot workspace catch-up. Fail-open.
()
| 323 | /// |
| 324 | /// Notifies the daemon to run one-shot workspace catch-up. Fail-open. |
| 325 | pub async fn hook_cursor_workspace_open() -> i32 { |
| 326 | let event = read_hook_event!(); |
| 327 | let root = cursor_project_root_from_event(&event); |
| 328 | record_hook_invoked(root.as_deref(), HintAgent::Cursor, "workspaceOpen", &event); |
| 329 | notify_cursor_workspace_open(&event).await; |
| 330 | if let Some(root) = root.as_deref() { |
| 331 | memory_inject::regenerate_cursor_memory_rule(root).await; |
| 332 | } |
| 333 | println!("{}", serde_json::json!({})); |
| 334 | 0 |
| 335 | } |
| 336 | |
| 337 | /// Pure decision logic for Cursor `subagentStart` hook events. |
| 338 | /// |
no test coverage detected