Skip to content

Duck.ai: Support for Migration#7732

Merged
malmstein merged 9 commits intodevelopfrom
feature/david/02-12-duck.ai_support_for_migration
Feb 13, 2026
Merged

Duck.ai: Support for Migration#7732
malmstein merged 9 commits intodevelopfrom
feature/david/02-12-duck.ai_support_for_migration

Conversation

@malmstein
Copy link
Contributor

@malmstein malmstein commented Feb 12, 2026

Task/Issue URL: https://app.asana.com/1/137249556945/task/1213119751827683

Description

This PR adds a killswitch for the Contextual mode, and ensures that Contextual can take third party cookies


Note

Medium Risk
Changes cookie/third-party-cookie behavior and contextual-mode gating, which can affect privacy expectations and session behavior if misconfigured or if cookie detection is incorrect.

Overview
Adds Duck.ai migration support by detecting a specific DuckDuckGo cookie (migration_status_dev_01=...) and exposing it via DuckChat.isStandaloneMigrationCompleted().

Contextual mode enablement is updated to be gated by a new remote contextualModeKillSwitch and can now be enabled either via the existing contextualMode toggle or by successful standalone migration; both DuckChat WebViews now explicitly enable first- and third-party cookies.

Third-party cookie handling is broadened to always allow cookies for duck.ai and duckduckgo.com, and the auth-cookie exception-list DB delete API is fixed to take a List<String> (with updated tests).

Written by Cursor Bugbot for commit 6b2a2bb. This will update automatically on new commits. Configure here.

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@malmstein malmstein force-pushed the feature/david/02-12-duck.ai_support_for_migration branch from 8dd8822 to 9c8734c Compare February 13, 2026 14:54
@malmstein malmstein marked this pull request as ready for review February 13, 2026 14:58
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

val url = appendParameters(parameters, duckChatLink)
appCoroutineScope.launch(dispatchers.io()) {
isStandaloneMigrationCompleted()
}
Copy link
Contributor

Choose a reason for hiding this comment

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

What does this do? It doesn’t use the returned value

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this should be removed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, cleaning that up

Copy link
Contributor

@joshliebe joshliebe left a comment

Choose a reason for hiding this comment

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

LGTM, just unsure what this is supposed to do: #7732 (comment)

@malmstein malmstein merged commit 34fca2c into develop Feb 13, 2026
10 checks passed
@malmstein malmstein deleted the feature/david/02-12-duck.ai_support_for_migration branch February 13, 2026 19:57
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