fix: preserve codex effort suffixes in dashboard profiles

This commit is contained in:
Tam Nhu Tran
2026-04-22 14:24:00 -04:00
parent b376a485e0
commit e2ca197397
19 changed files with 557 additions and 202 deletions
+5 -1
View File
@@ -84,7 +84,11 @@ export const loginRateLimiter = rateLimit({
/**
* Create session middleware configured for CCS dashboard.
*/
export function createSessionMiddleware() {
export function createSessionMiddleware(): (
req: Request,
res: Response,
next: NextFunction
) => void {
const authConfig = getDashboardAuthConfig();
const maxAge = (authConfig.session_timeout_hours ?? 24) * 60 * 60 * 1000;