Skip to content

fix openlink#2045

Merged
Tlaster merged 3 commits intomasterfrom
bugfix/open-link
Apr 23, 2026
Merged

fix openlink#2045
Tlaster merged 3 commits intomasterfrom
bugfix/open-link

Conversation

@Tlaster
Copy link
Copy Markdown
Contributor

@Tlaster Tlaster commented Apr 23, 2026

No description provided.

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: 3baaa9d6ac

ℹ️ 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".

host = "OpenLinkDirectly"
parameters.append("url", url)
}.toString(),
originalUrl = url,
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Encode picker fallback URL as OpenLinkDirectly route

Setting DeepLinkAccountPicker.originalUrl to the raw HTTP URL makes the desktop picker’s browser action (desktopApp/src/main/kotlin/dev/dimension/flare/ui/screen/home/DeepLinkAccountPicker.kt, openUri(originalUrl)) feed that URL back into DeepLinkPresenter, which re-matches accounts and routes to the picker again instead of calling onLink. In practice, clicking “Open in browser” on desktop loops back to account selection and never reaches the system browser. This value needs to stay an OpenLinkDirectly(...).toUri() deeplink (or the desktop action must wrap it) so the presenter takes the DeeplinkRoute.OpenLinkDirectly path.

Useful? React with 👍 / 👎.

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: 4c009db320

ℹ️ 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".

if (inAppBrowser) {
val builder = CustomTabsIntent.Builder()
val customTabsIntent = builder.build()
customTabsIntent.launchUrl(context, url.toUri())
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Catch Custom Tabs launch failures before opening links

openInBrowser now calls CustomTabsIntent.launchUrl without any error handling, so devices/environments without a Custom Tabs-capable activity (or with browser intents blocked) will throw and crash instead of falling back to fallbackOpenUrl. The previous implementation guarded this path and degraded gracefully, so this change introduces a crash regression for those users whenever they tap an HTTP(S) link with in-app browser enabled.

Useful? React with 👍 / 👎.

@Tlaster Tlaster merged commit 7795203 into master Apr 23, 2026
8 checks passed
@Tlaster Tlaster deleted the bugfix/open-link branch April 23, 2026 13:06
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