Control panel: recent-hosts dropdown on the Axol Host field - #324
Merged
Merged
Conversation
The setup dialog only remembered the last host. Clicking the host field now opens a dropdown of the last 5 hosts that connected successfully, newest first, using the same suggestion dropdown as the dataset field. - components/suggest-input.tsx: SuggestInput moved out of config-form so the setup dialog can reuse it; extra input attributes pass through. - lib/host-history.ts: MRU list in localStorage (axolHostHistory), deduped case-insensitively, capped at 5; recorded only on a successful connect. - setup-dialog / ControlPanel: wire the list into the host field. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit f1e60ba. Configure here.
SetupDialog closes on a window-level Escape listener, so pressing Escape with the recent-hosts list open dismissed the whole dialog. Stop the event when the list consumes it; a second Escape still closes the dialog. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
The setup dialog only remembered the last Axol host. Clicking the host field now opens a dropdown of the last 5 hosts that connected successfully (newest first), matching the dataset field's dropdown.
axolHostHistory; the existingaxolServerHostlast-host key is unchanged.Changes
components/suggest-input.tsx(new):SuggestInputextracted fromconfig-form.tsxso both fields share it. The dataset field is unchanged.lib/host-history.ts(new) +lib/host-history.test.ts.components/setup-dialog.tsx,routes/ControlPanel.tsx: wire the list into the host field.The VR app (
/vr) host field is not changed here.Test plan
npm test,npm run lint(no errors),npm run format:check,npm run buildlocalfilters it🤖 Generated with Claude Code
Note
Low Risk
Client-only UX and localStorage; connection logic is unchanged aside from recording hosts after successful connects.
Overview
The setup dialog’s Axol Host field now behaves like dataset repo fields: focusing it shows a filterable dropdown of the last five hosts that connected successfully (newest first), while free typing still works. History is stored in
localStorageasaxolHostHistory; only successful connects callrecordHost, with case-insensitive dedupe and re-promotion on reconnect. The existingaxolServerHostlast-host key is unchanged.SuggestInputandFieldSuggestionmove fromconfig-form.tsxinto sharedsuggest-input.tsx, with wrapperclassNameand passthrough input attributes (e.g. spellcheck) so the setup form can lay out the field in a flex row.ControlPanelloads history on mount, updates it afterfetchCommandssucceeds, and passeshostHistoryintoSetupDialog.Reviewed by Cursor Bugbot for commit f1e60ba. Configure here.