Repository navigation
feat(browser): add clear history and entry removal to address bar and toolbar menu - #19419
eojonathan wants to merge 1 commit into
Conversation
|
Important Review skippedWe couldn't safely recover the incremental review. No full review was started, and the last reviewed checkpoint was preserved. Retry later, or explicitly request a full review by commenting You can disable this status message by setting the Use the checkbox below for a quick retry:
Walkthrough
Merge Risk:
|
| Check name | Status | Explanation | Resolution |
|---|---|---|---|
| Description check | The description explains the user-facing changes, implementation, rationale, testing, and AI usage. However, the required linked issue is blank, and the required visual proof does not include a clear … | Add the issue number after Fixes #. Attach a clear after screenshot or video alongside the before proof. List the platforms tested, such as macOS, Linux, Windows, or SSH, or state why each platform is not applicable. |
|
| Docstring Coverage | Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 8 functions across 9 files. (1 skipped: 1 … | Write docstrings for the functions missing them to satisfy the coverage threshold. |
✅ Passed checks (3 passed)
-
Check name Status Explanation Title check ✅ Passed The title clearly and concisely describes the main change: adding browser history clearing and individual entry removal to the address bar and toolbar menu. Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request. Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check
-
Explanation
The description explains the user-facing changes, implementation, rationale, testing, and AI usage. However, the required linked issue is blank, and the required visual proof does not include a clear after attachment. The testing section also does not identify the platforms tested.
Full details: Docstring Coverage
-
Explanation
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 8 functions across 9 files. (1 skipped: 1 unsupported.)
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
There was a problem hiding this comment.
ℹ️ No critical issues — one minor UX nit inline.
Reviewed changes
- Store action
removeBrowserHistoryEntry— removes a URL (exact or normalized) frombrowserUrlHistoryand a document path fromworkspaceDocHistory, with a focused unit-test suite. - Address bar suggestions — per-row remove button plus a "Clear history" footer, and
Shift+Delete/Shift+Backspaceremoval of the highlighted history row. - Toolbar menu — adds a "Clear History" item with a success toast.
- Refactor — extracts
useBrowserAddressBarExpansionanduseBrowserAddressBarEditSessionSynchooks out ofBrowserAddressBar(faithful, no behavior change) to stay undermax-lines. - Localization — new intent-named message IDs, matching the current message-ID policy.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
Actionable comments posted: 2
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Team
Run ID: 60e48b7d-99e8-4ce0-bd00-2e3c6729f236
📥 Commits
Reviewing files that changed from the base of the PR and between cbc7bb4 and a3794d057d0e6e88a0cf4322992d76c20d83cb12.
📒 Files selected for processing (10)
src/renderer/src/components/browser-pane/assemble-chrome/BrowserAddressBar.test.tsxsrc/renderer/src/components/browser-pane/assemble-chrome/BrowserAddressBar.tsxsrc/renderer/src/components/browser-pane/assemble-chrome/BrowserAddressBarSuggestionList.tsxsrc/renderer/src/components/browser-pane/assemble-chrome/browser-address-bar-expansion.tssrc/renderer/src/components/browser-pane/assemble-chrome/browser-toolbar-menu-dropdown.tsxsrc/renderer/src/components/browser-pane/assemble-chrome/use-browser-address-bar-edit-session-sync.tssrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/store/slices/browser/browser-history-actions.test.tssrc/renderer/src/store/slices/browser/browser-history-actions.tssrc/renderer/src/store/slices/browser/browser-slice-contract.ts
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Fixed the clear-history ordering —
handleClearHistorynow callsrestoreTypedQuery()beforeclearBrowserHistory(), so clearing history while previewing a suggestion correctly reverts the input to the typed query instead of leaving the previewed URL behind. The now-redundantclearSuggestionPreview()call is removed. - Destructive menu styling — the toolbar dropdown "Clear History" item is marked
variant="destructive", whichDropdownMenuItemalready supports.
Both changes since the prior review are correct, and the previously reported UX nit is fully addressed.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
7810015 to
e58d24b
Compare
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to GitHub limitations.
🟡 Minor · Preserve the worktree in document-history removal. · browser-history-actions.ts:116-126
src/renderer/src/store/slices/browser/browser-history-actions.ts:116-126
🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick winPreserve the worktree in document-history removal. Workspace-document suggestions use
filePathasurl, andBrowserAddressBarSuggestionListforwards only that value.removeBrowserHistoryEntrythen removes every history entry with that path, although document identity includes bothworktreeIdandfilePath. Extend the suggestion callback andBrowserSlice.removeBrowserHistoryEntrycontract to carryBrowserPageDocLocationfor document rows, including Shift+Delete, and filter those rows withbrowserPageDocLocationsEqual. Keep string matching for URL suggestions.
🟡 Minor · Restore the address bar before clearing history. · browser-toolbar-menu-dropdown.tsx:227-237
src/renderer/src/components/browser-pane/assemble-chrome/browser-toolbar-menu-dropdown.tsx:227-237
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick winRestore the address bar before clearing history. Clicking the toolbar trigger blurs the input, but
BrowserAddressBardelaysrestoreTypedQuery()for 200 ms.DropdownMenuItem.onSelectalso handles keyboard selection, so the toolbar can clear history before that timer runs. The controlled input can then display the removed preview URL temporarily. Pass the existing dismissal callback to the toolbar menu, or use a shared clear-history handler, and invoke it beforeclearBrowserHistory().
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 586ae4db-2483-41a1-8f58-93c865a512cf
📥 Commits
Reviewing files that changed from the base of the PR and between 78100153effb990226dc8c1e204f617d58d282a4 and e58d24bb522265e3e4c0adc6c9689fe2dd125224.
📒 Files selected for processing (2)
src/renderer/src/i18n/locales/en.jsonsrc/renderer/src/store/slices/browser/browser-slice-contract.ts
🚧 Files skipped from review as they are similar to previous changes (1)
- src/renderer/src/i18n/locales/en.json
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.
e58d24b to
1eae0ab
Compare
1eae0ab to
cc8bfc7
Compare
eec9e9d to
340b37c
Compare
b142dcf to
631fc41
Compare
631fc41 to
0b73689
Compare

ELI5
Adds the ability to delete individual entries from the browser address bar dropdown (via hover 'X' button or
Shift+Delete/Shift+Backspacekeyboard shortcut) and to clear the entire browsing history from both the address bar dropdown and the browser toolbar menu.What Changed
browser-slice-contract.ts,browser-history-actions.ts):removeBrowserHistoryEntry(urlOrPath: string)action to remove an entry from bothbrowserUrlHistory(by matching exact URL or normalized URL) andworkspaceDocHistory(by matching document file path).clearBrowserHistory()now cleanly resets both history collections.browser-history-actions.test.tscovering entry removal for URLs and documents, and full history clearing.BrowserAddressBarSuggestionList.tsx,BrowserAddressBar.tsx):X) on suggestion items with hover/selection styling, stopping pointer/click event propagation to prevent triggering navigation.Trash2icon and separator.Shift+DeleteorShift+Backspaceremoves the currently highlighted history suggestion and retains input focus.browser-address-bar-expansion.ts,use-browser-address-bar-edit-session-sync.ts) maintaining strict adherence tomax-lineslimits.browser-toolbar-menu-dropdown.tsx):Trash2icon and success feedback toast.clearHistory,clearHistorySuccess,removeSuggestion, andhistoryinsrc/renderer/src/i18n/locales/en.json.Why
Users previously had no way to remove stale, mistyped, or sensitive URLs and local files from the address bar suggestion history, nor any way to clear browsing history from the UI. This brings standard browser ergonomics to the embedded browser pane.
Linked Issue
Fixes #
Visual Proof
Before
Address bar autocomplete popup shows history entries without any option to remove individual entries or clear history:

After
Shift+Delete/Shift+Backspaceshortcut on selected history items.Testing
src/renderer/src/store/slices/browser/browser-history-actions.test.ts(3 tests passed)src/renderer/src/components/browser-pane/assemble-chrome/BrowserAddressBar.test.tsx(tests for Shift+Delete, click remove, clear history)check-changed-code-quality.mjs: 0 findings across code quality, type-aware code quality, and React Doctor.oxlint: 0 warnings, 0 errors.verify-localization-catalog.mjs: 14,369 keys verified.generate-runtime-required-english-catalog.mjs: verified.AI Disclosure
Assisted by Antigravity (Advanced Agentic Coding).
Review
Ready for review.
Agent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdand copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)