Test/session cookie security regressions - #114
Conversation
|
@ojuotimi932 is attempting to deploy a commit to the karagoz's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@ojuotimi932 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
|
Thanks for the session cookie regression PR. I cannot merge it yet because the new test file is not picked up by the repo's Vitest include pattern. Command run: npm ci
npm test -- src/modules/auth/__tests__/session-cookie.spec.tsResult: The new file is named npm test -- src/modules/auth/__tests__/session-cookie.test.ts
npm run build |
|
Thanks for the rename/update. I rechecked the current branch and the test file is now picked up by Vitest, but it still cannot merge because it fails before running any tests:
fails with:
The test currently depends on Please rewrite this against the existing Fortexa auth/session helpers or route handlers already in the app, without adding unrelated server dependencies. Then rerun the focused test and typecheck. |
|
Thanks for the update. I rechecked this under the karagozemin account. The previous Express dependency direction appears to have been changed, but the PR is currently blocked before tests because whitespace validation fails: Please remove the trailing whitespace, then rerun:
Once diff check is clean I can continue the functional review. |
|
all checks passed. kindly review and merge repo |
|
Thanks for the PR! The build passes locally ✅, but after other PRs landed on |
- decision-console.tsx: replace useEffect setState with logic in runDecision handler - policy-editor.tsx: add eslint-disable for init effect + wire unused previewRollback button - use-auth-session.ts: add eslint-disable for session refresh init effect - check-doc-links.mjs: remove unused `lines` variable - route.test.ts: add missing GET(req) call for broken test - ops-dashboard.tsx: remove unused lastRefreshed state - engine.test.ts: remove unused AgentAction, DailyUsage imports - analyzer.test.ts: remove unused timeoutPromise variable - analyzer.ts: remove unused isNetworkError variable
- docs/PRODUCTION_READINESS.md: remove trailing spaces on lines 24, 28 - tsconfig.json: remove trailing blank line at EOF
…ad of relying on thrown errors fetchBlocklist() internally catches all errors and returns cachedDomains without re-throwing, so fetchBlocklistWithTimeout() never saw failures. Now checks getBlocklistHealth().lastError to detect fetch/degradation. Also fixes test: 'reveal secret key' matched PROMPT_INJECTION_PATTERN not SECRET_TARGETING. Changed to 'share your private key'. Fixes 5 failing CI tests in analyzer.test.ts.
Drop duplicate POST import and fix auth tests in route.test.ts, restore lastRefreshed state/display in ops-dashboard.tsx, remove unused eslint-disable directives.
eslint-plugin-react-hooks 7.1.1 (lockfile/CI) fires set-state-in-effect for loadPolicy and refresh, which synchronously call setLoading before their first await. Keep the directives there; the loadHistory one is genuinely unused.
Closes #75