Skip to content

fix(delegation): backfill profiles.wallet_pubkey on delegate (GHB-110)#139

Open
aagear wants to merge 1 commit into
Ghbounty:mainfrom
aagear:aagear/ghb-110-backfill-profiles-wallet-pubkey
Open

fix(delegation): backfill profiles.wallet_pubkey on delegate (GHB-110)#139
aagear wants to merge 1 commit into
Ghbounty:mainfrom
aagear:aagear/ghb-110-backfill-profiles-wallet-pubkey

Conversation

@aagear

@aagear aagear commented Jun 30, 2026

Copy link
Copy Markdown

Fixes #110

On delegation, also update profiles.wallet_pubkey so MCP auth can read
it from the profiles table. Only sets when currently null — does not
overwrite an existing value.

Changes

  • frontend/lib/agent-delegation-route-core.ts: after delegation upsert, backfill profiles.wallet_pubkey if currently null
  • frontend/tests/agent-delegation-route-core.test.ts: 3 new tests covering the backfill logic (profile update call, correct payload, null filter)

Testing

All 219 frontend tests pass (12 delegation-specific). Full workspace: 591 tests passed across all packages.

On delegation, also update profiles.wallet_pubkey so MCP auth can read
it from the profiles table. Only sets when currently null — does not
overwrite an existing value.

Fixes Ghbounty#110
@aagear aagear requested a review from tomazzi14 as a code owner June 30, 2026 07:55
@vercel

vercel Bot commented Jun 30, 2026

Copy link
Copy Markdown

@aagear is attempting to deploy a commit to the weareghbounty-6269's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

Credentials page cannot authorize agent wallet without NEXT_PUBLIC_PRIVY_SIGNER_ID

1 participant