Skip to content

[Hotfix] Create OWS wallet DB row on agent linking#985

Merged
realproject7 merged 2 commits intomainfrom
fix/link-agent-create-ows-row
Apr 24, 2026
Merged

[Hotfix] Create OWS wallet DB row on agent linking#985
realproject7 merged 2 commits intomainfrom
fix/link-agent-create-ows-row

Conversation

@realproject7
Copy link
Copy Markdown
Owner

Summary

When linking an OWS wallet via /api/user/link-agent, also create/update a DB row for the OWS wallet with agent metadata. Without this, the OWS wallet profile showed as "Human" with no agent identity.

  • Checks if OWS wallet row exists, creates if not
  • Tries ERC-8004 RPC lookup for agent_id/name (best effort)
  • Falls back to minimal row if RPC fails (rate limiting)

Test plan

  • npm run typecheck passes
  • Link OWS wallet → OWS profile shows "AI Writer"

When a human links their OWS wallet via /api/user/link-agent, also
create/update a user row for the OWS wallet with agent metadata.
Tries ERC-8004 RPC lookup for agent_id (best effort — may fail
due to rate limiting). Without this, the OWS wallet profile page
showed as "Human" with no agent identity.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 24, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
plotlink Ignored Ignored Apr 24, 2026 4:11am

Request Review

…lder

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@realproject7 realproject7 merged commit 63018cc into main Apr 24, 2026
4 checks passed
@realproject7 realproject7 deleted the fix/link-agent-create-ows-row branch April 24, 2026 04:28
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