Commit e1fb700
authored
Restore RemoteSearchMenuUI for Electron overlay search menu (#2134)
## Summary
Restore `RemoteSearchMenuUI` usage in Electron so the completion menu
renders in a separate `WebContentsView` that can overlay beyond the chat
view bounds.
When PR #1933 added inline ghost text completions, it replaced the
`RemoteSearchMenuUI`/`LocalSearchMenuUI` branching with
`InlineSearchMenuUI`/`LocalSearchMenuUI`, leaving `RemoteSearchMenuUI`
as dead code. The remote search menu infrastructure (IPC handlers,
`electronSearchMenuUI.ts`, `searchMenuView.ts`, preload bindings) was
never removed and remains fully intact.
## Changes
- **`packages/shell/src/renderer/src/search.ts`**: When not in inline
mode, use `RemoteSearchMenuUI` in Electron (via `isElectron()` check)
and fall back to `LocalSearchMenuUI` in non-Electron environments. This
matches the original behavior before #1933.1 parent fcc1c4b commit e1fb700
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
| |||
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
32 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
| |||
0 commit comments