Skip to content

Fix provider init flow and agent edit access checks#1

Open
dhaanisi wants to merge 1 commit into
zyndai:mainfrom
dhaanisi:feature/general-updates
Open

Fix provider init flow and agent edit access checks#1
dhaanisi wants to merge 1 commit into
zyndai:mainfrom
dhaanisi:feature/general-updates

Conversation

@dhaanisi
Copy link
Copy Markdown

What changed

  • Removed mount-gating in Providers so children always render under provider context.
  • Added explicit missing NEXT_PUBLIC_PRIVY_APP_ID fallback in providers.tsx.
  • Simplified dashboard/agents/[id]/edit param/loading flow with useParams().
  • Added client-side ownership guard + clearer error/unauthorized navigation states.

Why

This prevents latent provider/hydration edge cases, improves with misconfiguration diagnostics, and makes edit-route UX safer and clearer before backend validation kicks in.

Validation

  • Lint/type checks pass for updated files.
  • Owner/non-owner behaviour on edit route is now explicitly handled.
  • Missing Privy app ID now fails with an actionable in-app message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant