Generate a short hex string for fallback session IDs. This is only used when the bridge scripts fail to provide a session_id, which should be rare. Uses timestamp bits for uniqueness.
()
| 394 | /// This is only used when the bridge scripts fail to provide a session_id, |
| 395 | /// which should be rare. Uses timestamp bits for uniqueness. |
| 396 | fn uuid_short() -> String { |
| 397 | use std::time::{SystemTime, UNIX_EPOCH}; |
| 398 | |
| 399 | let now = SystemTime::now() |
| 400 | .duration_since(UNIX_EPOCH) |
| 401 | .unwrap_or_default() |
| 402 | .as_millis(); |
| 403 | |
| 404 | // Use lower 32 bits of timestamp for a short hex ID |
| 405 | format!("{:08x}", (now & 0xFFFF_FFFF) as u32) |
| 406 | } |
| 407 | |
| 408 | // Devin hook verb → HookType mapping |
| 409 |
no outgoing calls