Skip to content

Feature: Input history autocomplete for modal form fields #694

Closed

Description

@jeremyeder

Summary

Frequently-used text inputs across modals (especially GitHub repo URLs) should offer autocomplete from previously-entered values. Currently, users must re-type the same URLs and values for every new session.

Motivation

Creating multiple sessions that reference the same repos means manually typing (or pasting) the same GitHub URLs repeatedly. This is tedious and error-prone.

Affected Modals & Fields

Modal Field(s) Priority
AddContextModal repo URL, branch High
CustomWorkflowDialog workflow URL, branch, path High
ManageRemoteDialog remote URL Medium
UploadFileModal file URL Medium
GitHubConnectModal username, email Low (rarely changes)

Proposed Approach

  • Store input history per field key in localStorage (scoped per user/project as appropriate)
  • Surface suggestions via a combobox or datalist dropdown on matching text inputs
  • Cap history size (e.g., 20 most recent entries per field)
  • Allow clearing history

Notes

  • There is an existing use-autocomplete.ts hook, but it is purpose-built for @mentions and /commands in the chat input — not general input history
  • A new reusable hook (e.g., useInputHistory) or a wrapper component would be the cleanest path

Activity

  1. added
    enhancement
    ambient-code:auto-fix
    on Feb 26, 2026
  2. github-actions commented on Feb 26, 2026

    @github-actions
    Contributor

    Amber Change Summary

    The following files were modified:

     .../components/modals/add-context-modal.tsx        |   9 +-
     .../components/modals/custom-workflow-dialog.tsx   |  13 ++-
     .../components/modals/upload-file-modal.tsx        |   9 +-
     .../frontend/src/components/input-with-history.tsx | 126 +++++++++++++++++++++
     components/frontend/src/hooks/use-input-history.ts |  25 ++++
     5 files changed, 177 insertions(+), 5 deletions(-)
    
    

    Next Steps:

    • Review that changes match the issue description
    • Verify no scope creep or unintended modifications
    • A PR will be created shortly for formal review

    🔍 View AI decision process (logs available for 90 days)

  3. github-actions commented on Feb 26, 2026

    @github-actions
    Contributor

    🤖 Amber has created a pull request to address this issue: #696

    The changes are ready for review. All automated checks will run on the PR.


    🔍 View AI decision process (logs available for 90 days)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ambient-code:auto-fixenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions