GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Scoop-fixes-opencode-windows-x64-garbled-output-issue-but-cause-unknown · Issue #10341 · anomalyco/opencode

Scoop-fixes-opencode-windows-x64-garbled-output-issue-but-cause-unknown #10341

New issue
Copy link
New issue
Copy link
Closed
Closed
Scoop-fixes-opencode-windows-x64-garbled-output-issue-but-cause-unknown#10341
Copy link
Assignees
rekram1-node
Labels
opentuiThis relates to changes in v1.0, now that opencode uses opentuiwindows

Description

@mizaibear
mizaibear
opened on Jan 24, 2026
Issue body actions

Question

System Environment

  • Windows 10 x64_22h2

Initial Problem Discovery

Direct Download from GitHub Release

https://github.com/anomalyco/opencode/releases/download/v1.1.34/opencode-windows-x64.zip

Image

Extracted to Installation Directory and Added to env.PATH

Example: "D:\SoftwareWorkspace\opencode_x64\opencode.exe"

Launched via opencode Command in Windows Terminal or by Double-clicking opencode.exe

Result: After launch, all input becomes uncontrolled and displays garbled text. Even mouse movements generate massive amounts of garbled output, making normal usage impossible.

Image

Installing opencode-windows-x64 via Scoop Resolves This Issue

scoop install opencode

After installation via Scoop, the application works correctly.

Image

Strange Phenomena Discovered While Investigating Why Scoop Fixes the Problem

According to Scoop's Bucket Metadata, It Uses the Same Download Link

// ~\scoop\buckets\main\bucket\opencode.json
{
    "version": "1.1.34",
    "description": "The open source AI coding agent.",
    "homepage": "https://opencode.ai/",
    "license": "MIT",
    "architecture": {
        "64bit": {
            "url": "https://github.com/anomalyco/opencode/releases/download/v1.1.34/opencode-windows-x64.zip",
            "hash": "2ecf5682187714057cd51c178ae29687672a2bd753a919d3d1d49591d23a1fec"
        }
    },
    "bin": "opencode.exe",
    "checkver": {
        "github": "https://github.com/anomalyco/opencode"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://github.com/anomalyco/opencode/releases/download/v$version/opencode-windows-x64.zip"
            }
        }
    }
}

So Why Does Scoop Installation Work While Browser Download + Extract Fails?

I located the Scoop-installed program path:

# scoop shims link
~\scoop\shims\opencode.exe
# link to real exe file
~\scoop\apps\opencode\1.1.34\opencode.exe

Test 1: Copy Scoop-Installed Program and Run Outside

When copied to the same location (e.g., C: drive root) and executed directly, the garbled output bug reappears.

cp "~\scoop\apps\opencode\1.1.34\opencode.exe" "C:\opencode.exe"
# execute outside of scoop
. "C:\opencode.exe"
Image

Test 2: Copy Originally Broken File to Scoop Directory

When I copy the original problematic file into any location within the Scoop directory, the problem disappears and no garbled output occurs.
BugFixed Only When ExeFile in Scoop Folder to Run:I wonder How?
Conclusion: This is not a file difference issue.

The Core Question: What Exactly Does Scoop Do?

Why does simply copying the file into the Scoop directory fix the problem?

I tested scoop shim add with the external exe file, but the garbled output issue persists. So it's not the shim mechanism—there must be something about copying the file into the Scoop directory that triggers the fix.

I want to understand what processing Scoop does during installation that resolves this wrapper issue.

Reacted by David Z. Guo and zhuzn

Activity

  1. github-actions
    assigned
    rekram1-node
    on Jan 24, 2026
  2. github-actions
    added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    windows
    on Jan 24, 2026
  3. github-actions commented on Jan 24, 2026

    @github-actions
    github-actionsBot
    on Jan 24, 2026 – with GitHub Actions
    Contributor
    More actions

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

    • Garbled characters appear after launching the program on Windows system. #9814: Garbled characters appear after launching the program on Windows system
    • In version 1.1.23, the issue of the mouse wheel triggering abnormal ASCII codes after exiting reappeared. #8908: Mouse wheel triggering abnormal ASCII codes after exiting (Scoop installation also resolves this)
    • TUI rendering with random characters like â and € windows 11 when UV formatter is enabled #9338: TUI rendering with random characters like â and € on Windows 11
    • Bug: Ctrl+C causes serialization issues in CLI TUI version #9183: Ctrl+C causes serialization issues in CLI TUI version
    • Opencode Windows Character Spamming #8715: Opencode Windows Character Spamming

    Feel free to ignore if none of these address your specific case.

  4. Luckybalabala
    added 6 commits that reference this issue on Jan 24, 2026

    docs(github): add remaining issue analyses and implementation guides

    391077f

    fix(opencode): handle cross-platform path separators in storage.list(…

    c0d5927

    fix(opencode): specify UTF-8 encoding for Buffer.toString() on Window…

    684dc05

    fix(opencode): specify UTF-8 encoding for Buffer.toString() on Window…

    0dec888

    docs(github): add remaining issue analyses and implementation guides

    ce1d378
  5. DoiiarX commented on Jan 27, 2026

    @DoiiarX
    DoiiarX
    on Jan 27, 2026
    More actions

    Image我无论如何都是可以的。我手动复制过去的

    Reacted by mizaibear
  6. mizaibear commented on Jan 27, 2026

    @mizaibear
    mizaibear
    on Jan 27, 2026
    Author
    More actions

    @DoiiarX ,
    感谢回复!

    UPDATE:我赶紧去试了一下,发现原本会花屏的那个情况确实消失了。我记起来这几天改过了Powershell的UTF-8编码,也就是说之前花屏是Windows默认编码造成的,改成UTF-8就没事了。

    Reacted by zhuzn
  7. mizaibear
    closed this as completedon Jan 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @rekram1-node
    rekram1-node

Labels

opentuiThis relates to changes in v1.0, now that opencode uses opentuiwindows

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.