Skip to content

Search in custom list returned by arg does not work #1606

Description

@engineforce

Problem

I used arg to list all my SQS queues, which works, but when I search for specific queues by a partial name, it only returns one of the many expected results.


const selectedQueue = await arg({
  description: 'Select an SQS queue',
  choices: async () => {
    setLoading(true)
    setHint('Loading SQS queues...')

    const sqs = new SQSClient({})
    const allQueueUrls: string[] = await getAllQueues()

    const queueInfos = allQueueUrls.map((queueUrl) => {
      return {
        name: queueUrl.split('/').pop(),
        value: queueUrl,
      }
    })

    setLoading(false)
    setHint('Done')

    return queueInfos
  },
})

E.g., I have three queues that start with smart-shift-job

Image

But when I search for job, it only shows one queue.

Image

OS Version

macOS: 15.7.2 (24G325)

Script Kit Version

[2026-01-12 09:21:29.585] [info]  Update check result {
  isUpdateAvailable: false,
  versionInfo: {
    tag: 'v3.45.1',
    version: '3.45.1',
    files: [
      {
        url: 'Script-Kit-macOS-3.45.1-x64.zip',
        sha512: 'JlXcNdIh8f1B/kJ062ZtrcHYW/TLQTt7Q3FCp8om57YrOSiT29vwYSNSflDHNthpGRx3wxEbz4hykVqZPZBniQ==',
        size: 216073149
      },
      {
        url: 'Script-Kit-macOS-3.45.1-x64.dmg',
        sha512: '4LchKqEzAhE+OlZjeEmfTHLI6kPg8YmyMP95a0lC9wueh7lHJ58uuhi5ClsHdf2xFKoptw4/4x1Ex9c1xVPu0g==',
        size: 216967281
      },
      {
        url: 'Script-Kit-macOS-3.45.1-arm64.zip',
        sha512: '/VkEetRvz93x/zPCddRZXkrFAb+LlW5JaEJ4wUC2pOlrY8nZ/1yIJjxcfx9YzJOEciZEwdlBIZfmAObYIUVfiw==',
        size: 210001000
      },
      {
        url: 'Script-Kit-macOS-3.45.1-arm64.dmg',
        sha512: '4rlEiwCDZAX1zJfg1a3drba2RSMBcnv9UdUyC8VVHe3LfKuOy8919YZnuSrtfDLyHlEMD5I9Zxe+9gYCXPhfQw==',
        size: 211111392
      }
    ],
    path: 'Script-Kit-macOS-3.45.1-x64.zip',
    sha512: 'JlXcNdIh8f1B/kJ062ZtrcHYW/TLQTt7Q3FCp8om57YrOSiT29vwYSNSflDHNthpGRx3wxEbz4hykVqZPZBniQ==',
    releaseDate: '2025-06-18T16:18:43.992Z',
    releaseName: 'v3.63.0: fix(keycodes): allow custom shortcuts with additional modifiers',
    releaseNotes: '<p>Reserved editor shortcuts now only block exact mod+key combinations.<br>\n' +
      'Shortcuts like cmd+shift+c or cmd+alt+v are allowed as custom shortcuts,<br>\n' +
      'while cmd+c (copy) remains reserved for clipboard operations.</p>'
  }
}

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions