Skip to content

[Bug]: "This version of Antigravity is no longer supported. Please update to receive the latest features!"Permanent Antigravity Version Block on Windows despite Successful Clean Install & Native Build #1276

@NoelClay

Description

@NoelClay

Prerequisites

  • I will write this issue in English (see our Language Policy)
  • I have searched existing issues to avoid duplicates
  • I am using the latest version of oh-my-opencode
  • I have read the documentation

Bug Description

Description

I have performed a 100% clean installation and a manual native build on Windows 10/11 (PowerShell 7.5.4). Every step of the installation, compilation, and authentication process completes without a single error message. However, the Antigravity provider remains non-functional, returning the "version no longer supported" error.

This version of Antigravity is no longer supported. Please update to receive the latest features!

Steps to Reproduce

Evidence of Successful Setup (Step-by-Step)

1. Complete Environment Wipe

I used Remove-Item to delete all legacy data in:

  • %USERPROFILE%\.config\opencode
  • %USERPROFILE%\.cache\opencode
  • Verified that opencode and oh-my-opencode were not recognized as commands before proceeding.

2. Clean Global Installation

Ran bun install -g opencode-ai.

3. Native Windows Binary Compilation

Ran a custom install_omoc.cmd to fix Windows-specific crashes and bypass pre-compiled binary issues.

  • Log Evidence:
    • [INFO] Cloning repository... [OK]
    • [INFO] Compiling Windows binary... [OK]
    • [INFO] Patching node_modules binary... [OK]
    • [INFO] Deploying to OpenCode configuration... [OK]
    • [SUCCESS] Installation complete! [OK]

4. Successful Authentication (No Errors)

Ran opencode auth login and selected OAuth with Google (Antigravity).

  • Log Evidence:
    • Login successful [OK]
    • Token and account setup completed without any timeout or handshake errors.

5. Configuration Verification

The opencode.json is correctly configured with latest tags:

{
  "plugin": [
    "oh-my-opencode@latest",
    "opencode-antigravity-auth@latest"
  ]
}

6. adjust "opencode-antigravity-auth@latest"

bun add -g opencode-antigravity-auth@latest
bun add v1.3.7 (ba426210)

installed [email protected]

19 packages installed [2.09s]

Expected Behavior

.

Actual Behavior

this is my powershell ALL output

PowerShell 7.5.4
PS C:\Users\gram17kny> opencode -v
opencode: The term 'opencode' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
PS C:\Users\gram17kny> oh-my-opencode -v
oh-my-opencode: The term 'oh-my-opencode' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
PS C:\Users\gram17kny> bun install -g opencode-ai
bun add v1.3.7 (ba426210)

+ @google/gemini-cli@0.26.0
+ oh-my-opencode-windows-x64@3.1.3

installed opencode-ai@1.1.44 with binaries:
 - opencode

532 packages installed [35.33s]
PS C:\Users\gram17kny> bun pm -g untrusted
bun pm untrusted v1.3.7 (ba426210)

Found 0 untrusted dependencies with scripts.

This means all packages with scripts are in "trustedDependencies" or none of your dependencies have scripts.

For more information, visit https://bun.com/docs/install/lifecycle#trusteddependencies
PS C:\Users\gram17kny> cat .\.bun\install\install_omoc.cmd
Get-Content: Cannot find path 'C:\Users\gram17kny\.bun\install\install_omoc.cmd' because it does not exist.
PS C:\Users\gram17kny> cat .\.bun\install\global\install_omoc.cmd
@echo off
setlocal EnableDelayedExpansion

echo ========================================================
echo   Oh My OpenCode - Windows Fix Installer
echo   (Installs v3.0.1+ and fixes Bun crash on Windows)
echo ========================================================

:: Check for Bun
where bun >nul 2>nul
if %errorlevel% neq 0 (
    echo [ERROR] Bun is not found. Please install Bun first: https://bun.sh
    pause
    exit /b 1
)

:: Check for Git
where git >nul 2>nul
if %errorlevel% neq 0 (
    echo [ERROR] Git is not found. Please install Git first.
    pause
    exit /b 1
)

:: Set Paths using System Variables (Universal)
set "REPO_URL=https://github.com/code-yeongyu/oh-my-opencode.git"
set "CLONE_DIR=oh-my-opencode-build-temp"
:: Use %USERPROFILE% to point to C:\Users\<Username> generic path
set "TARGET_DIR=%USERPROFILE%\.config\opencode\node_modules\oh-my-opencode"
set "TARGET_PARENT=%USERPROFILE%\.config\opencode\node_modules"

echo [INFO] Working directory: %CD%
echo [INFO] Target directory: %TARGET_DIR%

:: 1. Clean previous build temp if exists
if exist "%CLONE_DIR%" (
    echo [INFO] Cleaning up old build directory...
    rmdir /s /q "%CLONE_DIR%"
)

:: 2. Clone Repository
echo [INFO] Cloning repository...
git clone %REPO_URL% "%CLONE_DIR%"
if %errorlevel% neq 0 (
    echo [ERROR] Git clone failed.
    pause
    exit /b 1
)

cd "%CLONE_DIR%"

:: 3. Install Dependencies
echo [INFO] Installing dependencies (bun install)...
call bun install
if %errorlevel% neq 0 (
    echo [ERROR] Bun install failed.
    pause
    exit /b 1
)

:: 4. Build Windows Binary
echo [INFO] Compiling Windows binary (Fixing the crash issue)...
call bun build --compile --minify --sourcemap --bytecode --target=bun-windows-x64 src/cli/index.ts --outfile=packages/windows-x64/bin/oh-my-opencode.exe
if %errorlevel% neq 0 (
    echo [ERROR] Build failed.
    pause
    exit /b 1
)

:: 5. Patch node_modules Binary (create directory if needed)
echo [INFO] Patching node_modules binary...
if not exist "node_modules\oh-my-opencode-windows-x64\bin" (
    mkdir "node_modules\oh-my-opencode-windows-x64\bin"
)
copy /Y "packages\windows-x64\bin\oh-my-opencode.exe" "node_modules\oh-my-opencode-windows-x64\bin\oh-my-opencode.exe"
if %errorlevel% neq 0 (
    echo [ERROR] Failed to patch binary.
    pause
    exit /b 1
)

:: 6. Deploy to OpenCode Config Directory
echo [INFO] Deploying to OpenCode configuration...

:: Ensure parent directory exists
if not exist "%TARGET_PARENT%" (
    mkdir "%TARGET_PARENT%"
)

:: Remove old plugin version if exists
if exist "%TARGET_DIR%" (
    echo [INFO] Removing old plugin version...
    rmdir /s /q "%TARGET_DIR%"
)

:: Copy fresh build to target
echo [INFO] Copying files to target (this may take a while)...
:: /E=recursive /I=assume directory /H=hidden files /Y=suppress confirm /Q=quiet
xcopy . "%TARGET_DIR%\" /E /I /H /Y /Q >nul
if %errorlevel% neq 0 (
    echo [ERROR] Failed to deploy files.
    pause
    exit /b 1
)

:: 7. Run Install Script
echo [INFO] Running installation script...
:: We run it from the TARGET directory to ensure paths align
cd /d "%TARGET_DIR%"
call bun run ./bin/oh-my-opencode.js install

echo.
echo ========================================================
echo [SUCCESS] Installation complete!
echo Please RESTART your code editor now.
echo ========================================================
pause
PS C:\Users\gram17kny> opencode -h

█▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█
█  █ █  █ █▀▀▀ █  █ █    █  █ █  █ █▀▀▀
▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀

Commands:
  opencode completion          generate shell completion script
  opencode acp                 start ACP (Agent Client Protocol) server
  opencode mcp                 manage MCP (Model Context Protocol) servers
  opencode [project]           start opencode tui                                          [default]
  opencode attach <url>        attach to a running opencode server
  opencode run [message..]     run opencode with a message
  opencode debug               debugging and troubleshooting tools
  opencode auth                manage credentials
  opencode agent               manage agents
  opencode upgrade [target]    upgrade opencode to the latest or a specific version
  opencode uninstall           uninstall opencode and remove all related files
  opencode serve               starts a headless opencode server
  opencode web                 start opencode server and open web interface
  opencode models [provider]   list all available models
  opencode stats               show token usage and cost statistics
  opencode export [sessionID]  export session data as JSON
  opencode import <file>       import session data from JSON file or URL
  opencode github              manage GitHub agent
  opencode pr <number>         fetch and checkout a GitHub PR branch, then run opencode
  opencode session             manage sessions

Positionals:
  project  path to start opencode in                                                        [string]

Options:
  -h, --help        show help                                                              [boolean]
  -v, --version     show version number                                                    [boolean]
      --print-logs  print logs to stderr                                                   [boolean]
      --log-level   log level                   [string] [choices: "DEBUG", "INFO", "WARN", "ERROR"]
      --port        port to listen on                                          [number] [default: 0]
      --hostname    hostname to listen on                            [string] [default: "127.0.0.1"]
      --mdns        enable mDNS service discovery (defaults hostname to 0.0.0.0)
                                                                          [boolean] [default: false]
      --cors        additional domains to allow for CORS                       [array] [default: []]
  -m, --model       model to use in the format of provider/model                            [string]
  -c, --continue    continue the last session                                              [boolean]
  -s, --session     session id to continue                                                  [string]
      --prompt      prompt to use                                                           [string]
      --agent       agent to use                                                            [string]
PS C:\Users\gram17kny> opencode upgrade

                                   ▄
  █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█
  █  █ █  █ █▀▀▀ █  █ █    █  █ █  █ █▀▀▀
  ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀┌  Upgrade
│
●  Using method: bun
│
▲  opencode upgrade skipped: 1.1.44 is already installed
│
└  Done

PS C:\Users\gram17kny> .\.bun\install\global\install_omoc.cmd
========================================================
  Oh My OpenCode - Windows Fix Installer
  (Installs v3.0.1+ and fixes Bun crash on Windows)
========================================================
[INFO] Working directory: C:\Users\gram17kny
[INFO] Target directory: C:\Users\gram17kny\.config\opencode\node_modules\oh-my-opencode
[INFO] Cloning repository...
Cloning into 'oh-my-opencode-build-temp'...
remote: Enumerating objects: 13580, done.
remote: Counting objects: 100% (891/891), done.
remote: Compressing objects: 100% (311/311), done.
remote: Total 13580 (delta 715), reused 596 (delta 580), pack-reused 12689 (from 4)
Receiving objects: 100% (13580/13580), 35.64 MiB | 7.99 MiB/s, done.
Resolving deltas: 100% (8673/8673), done.
[INFO] Installing dependencies (bun install)...
bun install v1.3.7 (ba426210)

$ node postinstall.mjs
✓ oh-my-opencode binary installed for win32-x64

+ @types/js-yaml@4.0.9
+ @types/picomatch@3.0.2
+ bun-types@1.3.3
+ typescript@5.9.3
+ oh-my-opencode-windows-x64@3.1.8
+ @ast-grep/cli@0.40.0
+ @ast-grep/napi@0.40.0
+ @clack/prompts@0.11.0
+ @code-yeongyu/comment-checker@0.6.1
+ @modelcontextprotocol/sdk@1.25.1
+ @opencode-ai/plugin@1.1.19
+ @opencode-ai/sdk@1.1.19
+ commander@14.0.2
+ detect-libc@2.1.2
+ js-yaml@4.1.1
+ jsonc-parser@3.3.1
+ picocolors@1.1.1
+ picomatch@4.0.3
+ vscode-jsonrpc@8.2.1
+ zod@4.1.8

115 packages installed [14.25s]
[INFO] Compiling Windows binary (Fixing the crash issue)...
 [760ms]  minify  -7.84 MB (estimate)
 [150ms]  bundle  197 modules
[1458ms] compile  packages/windows-x64/bin/oh-my-opencode.exe
[INFO] Patching node_modules binary...
        1 file(s) copied.
[INFO] Deploying to OpenCode configuration...
[INFO] Copying files to target (this may take a while)...
[INFO] Running installation script...
┌   oMoMoMoMo...
│
◇  OpenCode 1.1.44 [OK]
│
◇  Do you have a Claude Pro/Max subscription?
│  No
│
◇  Do you have an OpenAI/ChatGPT Plus subscription?
│  No
│
◇  Will you integrate Google Gemini?
│  Yes
│
◇  Do you have a GitHub Copilot subscription?
│  No
│
◇  Do you have access to OpenCode Zen (opencode/ models)?
│  No
│
◇  Do you have a Z.ai Coding Plan subscription?
│  No
│
◇  Do you have a Kimi For Coding subscription?
│  No
│
◇  Plugin added to C:\Users\gram17kny\.config\opencode\opencode.json
│
◇  Auth plugins added to C:\Users\gram17kny\.config\opencode\opencode.json
│
◇  Provider config added to C:\Users\gram17kny\.config\opencode\opencode.json
│
◇  Config written to C:\Users\gram17kny\.config\opencode\oh-my-opencode.json

 CRITICAL WARNING

  Sisyphus agent is STRONGLY optimized for Claude Opus 4.5.
  Without Claude, you may experience significantly degraded performance:
    • Reduced orchestration quality
    • Weaker tool selection and delegation
    • Less reliable task completion

  Consider subscribing to Claude Pro/Max for the best experience.

│
◇  Installation Complete ───────────────────────────────────╮
│                                                           │
│  Configuration Summary                                    │
│                                                           │
│    ○ Claude                                               │
│    ○ OpenAI/ChatGPT (GPT-5.2 for Oracle)                  │
│    [OK] Gemini                                            │
│    ○ GitHub Copilot (fallback)                            │
│    ○ OpenCode Zen (opencode/ models)                      │
│    ○ Z.ai Coding Plan (Librarian/Multimodal)              │
│    ○ Kimi For Coding (Sisyphus/Prometheus fallback)       │
│                                                           │
│  ────────────────────────────────────────                 │
│                                                           │
│  Model Assignment                                         │
│                                                           │
│    [i] Models auto-configured based on provider priority  │
│    * Priority: Native > Copilot > OpenCode Zen > Z.ai     │
│                                                           │
├───────────────────────────────────────────────────────────╯
│
◆  Installation complete!
│
│  Run opencode to start!
│
◇  The Magic Word ──────────────────────────────────────────────────╮
│                                                                   │
│  Include ultrawork (or ulw) in your prompt.                       │
│  All features work like magic—parallel agents, background tasks,  │
│  deep exploration, and relentless execution until completion.     │
│                                                                   │
├───────────────────────────────────────────────────────────────────╯
│
│  ★ If you found this helpful, consider starring the repo!
│
│    gh api --silent --method PUT /user/starred/code-yeongyu/oh-my-opencode >/dev/null 2>&1 || true
│
└  oMoMoMoMo... Enjoy!


Authenticate Your Providers

   Run opencode auth login and select:
   * Google → OAuth with Antigravity


========================================================
[SUCCESS] Installation complete
Please RESTART your code editor now.
========================================================
Press any key to continue . . .
PS C:\Users\gram17kny> oh-my-opencode -h
oh-my-opencode: The term 'oh-my-opencode' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
PS C:\Users\gram17kny> opencode auth login

┌  Add credential
│
◇  Select provider
│  Google
│
◇  Login method
│  OAuth with Google (Antigravity)

=== Antigravity OAuth (Account 1) ===
Project ID (leave blank to use your default project):

OAuth URL:
https://accounts.google.com/o/oauth2/v2/auth?client_id=1071006060591-tmhssin2h21lcre235vtolojh4g403ep.apps.googleusercontent.com&response_type=code&redirect_uri=http%3A%2F%2Flocalhost%3A51121%2Foauth-callback&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloud-platform+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcclog+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fexperimentsandconfigs&code_challenge=ya5u9xugCh8IpAfQWoQvzHUY4t387fb-mB_9ccMgCPY&code_challenge_method=S256&state=eyJ2ZXJpZmllciI6ImtvRmJmamd2aHdTQUZxczFJRTJjOGdlZlFjM2I5VVc1TXctaGozR3dDWVV0Rkw0Z0tCNlNqMDEtVzVvUmxJLTJfelJocFRCNmFwcmtiekRLWFZzM0dRIiwicHJvamVjdElkIjoiIn0&access_type=offline&prompt=consent

Add another account? (1 added) (y/n): n
│
●  Multi-account setup complete (1 account(s)).
│
◇  Login successful
│
└  Done
PS C:\Users\gram17kny> bun add -g opencode-antigravity-auth@latest
bun add v1.3.7 (ba426210)

installed opencode-antigravity-auth@1.4.1

19 packages installed [2.09s]
PS C:\Users\gram17kny> bun pm -g untrusted
bun pm untrusted v1.3.7 (ba426210)

Found 0 untrusted dependencies with scripts.

This means all packages with scripts are in "trustedDependencies" or none of your dependencies have scripts.

For more information, visit https://bun.com/docs/install/lifecycle#trusteddependencies
PS C:\Users\gram17kny> opencode -v
1.1.44

Doctor Output

# this is my "install_omoc.cmd" and output

## install_omoc.cmd
@echo off
setlocal EnableDelayedExpansion

echo ========================================================
echo   Oh My OpenCode - Windows Fix Installer
echo   (Installs v3.0.1+ and fixes Bun crash on Windows)
echo ========================================================

:: Check for Bun
where bun >nul 2>nul
if %errorlevel% neq 0 (
    echo [ERROR] Bun is not found. Please install Bun first: https://bun.sh
    pause
    exit /b 1
)

:: Check for Git
where git >nul 2>nul
if %errorlevel% neq 0 (
    echo [ERROR] Git is not found. Please install Git first.
    pause
    exit /b 1
)

:: Set Paths using System Variables (Universal)
set "REPO_URL=https://github.com/code-yeongyu/oh-my-opencode.git"
set "CLONE_DIR=oh-my-opencode-build-temp"
:: Use %USERPROFILE% to point to C:\Users\<Username> generic path
set "TARGET_DIR=%USERPROFILE%\.config\opencode\node_modules\oh-my-opencode"
set "TARGET_PARENT=%USERPROFILE%\.config\opencode\node_modules"

echo [INFO] Working directory: %CD%
echo [INFO] Target directory: %TARGET_DIR%

:: 1. Clean previous build temp if exists
if exist "%CLONE_DIR%" (
    echo [INFO] Cleaning up old build directory...
    rmdir /s /q "%CLONE_DIR%"
)

:: 2. Clone Repository
echo [INFO] Cloning repository...
git clone %REPO_URL% "%CLONE_DIR%"
if %errorlevel% neq 0 (
    echo [ERROR] Git clone failed.
    pause
    exit /b 1
)

cd "%CLONE_DIR%"

:: 3. Install Dependencies
echo [INFO] Installing dependencies (bun install)...
call bun install
if %errorlevel% neq 0 (
    echo [ERROR] Bun install failed.
    pause
    exit /b 1
)

:: 4. Build Windows Binary
echo [INFO] Compiling Windows binary (Fixing the crash issue)...
call bun build --compile --minify --sourcemap --bytecode --target=bun-windows-x64 src/cli/index.ts --outfile=packages/windows-x64/bin/oh-my-opencode.exe
if %errorlevel% neq 0 (
    echo [ERROR] Build failed.
    pause
    exit /b 1
)

:: 5. Patch node_modules Binary (create directory if needed)
echo [INFO] Patching node_modules binary...
if not exist "node_modules\oh-my-opencode-windows-x64\bin" (
    mkdir "node_modules\oh-my-opencode-windows-x64\bin"
)
copy /Y "packages\windows-x64\bin\oh-my-opencode.exe" "node_modules\oh-my-opencode-windows-x64\bin\oh-my-opencode.exe"
if %errorlevel% neq 0 (
    echo [ERROR] Failed to patch binary.
    pause
    exit /b 1
)

:: 6. Deploy to OpenCode Config Directory
echo [INFO] Deploying to OpenCode configuration...

:: Ensure parent directory exists
if not exist "%TARGET_PARENT%" (
    mkdir "%TARGET_PARENT%"
)

:: Remove old plugin version if exists
if exist "%TARGET_DIR%" (
    echo [INFO] Removing old plugin version...
    rmdir /s /q "%TARGET_DIR%"
)

:: Copy fresh build to target
echo [INFO] Copying files to target (this may take a while)...
:: /E=recursive /I=assume directory /H=hidden files /Y=suppress confirm /Q=quiet
xcopy . "%TARGET_DIR%\" /E /I /H /Y /Q >nul
if %errorlevel% neq 0 (
    echo [ERROR] Failed to deploy files.
    pause
    exit /b 1
)

:: 7. Run Install Script
echo [INFO] Running installation script...
:: We run it from the TARGET directory to ensure paths align
cd /d "%TARGET_DIR%"
call bun run ./bin/oh-my-opencode.js install

echo.
echo ========================================================
echo [SUCCESS] Installation complete!
echo Please RESTART your code editor now.
echo ========================================================
pause

## output
PS C:\Users\gram17kny> cat .\.bun\install\global\install_omoc.cmd
@echo off
setlocal EnableDelayedExpansion

echo ========================================================
echo   Oh My OpenCode - Windows Fix Installer
echo   (Installs v3.0.1+ and fixes Bun crash on Windows)
echo ========================================================

:: Check for Bun
where bun >nul 2>nul
if %errorlevel% neq 0 (
    echo [ERROR] Bun is not found. Please install Bun first: https://bun.sh
    pause
    exit /b 1
)

:: Check for Git
where git >nul 2>nul
if %errorlevel% neq 0 (
    echo [ERROR] Git is not found. Please install Git first.
    pause
    exit /b 1
)

:: Set Paths using System Variables (Universal)
set "REPO_URL=https://github.com/code-yeongyu/oh-my-opencode.git"
set "CLONE_DIR=oh-my-opencode-build-temp"
:: Use %USERPROFILE% to point to C:\Users\<Username> generic path
set "TARGET_DIR=%USERPROFILE%\.config\opencode\node_modules\oh-my-opencode"
set "TARGET_PARENT=%USERPROFILE%\.config\opencode\node_modules"

echo [INFO] Working directory: %CD%
echo [INFO] Target directory: %TARGET_DIR%

:: 1. Clean previous build temp if exists
if exist "%CLONE_DIR%" (
    echo [INFO] Cleaning up old build directory...
    rmdir /s /q "%CLONE_DIR%"
)

:: 2. Clone Repository
echo [INFO] Cloning repository...
git clone %REPO_URL% "%CLONE_DIR%"
if %errorlevel% neq 0 (
    echo [ERROR] Git clone failed.
    pause
    exit /b 1
)

cd "%CLONE_DIR%"

:: 3. Install Dependencies
echo [INFO] Installing dependencies (bun install)...
call bun install
if %errorlevel% neq 0 (
    echo [ERROR] Bun install failed.
    pause
    exit /b 1
)

:: 4. Build Windows Binary
echo [INFO] Compiling Windows binary (Fixing the crash issue)...
call bun build --compile --minify --sourcemap --bytecode --target=bun-windows-x64 src/cli/index.ts --outfile=packages/windows-x64/bin/oh-my-opencode.exe
if %errorlevel% neq 0 (
    echo [ERROR] Build failed.
    pause
    exit /b 1
)

:: 5. Patch node_modules Binary (create directory if needed)
echo [INFO] Patching node_modules binary...
if not exist "node_modules\oh-my-opencode-windows-x64\bin" (
    mkdir "node_modules\oh-my-opencode-windows-x64\bin"
)
copy /Y "packages\windows-x64\bin\oh-my-opencode.exe" "node_modules\oh-my-opencode-windows-x64\bin\oh-my-opencode.exe"
if %errorlevel% neq 0 (
    echo [ERROR] Failed to patch binary.
    pause
    exit /b 1
)

:: 6. Deploy to OpenCode Config Directory
echo [INFO] Deploying to OpenCode configuration...

:: Ensure parent directory exists
if not exist "%TARGET_PARENT%" (
    mkdir "%TARGET_PARENT%"
)

:: Remove old plugin version if exists
if exist "%TARGET_DIR%" (
    echo [INFO] Removing old plugin version...
    rmdir /s /q "%TARGET_DIR%"
)

:: Copy fresh build to target
echo [INFO] Copying files to target (this may take a while)...
:: /E=recursive /I=assume directory /H=hidden files /Y=suppress confirm /Q=quiet
xcopy . "%TARGET_DIR%\" /E /I /H /Y /Q >nul
if %errorlevel% neq 0 (
    echo [ERROR] Failed to deploy files.
    pause
    exit /b 1
)

:: 7. Run Install Script
echo [INFO] Running installation script...
:: We run it from the TARGET directory to ensure paths align
cd /d "%TARGET_DIR%"
call bun run ./bin/oh-my-opencode.js install

echo.
echo ========================================================
echo [SUCCESS] Installation complete!
echo Please RESTART your code editor now.
echo ========================================================
pause

Error Logs

Configuration

{
  "$schema": "https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/master/assets/oh-my-opencode.schema.json",
  "agents": {
    "sisyphus": {
      "model": "google/gemini-3-pro"
    },
    "oracle": {
      "model": "google/gemini-3-pro",
      "variant": "max"
    },
    "librarian": {
      "model": "opencode/glm-4.7-free"
    },
    "explore": {
      "model": "opencode/gpt-5-nano"
    },
    "multimodal-looker": {
      "model": "google/gemini-3-flash"
    },
    "prometheus": {
      "model": "google/gemini-3-pro"
    },
    "metis": {
      "model": "google/gemini-3-pro",
      "variant": "max"
    },
    "momus": {
      "model": "google/gemini-3-pro",
      "variant": "max"
    },
    "atlas": {
      "model": "google/gemini-3-pro"
    }
  },
  "categories": {
    "visual-engineering": {
      "model": "google/gemini-3-pro"
    },
    "ultrabrain": {
      "model": "google/gemini-3-pro",
      "variant": "max"
    },
    "deep": {
      "model": "google/gemini-3-pro",
      "variant": "max"
    },
    "artistry": {
      "model": "google/gemini-3-pro",
      "variant": "max"
    },
    "quick": {
      "model": "google/gemini-3-flash"
    },
    "unspecified-low": {
      "model": "google/gemini-3-flash"
    },
    "unspecified-high": {
      "model": "google/gemini-3-flash"
    },
    "writing": {
      "model": "google/gemini-3-flash"
    }
  }
}

Additional Context

No response

Operating System

Windows

OpenCode Version

1.1.44

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions