Skip to content

[codex] Add Pubky Ring auth callbacks#537

Merged
ovitrif merged 1 commit intomasterfrom
codex/rebase-pr-527-contact-fixes-on-master
May 5, 2026
Merged

[codex] Add Pubky Ring auth callbacks#537
ovitrif merged 1 commit intomasterfrom
codex/rebase-pr-527-contact-fixes-on-master

Conversation

@ben-kaufman
Copy link
Copy Markdown
Contributor

@ben-kaufman ben-kaufman commented May 5, 2026

Summary

  • Add Pubky Ring success, cancel, and error callback handling for auth deeplinks.
  • Track active Ring auth attempts with nonces so stale callbacks are ignored safely.
  • Keep an existing Pubky profile authenticated when a new Ring auth attempt is canceled or errors.
  • Add focused tests for callback URL building/parsing and authenticated-state behavior.

Validation

  • Inspected diff against origin/master after rebasing: 1 commit, 6 files changed.
  • Attempted focused PubkyProfileManagerTests locally. The first run failed due to sandbox/cache permissions, the unavailable iPhone 16 simulator destination, and stale Rust FFI module artifacts. A clean DerivedData retry did not complete in this environment and was stopped, so CI should be treated as the source of truth for test status.

Notes

This is the clean rebased slice from the old codex/pr-527-contact-fixes branch. The earlier Pubky/contact work is already in master via PR #527; this PR carries the remaining Pubky Ring callback work from #530.

@ben-kaufman ben-kaufman force-pushed the codex/rebase-pr-527-contact-fixes-on-master branch from 325e4ca to 2d3784c Compare May 5, 2026 13:43
@ben-kaufman ben-kaufman marked this pull request as ready for review May 5, 2026 13:44
@ben-kaufman ben-kaufman requested a review from piotr-iohk May 5, 2026 13:45
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2d3784c9d8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Bitkit/Managers/PubkyProfileManager.swift Outdated
@claude

This comment has been minimized.

piotr-iohk
piotr-iohk previously approved these changes May 5, 2026
Copy link
Copy Markdown
Collaborator

@piotr-iohk piotr-iohk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, it was already tested and reviewed on #530

@ben-kaufman ben-kaufman force-pushed the codex/rebase-pr-527-contact-fixes-on-master branch from 2d3784c to bfa43de Compare May 5, 2026 14:10
Comment thread Bitkit/Views/Profile/PubkyChoiceView.swift Outdated
Comment thread changelog.d/next/537.added.md
@ovitrif ovitrif added this to the 2.3.0 milestone May 5, 2026
@ovitrif
Copy link
Copy Markdown
Collaborator

ovitrif commented May 5, 2026

Claude reviews are valid IMHO, mainly the one about changelog PR id.

Copy link
Copy Markdown
Collaborator

@ovitrif ovitrif left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, validated through new Import from Pubky.
Once claude review points are handled, I would approve 🚀

* feat: add Pubky Ring auth callbacks

* Update CHANGELOG with Pubky Ring auth callbacks

* fix: preserve pubky session after canceled auth

* fix: validate pubky auth callbacks

* fix: recover from malformed pubky callbacks
@ben-kaufman ben-kaufman force-pushed the codex/rebase-pr-527-contact-fixes-on-master branch from bfa43de to 122070f Compare May 5, 2026 14:37
@ovitrif ovitrif enabled auto-merge May 5, 2026 16:39
@ovitrif ovitrif disabled auto-merge May 5, 2026 16:39
@ovitrif ovitrif merged commit 30cbb3f into master May 5, 2026
16 checks passed
@ovitrif ovitrif deleted the codex/rebase-pr-527-contact-fixes-on-master branch May 5, 2026 16:39
@ovitrif
Copy link
Copy Markdown
Collaborator

ovitrif commented May 5, 2026

PS. force-merged (bypassing rule about signed commits, we need to resolve that for cloud AI work, not something for today though).

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.

3 participants