df4b7399adace84ddc097f6ac748f71ae6877a0a
The admin page role check was failing because better-auth v1.5.5 doesn't automatically include additionalFields (like 'role') in the session response. This caused the admin guard to treat all users as non-admin and redirect them. The fix implements a defensive fallback in the AdminGuard that fetches the role from the database if it's missing from the session, ensuring that admin users can access the admin panel while protecting against regression. Fixes #196
Description
Self-hosted multi-user AI agent platform — web dashboard, TUI, remote control, shared memory, mission orchestration
Releases
11
mosaic v0.0.29
Latest
Languages
TypeScript
74.5%
Shell
19.7%
PowerShell
3%
JavaScript
1.4%
Python
1%
Other
0.4%