Skip to content

Update process does not persist previously selected option #273

@rozsazoltan

Description

@rozsazoltan

During updates, the Bin re-lists available options for packages (e.g., yt-dlp), even when the user intends to select the same option as before.

This behavior occurs both during regular updates and when installing from ZIP archives (e.g., opencode CLI). Fixing the persistence of user selections should resolve this issue for both update methods. Related: #264

Image
bin install https://github.com/yt-dlp/yt-dlp

Multiple matches found, please select one:

 [1] yt-dlp.exe
 [2] yt-dlp_arm64.exe
 [3] yt-dlp_x86.exe
 Select an option: 1
bin install https://github.com/anomalyco/opencode -a

Multiple matches found, please select one:

 [1] latest.json
 [...]
 [18] opencode-desktop-windows-x64.exe        # Without -a flag, it finds an executable, but only the desktop version
 [19] opencode-desktop-windows-x64.exe.sig
 [...]
 [26] opencode-windows-x64-baseline.zip       # With -a flag, it lists everything, so the CLI zip installer appears as well
 [27] opencode-windows-x64.zip

 Select an option: 27
bin update

Do you want to continue? [Y/n] y
  • Getting 2026.03.03 release for yt-dlp/yt-dlp

Multiple matches found, please select one:

 [1] yt-dlp.exe
 [2] yt-dlp_arm64.exe
 [3] yt-dlp_x86.exe
 Select an option: 1
  • Starting download of https://api.github.com/repos/yt-dlp/yt-dlp/releases/assets/366187607
17.56 MiB / 17.56 MiB [---------------------------------------------------------------------] 100.00% 167.58 MiB p/s 1s
  • Copying for yt-dlp.exe@2026.03.03 into d:\program\bin\yt-dlp.exe
  • Done updating d:\program\bin\yt-dlp.exe to 2026.03.03
  • Getting v1.2.17 release for anomalyco/opencode

Multiple matches found, please select one:

 [1] opencode-desktop-windows-x64.exe
 [2] opencode-desktop-windows-x64.exe.sig
 Select an option:

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