Fix agent Supabase persistence, streamline nav, add sidebar + workflow page + traders portfolio - #11
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…page, traders portfolio Agent-Logs-Url: https://github.com/mesayanroy/0x402-pubsub/sessions/0728ad74-e099-44a9-9134-39bab6e05f8c Co-authored-by: mesayanroy <169074736+mesayanroy@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix agent storage issue in database and update dashboard
Fix agent Supabase persistence, streamline nav, add sidebar + workflow page + traders portfolio
Mar 30, 2026
mesayanroy
marked this pull request as ready for review
March 30, 2026 23:12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Agents were silently falling back to in-memory/file demo storage on every cold start (serverless = ephemeral), causing "Agent Not Found" on any subsequent lookup. OpenAI responses returned demo-mode strings because
.env.localdidn't exist in the repo clone.Supabase schema (
supabase-schema.sql)CREATE TABLE IF NOT EXISTS/CREATE INDEX IF NOT EXISTS— idempotent, safe to re-runagents.owner_wallet → users(wallet_address)— this was the root cause; FK violations on serverless (user-upsert races a fresh instance) silently triggered demo fallbackALTER TABLE … DISABLE ROW LEVEL SECURITYfor all tables so the service-role key works without manual policy setupAgent create route (
app/api/agents/create/route.ts)agents.insertpath; distinguishes permission-denied vs missing-table vs other errors with clear messagesNavigation
Navbarreduced to Home / Docs / Devs / About onlySidebarcomponent with SVG icons: Dashboard, Marketplace, Trading, Own Agents, Build Agent, WorkflowAppShellclient wrapper renders sidebar only on app pages (/dashboard,/marketplace,/trading,/agents,/build,/workflow); root layout updated accordinglyWorkflow page (
app/workflow/page.tsx) — newDashboard traders portfolio (
app/dashboard/page.tsx)