Skip to content

Restore agent launch submit icons and clear stale hover highlighting - #37675

Merged
nwparker merged 1 commit into
mainfrom
nwparker/agent-menu-icon-highlight
Nov 3, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/agent-menu-icon-highlight

Conversation

@nwparker

@nwparker nwparker commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​20 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​20
Prod 3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​15 $\color{#cf222e}{\Huge{\mathbf{−}}}$​3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​12

ELI5

Restore the original submit-arrow icon in agent launch buttons and make the main agent list show one active highlight when switching from mouse to keyboard.

What Changed

  • Render the existing CornerDownLeft icon instead of spelling out Enter in both launch shortcut hints. Preserve platform-specific Cmd/Ctrl modifiers, accessible shortcut metadata, and equal button widths. Extend ShortcutKeyCombo with an optional key renderer so these hints retain the shared shortcut layout.
  • Remove the independent CSS hover fill from agent submenu rows. Radix pointer focus, keyboard focus, and open-submenu state now own the row highlight. Hovering Codex then pressing Down highlights Claude without leaving Codex filled; moving the pointer away preserves keyboard navigation.

Why

Follow-up to #37576. The text shortcut was visually heavier than the original submit icon, and independent CSS hover and keyboard focus could make two agents appear selected.

Visual Proof

Hidden Electron renderer via Playwright CDP, viewport 1728×1080, workspace nwparker/agent-menu-icon-highlight. Identical 300×150 crops after hovering Codex and pressing Arrow Down while the pointer remains parked over Codex:

Before: Codex hover and Claude keyboard selection both filled After: only Claude filled
Before: two row highlights After: one active row

Restored submit icons, with equal-sized launch buttons (125.21875 × 24 px), in dark and light mode:

Submit icons in dark mode

Submit icons in light mode

Testing

  • 79 scoped tests across five files: agent menu navigation, launch shortcuts on Mac/Windows/Linux, pointer highlight, and submenu handoff.
  • Hidden Electron: computed row backgrounds confirm Codex becomes transparent as Arrow Down selects Claude, even with the pointer still over Codex; moving the pointer off and pressing Down continues to the next agent.
  • Hidden Electron: both buttons render the original submit icon, keep equal dimensions, and retain Enter / Meta+Enter accessible metadata. Checked dark/light rendering.
  • Standalone localization extraction passed: 18,515 keys, no inline defaults differ from the English catalog.
  • Commit hooks passed lint, AST checks, and formatting.
  • pnpm check:changed --maxWorkers=2 --timeout=2: 22 checks passed, including Node/web typechecks, changed-code quality, and localization coverage/catalogs. Broad related tests and localization extraction exceeded their two-minute limits. Full related test selection/build remains for CI.

Native UI validation is on macOS; platform modifier behavior is covered by tests. Live SSH and native Windows/Linux were not exercised. Host launch paths, folder workspace handling, and mobile behavior are unchanged.

Risk

Level: Low. The highlight change is limited to the agent launch-row variant; existing submenu open and focus styling remains. The optional shortcut renderer preserves existing callers. A plain revert restores the prior appearance; no persistence changes.

Review

  • Self-reviewed accessibility, correctness, and performance; no new subscriptions, timers, or listeners.
  • Cross-platform modifier hints, equal sizing, folder workspaces, remote hosts, and mobile impact considered.
  • No upstream skill-installer content copied or translated.

@coderabbitai

coderabbitai Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Walkthrough

ShortcutKeyCombo now accepts an optional callback to render shortcut keys. AgentLaunchSetupFooter uses a CornerDownLeft icon for Enter. The launch-row submenu trigger no longer applies accent styling on hover. Tests cover the shortcut display and keyboard focus movement between agent rows, including that navigation does not launch an agent.

Merge Risk: Low · up to 72a0a

The behavior is corrected, but the new test leaves a narrow regression-detection gap for the launch menu’s visual highlight state.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly describes both primary changes: restoring agent launch submit icons and removing stale hover highlighting.
Description check Passed The description is mostly complete. It includes the user impact, implementation details, rationale, linked issue reference, visual proof, testing results, platform coverage, risk, rollback guidance, a…
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 is mostly complete. It includes the user impact, implementation details, rationale, linked issue reference, visual proof, testing results, platform coverage, risk, rollback guidance, and review notes.

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 with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 1 functions across 5 files.

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Finishing Touches
Generate docstrings
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nitpick comments: 1
src/renderer/src/components/agent/AgentLaunchPickerMenu.keyboard.test.tsx: 1

94-107: Trivial · Functional Correctness · Quick win

Assert that keyboard navigation removes the row hover style.

The pointer remains over Codex when ArrowDown focuses Claude. The current assertions only check focus and data-highlighted. Re-adding hover:bg-accent to the launch-row trigger would reproduce the stale visual highlight without failing this test.

Suggested fix
   await user.keyboard('{ArrowDown}')
   await waitFor(() => expect(document.activeElement).toBe(claude))
+  expect(codex.className).not.toContain('hover:bg-accent')
   expect(codex.hasAttribute('data-highlighted')).toBe(false)
Review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 82d68466-7313-4551-8528-9194ff236a29
Commits

Reviewing files that changed from the base of the PR and between bff4e36 and 72a0a8f.

Files selected for processing: 5
  • src/renderer/src/components/ShortcutKeyCombo.tsx
  • src/renderer/src/components/agent/AgentLaunchPickerMenu.keyboard.test.tsx
  • src/renderer/src/components/agent/AgentLaunchSetupFooter.tsx
  • src/renderer/src/components/agent/AgentLaunchSetupPanel.shortcuts.test.tsx
  • src/renderer/src/components/ui/dropdown-menu.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.

@nwparker
nwparker merged commit 24832db into main Nov 3, 2026
41 checks passed

@MetrixAiforAll MetrixAiforAll left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Choose the domain and access settings

A domain is the address visitors use to reach your deployment. Review the generated .replit.app domain and change its available name if needed. Then choose an access level, which determines who is allowed to open the app:
Public makes the app available to anyone with the link.
Password protected requires visitors to enter a shared password.
Workspace only limits access to members of your workspace.
Invite only limits access to the people or groups you select.
For details on each option, see App access.
Choose the access level in the Sharing section of the Publishing pane.
Publishing is available on every plan. Starter includes 1published app, which expires after 30 days and can be republished. Core and Pro include additional publishing options. See Deployment pricing and Starter plan for current limits.
3
Review security and publish

Under Suggested add-ons, select Run scan beside Deep security scan if you want to review security before publishing. Review Block publishing of critical vulnerabilities and the optional monitoring, analytics, and feedback-widget settings.
Publishing settings with the Sharing selector and Suggested add-ons for security scans, active monitoring, analytics, and the feedback widget
When the domain, access, and security settings are ready, select Publish in the Publishing pane.
Replit provisions the deployment, runs security checks, builds and bundles the app, and promotes the release. Provisioning prepares its cloud resources; building and bundling turn the project into a production-ready package; promoting makes that package the live version. Keep the project open while the stages complete.
The Gather project showing publishing in progress after the release was started
4
Open and verify the live app

When publishing finishes, Replit shows the deployment status and public URL. Open the URL and test the live app — not only the development preview — to confirm that its pages and most important actions work as expected.
The Gather project after publishing, showing the successful production status and live URL
The published Gather workshop-discovery app open at its public replit.app URL
​
Understand the published project

After publishing, the project has two related parts: the editable project where you continue building and the production deployment currently serving visitors. Open Tools to inspect and manage that production environment.
The Publishing pane is the deployment overview. It shows whether the latest release succeeded, who can access it, where it runs, how it is hosted, which resources it can use, and which domains point to it.
The deployment type describes how Replit runs the app. Autoscale starts more machines as traffic changes. Reserved VM keeps a machine continuously available. Static serves files that need no running backend, while Scheduled runs a program on a timetable. See Deployment types to compare them.
Machine power is the CPU and memory available to each instance. The maximum machine count limits how far Autoscale can expand. See Machine configuration. More resources can improve capacity and increase usage costs.
Deployment geography controls the region where the app runs. A region closer to most visitors can reduce latency. See Project geography.
Depending on your app and plan, Adjust settings or Manage exposes these controls along with production secrets and related deployment options.
These are optional production controls. You do not need to change them to share a typical app, and some changes can affect availability or usage costs.
The Gather Autoscale machine configuration showing machine power, CPU and RAM, the maximum number of machines, and estimated compute usage
​
Monitor the release

Monitoring answers a production question: Is the app healthy and responding well? Open Monitoring under Replit Cloud in the Tools pane. It shows requests, HTTP statuses, response durations, CPU utilization, and memory utilization. Status codes reveal failed requests, while durations reveal slow responses. CPU and memory charts help identify resource limits. New releases may show little data until the live app receives traffic. For the full tour, see Monitoring your app.
The Gather Monitoring pane showing application request metrics and infrastructure CPU and memory charts
​
Review traffic and growth

Growth answers a different question: Are people finding and using the app? Open Growth under Replit Cloud in the Tools pane. Basic metrics include visitors, top pages, referrers, countries, browsers, and devices. These show where an audience comes from and what attracts attention. The SEO rating measures how well published pages are prepared for search engines. Builders on a paid plan can use SEO Agent to scan for improvements. Analytics populate after the published app receives traffic.
The Gather Growth pane showing SEO status and basic visitor analytics for the published app
​
Update your published app

Changes in the Project Editor do not automatically replace the live release. This separation lets you prepare and test a change without disrupting visitors. Test your changes in Preview, then select Republish when you are ready. Republishing creates a new production release at the same URL, so you do not need to send visitors a new link.
After republishing, open the public URL again and verify the changed behavior. If a release fails, use the publishing status and logs to identify the failing stage before trying again.
​
Next steps

Add a custom domain
Use your own domain instead of .replit.app.
Continue →
Deployment types
Compare Autoscale, Reserved VM, Static, and Scheduled deployments.
Compare deployments →
Troubleshoot publishing
Find common publishing problems and how to fix them.
Troubleshoot →
Was this page helpful?

Yes

No
Build with Free Mode
Previous
Prototype a product idea
Next

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.

2 participants