Skip to content

Enable click selection for ShellV2 autocomplete#1935

Merged
KCarretto merged 2 commits intomainfrom
shellv2-autocomplete-click-14235572639723233517
Feb 27, 2026
Merged

Enable click selection for ShellV2 autocomplete#1935
KCarretto merged 2 commits intomainfrom
shellv2-autocomplete-click-14235572639723233517

Conversation

@KCarretto
Copy link
Collaborator

Implemented click-to-select functionality for the shellv2 autocomplete menu. This involved refactoring the useShellTerminal hook to expose the completion application logic and updating the UI components to handle mouse events.


PR created automatically by Jules for task 14235572639723233517 started by @KCarretto

- Refactor `useShellTerminal` hook to extract `applyCompletion` and other helpers using `useCallback`.
- Expose `handleCompletionSelect` (aliased `applyCompletion`) from `useShellTerminal`.
- Update `ShellCompletions` component to accept an `onCompletionSelect` prop and trigger it on `onMouseDown` (with `preventDefault` to maintain focus).
- Wire up `handleCompletionSelect` through `ShellTerminal` to `ShellCompletions` in `ShellV2`.

This allows users to click on an autocomplete suggestion in the terminal UI to insert it into the input buffer.

Co-authored-by: KCarretto <16250309+KCarretto@users.noreply.github.com>
@google-labs-jules
Copy link
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@KCarretto KCarretto marked this pull request as ready for review February 27, 2026 02:52
@KCarretto KCarretto enabled auto-merge February 27, 2026 02:53
@KCarretto KCarretto disabled auto-merge February 27, 2026 02:53
@KCarretto KCarretto merged commit e414b9c into main Feb 27, 2026
5 of 8 checks passed
@KCarretto KCarretto deleted the shellv2-autocomplete-click-14235572639723233517 branch February 27, 2026 02:53
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.

1 participant