Commit 172be5e
Force Duck.ai state in the contextual input widget
The contextual widget shares the per-tab input-state store with the main
omnibar widget. For search-only users the omnibar publishes a
browser/search state that leaked into the contextual sheet, flipping the
tab off "chat" (hiding the tools row) and surfacing the search-only
start-chat shortcut.
applyState now forces DUCK_AI_CONTEXTUAL / DUCK_AI for the contextual
widget so it always renders as a Duck.ai composer, and the StartChat
plugin (a search-only address-bar shortcut that reads the shared state)
is no longer added in the contextual widget.
Also drops the obsolete setModelPickerEnabled assertion from the manager
test, since the picker is now driven through the bound modelPickerEnabled
flow after the develop merge.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent c3cfa14 commit 172be5e
2 files changed
Lines changed: 20 additions & 3 deletions
File tree
- duckchat/duckchat-impl/src
- main/java/com/duckduckgo/duckchat/impl/ui/nativeinput/views
- test/kotlin/com/duckduckgo/duckchat/impl/contextual
Lines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
368 | 372 | | |
369 | 373 | | |
370 | 374 | | |
| |||
690 | 694 | | |
691 | 695 | | |
692 | 696 | | |
693 | | - | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
694 | 710 | | |
695 | 711 | | |
696 | 712 | | |
| |||
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| 181 | + | |
| 182 | + | |
181 | 183 | | |
182 | | - | |
183 | 184 | | |
184 | 185 | | |
185 | 186 | | |
| |||
0 commit comments