YoVinchen
0cb8b30f15
refactor(backend): replace unsafe unwrap calls with proper error handling
- Add to_json_string helper for safe JSON serialization
- Add lock_conn macro for safe Mutex locking
- Replace 41 unwrap() calls with proper error handling:
- database.rs: JSON serialization and Mutex operations (31 fixes)
- lib.rs: macOS NSWindow and tray icon handling (3 fixes)
- services/provider.rs: Claude model normalization (1 fix)
- services/prompt.rs: timestamp generation (3 fixes)
- services/skill.rs: directory name extraction (2 fixes)
- mcp.rs: HashMap initialization and type conversions (5 fixes)
- app_config.rs: timestamp fallback (1 fix)
This improves application stability and prevents potential panics.
2025-11-23 16:23:18 +08:00
..
2025-11-22 19:18:35 +08:00
2025-09-14 21:55:41 +08:00
2025-11-23 16:23:18 +08:00
2025-11-19 11:45:07 +08:00
2025-09-23 20:55:30 +08:00
2025-08-23 19:59:29 +08:00
2025-08-27 11:00:53 +08:00
2025-11-22 23:23:56 +08:00
2025-11-22 23:23:56 +08:00
2025-11-19 09:03:18 +08:00
2025-11-22 19:18:35 +08:00