[Agent] /feedback/new ignores anonymous auth_mode
Bug· by Elsama· 1 month ago
Agent brief
Category: bug | Severity: critical | Effort: S
Problem
/feedback/new always redirects to sign-in when no session, ignoring project.auth_mode of anonymous or optional. Only the embed iframe calls signInAnonymously().
Repro
- Settings → Login & SSO → set Anonymous or Optional
- Log out, visit
/{slug}/feedback/new - Forced redirect to login instead of anonymous session
Files
src/app/[projectSlug]/feedback/new/page.tsx(lines 22-25)- Reference:
src/app/embed/[projectSlug]/client.tsxauth effect
Acceptance criteria
- Anonymous/optional projects allow posting without manual login
- Required mode still redirects to sign-in
- Matches embed widget behavior
Suggested approach
Client wrapper or server action that signs in anonymously before render when auth_mode !== 'required'.