Skip to content

[Linux/Fedora RPM] “Install and Restart” closes and relaunches OpenCode Desktop but does not upgrade the app #23538

Closed as not planned

Description

@MoeDeeActual

Description

OpenCode Desktop’s in-app updater does not actually install updates on my Fedora system.

When the app launches and an update is available, I get the bottom-right notification offering “Install and Restart” or “Not Yet.” If I click “Install and Restart,” the app closes and relaunches immediately, but the update is not applied. After relaunch, I see the same update notification again for the same target version.

Current example:

  • Installed version: 1.14.17
  • Update offered: 1.14.19

This is not a one-off version-specific issue. I have been seeing the same behavior repeatedly across multiple releases, likely since before 1.14.10. Updating manually by downloading the latest RPM from GitHub Releases and installing it with DNF works, so the issue appears to be specific to the in-app update flow rather than the package itself.

Environment:

  • OS: Fedora Workstation 43
  • Desktop: KDE Plasma
  • Session: Wayland
  • Package type: RPM
  • Install method: DNF install of the RPM package
  • OpenCode CLI is also installed

Additional notes:

  • No plugins are being used
  • No privilege escalation prompt appears during the update attempt
  • No error message or failure notification is shown
  • The only result is that the app restarts without updating, and the same upgrade notification reappears

Plugins

None

OpenCode version

Installed version: 1.14.17

Steps to reproduce

  1. Launch OpenCode Desktop on Fedora.
  2. Wait for the update notification to appear in the bottom-right corner.
  3. Click “Install and Restart.”
  4. The app closes and relaunches immediately.
  5. After relaunch, the same update notification appears again for the same target version.
  6. Verify that the installed version did not change.

Screenshot and/or share link

No response

Operating System

Fedora Workstation 43 (KDE)

Terminal

No response

Activity

  1. github-actions commented on Apr 20, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    These issues describe the same core problem: the in-app "Install and Restart" flow closes and relaunches the app without applying the update. Your issue is specific to Linux/Fedora RPM, which may or may not share the same root cause, but the symptoms are identical. It may be worth checking those threads for any workarounds or related findings.

  2. z-nexx commented on Apr 22, 2026

    @z-nexx

    Same here, on Fedora 44 with Gnome. I get nothing interesting in the terminal - OpenCode just exits and starts again with no relevant output. It is not a duplicate because it's Linux and not Windows, it doesn't work after like 5 tries, and no installation or similar seems to be initalized at all.

    Here is me starting OpenCode 1.14.19, pressing the "Install and restart" text, and then quitting after OpenCode has started the second time.

    z-nexx@fedora:~/Hämtningar$ OpenCode 
    Wayland session detected; using native Wayland first with X11 fallback (auto backend). Set OC_FORCE_X11=1 to force X11.
    2026-04-22T18:32:04.034451Z  INFO opencode_lib: Initializing app
    2026-04-22T18:32:04.047990Z  INFO opencode_lib: Spawning sidecar on http://127.0.0.1:37861
    2026-04-22T18:32:04.048026Z  INFO opencode_lib::cli: Spawning sidecar port=37861
    2026-04-22T18:32:04.148875Z  INFO opencode_lib::cli: Loaded shell environment with -il shell="/bin/bash" env_count=59
    2026-04-22T18:32:04.149395Z  INFO opencode_lib::cli: No CLI installation found, skipping sync
    2026-04-22T18:32:05.838574Z  INFO sidecar: opencode_lib::cli: opencode server listening on http://127.0.0.1:37861
    2026-04-22T18:32:05.895956Z  INFO opencode_lib::server: Server ready elapsed=1.746550769s
    2026-04-22T18:32:05.896190Z  INFO opencode_lib: Sidecar health check OK
    2026-04-22T18:32:05.896201Z  INFO opencode_lib: Loading task finished
    2026-04-22T18:32:05.896221Z  INFO opencode_lib: Loading done, completing initialisation
    2026-04-22T18:32:10.581669Z  INFO opencode_lib: Killed server
    2026-04-22T18:32:10.585197Z  INFO opencode_lib: Received Exit
    2026-04-22T18:32:10.585258Z  INFO opencode_lib: Server state missing
    z-nexx@fedora:~/Hämtningar$ Wayland session detected; using native Wayland first with X11 fallback (auto backend). Set OC_FORCE_X11=1 to force X11.
    2026-04-22T18:32:10.781211Z  INFO opencode_lib: Initializing app
    2026-04-22T18:32:10.795864Z  INFO opencode_lib: Spawning sidecar on http://127.0.0.1:35505
    2026-04-22T18:32:10.795901Z  INFO opencode_lib::cli: Spawning sidecar port=35505
    2026-04-22T18:32:10.871432Z  INFO opencode_lib::cli: Loaded shell environment with -il shell="/bin/bash" env_count=61
    2026-04-22T18:32:10.871999Z  INFO opencode_lib::cli: No CLI installation found, skipping sync
    2026-04-22T18:32:12.554902Z  INFO sidecar: opencode_lib::cli: opencode server listening on http://127.0.0.1:35505
    2026-04-22T18:32:12.616108Z  INFO opencode_lib::server: Server ready elapsed=1.744081835s
    2026-04-22T18:32:12.616369Z  INFO opencode_lib: Sidecar health check OK
    2026-04-22T18:32:12.616404Z  INFO opencode_lib: Loading task finished
    2026-04-22T18:32:12.616434Z  INFO opencode_lib: Loading done, completing initialisation
    2026-04-22T18:32:17.439197Z  INFO opencode_lib: Received Exit
    2026-04-22T18:32:17.439247Z  INFO opencode_lib: Killed server
    
  3. removed
    bugSomething isn't working
    on May 3, 2026
  4. SGL2586 commented on May 6, 2026

    @SGL2586

    lsb_release -a
    Distributor ID: Linuxmint
    Description: Linux Mint 22.3
    Release: 22.3
    Codename: zena
    Uname -a: 6.17.0-23-generic #23~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Apr 14 16:11:48 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

    Installed OpenCode Desktop using .deb package. Currently the software reports a version of 1.14.33 (OpenCode Desktop
    v1.14.33) in the settings, triggering a notification to update. Clicking 'Install and restart' from notifications, closes, reopens, but does not increment version seen on settings.

    Downloading .deb file and running dpkg -i shows its internally updating, but not incrementing properly.

    (Reading database ... 915934 files and directories currently installed.)
    Preparing to unpack opencode-desktop-linux-amd64.deb ...
    Unpacking opencode (1.14.39) over (1.14.39) ...
    Setting up opencode (1.14.39) ...
    Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
    Processing triggers for gnome-menus (3.36.0-1.1ubuntu3) ...
    Processing triggers for mate-menus (1.26.1+mint1) ...
    Processing triggers for desktop-file-utils (0.27-2build1) ...
    Processing triggers for hicolor-icon-theme (0.17-2) ...

  5. sbt987 commented on May 6, 2026

    @sbt987

    oh good it's not just me then #26045

    is there any way to verify that updating once internally updates it to v1.14.39 without downloading the deb and trying to overwrite?

  6. sbt987 commented on May 8, 2026

    @sbt987

    yeah I confirmed the same thing as @SGL2586 is happening to me when I try to install via the deb.

    Terminal output:
    Unpacking opencode (1.14.41) over (1.14.41) ...

    So OpenCode Desktop's internal detection of the installed version is faulty. It still shows v1.14.33 in the Settings popup.

    Closing #26045 as duplicate.

  7. cpu-16 commented on May 12, 2026

    @cpu-16

    I can reproduce a related Fedora/RPM update/version mismatch on Fedora with the latest desktop RPM.

    Manual install command used:

    sudo dnf install ./opencode-desktop-linux-x86_64.rpm

    DNF/RPM reports the package was upgraded successfully:

    opencode-1.14.48-1.x86_64
    

    But the installed CLI sidecar still reports an older version:

    /usr/bin/opencode-cli --version
    # 1.14.33

    The desktop launcher/alternative appears to point to the newly installed app correctly:

    readlink -f /usr/bin/@opencode-aidesktop
    /opt/OpenCode/@opencode-aidesktop
    
    update-alternatives --display @opencode-aidesktop
    @opencode-aidesktop - status is auto.
     link currently points to /opt/OpenCode/@opencode-aidesktop
    /opt/OpenCode/@opencode-aidesktop - priority 100
    Current `best' version is /opt/OpenCode/@opencode-aidesktop.
    

    The UI still shows OpenCode Desktop v1.14.33 and keeps showing an update notification for v1.14.48, even after manually installing the v1.14.48 RPM.

    So this may not only be the in-app updater failing. The v1.14.48 RPM seems to install as v1.14.48 at the package level, but still includes or uses an older opencode-cli/sidecar version (1.14.33), which may be what the UI is displaying/checking against.

    Install transaction also printed this scriptlet warning:

    /usr/bin/@opencode-aidesktop has not been configured as an alternative for @opencode-aidesktop
    

    Environment:

    • Fedora/RPM install via DNF
    • Package: opencode-1.14.48-1.x86_64
    • Desktop RPM asset: opencode-desktop-linux-x86_64.rpm
    • Installed CLI sidecar reports: 1.14.33
  8. catalyst1987 commented on May 13, 2026

    @catalyst1987

    I have the same problem on Zorin OS 18.1 x86_64. OpenCode says its on v1.14.25. The pop-up comes up saying an update is available for v1.14.49. Clicking on Install and restart closes opencode and restarts it but the same pop-up comes up again.

  9. pawel-wlodarski commented on May 26, 2026

    @pawel-wlodarski

    I resolved problem with chat, short solution below:

    OpenCode Desktop not updating on Linux (Ubuntu) – quick fix

    Problem

    • CLI shows new version (e.g. 1.15.x)
    • Desktop still uses old version (e.g. 1.14.x)
    • Update / reinstall .deb does nothing
    • Or error:
      Cannot connect to local server

    Root cause

    Broken .deb upgrade:

    • Old binaries are not removed
    • Desktop may still use /usr/bin/opencode-cli (old version)
    • New version is installed but not used

    ✅ Fix (recommended clean reinstall)

    # remove package
    sudo dpkg -P opencode
    
    # remove leftovers
    sudo rm -rf /opt/OpenCode
    sudo rm -f /usr/bin/OpenCode
    sudo rm -f /usr/bin/opencode-cli
    
    # reinstall (use latest .deb)
    sudo apt install ./opencode-desktop-linux-amd64.deb
  10. github-actions commented on Jul 26, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions