gitdataai/libs
ZhenYi 09645d8641 fix: resolve multiple bugs across backend and frontend
Security fixes:
- Remove WS token from plaintext log output (ws_universal.rs)
- Replace weak LCG PRNG with rand::thread_rng() for access key generation
- Add project membership check to issue triage endpoint (prevent unauthorized AI usage)
- Validate deepLinkUrl to prevent javascript: navigation (XSS defense-in-depth)

Data integrity fixes:
- Fix UUID truncation in AI model sync (as_u128() as i64 -> timestamp_millis)
- Wrap PR cascade delete in database transaction
- Add missing cascade deletes for room_message_reaction, room_message_edit_history, room_notifications
- Fix N+1 query for last_commit_times (single grouped query instead of per-repo)

Panic prevention:
- Replace unwrap() with safe fallbacks in health/metrics endpoints (email, git-hook apps)
- Replace unwrap() in access key scopes serialization
- Replace expect() in tool executor result map with synthetic error
- Replace expect() in log level parsing with default fallback

Logic bugs:
- Fix users_online metric double-decrement (decrement only when count reaches 0)
- Fix Map iteration + deletion bug in universal-ws.ts onclose handler
- Fix stale audioStream reference in catch block (use local stream variable)
- Add missing reInit event cleanup in carousel.tsx
- Fix email retry backoff integer overflow ((1 << i) as u64 -> 1u64 << i)

React fixes:
- Use message.id instead of index as key in message-list
- Add audio stream cleanup on unmount in use-audio-recording
2026-04-27 13:54:21 +08:00
..
agent fix: resolve multiple bugs across backend and frontend 2026-04-27 13:54:21 +08:00
agent-tool-derive init 2026-04-15 09:08:09 +08:00
api fix: resolve multiple bugs across backend and frontend 2026-04-27 13:54:21 +08:00
avatar init 2026-04-15 09:08:09 +08:00
config refactor(db): simplify read-replica to single connection for CNPG 2026-04-26 01:03:39 +08:00
db revert(db): remove check_compatibility — method not available in sqlx 0.8 2026-04-26 15:49:51 +08:00
email fix: resolve multiple bugs across backend and frontend 2026-04-27 13:54:21 +08:00
fctool refactor(fctool): extract tool modules into standalone fctool crate 2026-04-26 23:58:16 +08:00
frontend feat(api): pre-compress static assets with brotli and gzip 2026-04-25 20:09:09 +08:00
git fix: resolve multiple bugs across backend and frontend 2026-04-27 13:54:21 +08:00
migrate feat: thinking_content column + first-project budget logic 2026-04-26 13:11:06 +08:00
models feat: thinking_content column + first-project budget logic 2026-04-26 13:11:06 +08:00
observability fix: resolve multiple bugs across backend and frontend 2026-04-27 13:54:21 +08:00
queue feat(room): store ordered streaming chunks + billing integration 2026-04-26 13:10:42 +08:00
room fix: resolve multiple bugs across backend and frontend 2026-04-27 13:54:21 +08:00
rpc chore(rpc): regenerate after removing metrics endpoints 2026-04-24 13:22:01 +08:00
service fix: resolve multiple bugs across backend and frontend 2026-04-27 13:54:21 +08:00
session feat(admin): add admin panel with billing alerts and model sync 2026-04-19 20:48:59 +08:00
session_manager perf: sequence generation Redis-only + session MGET batch 2026-04-24 00:04:27 +08:00
transport init 2026-04-15 09:08:09 +08:00
webhook init 2026-04-15 09:08:09 +08:00