Skip to content

[Bug]: tmux-integration's server health check failing due to incorrect url path #2260

@aberey

Description

@aberey

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 or asked an AI coding agent with this project's GitHub URL loaded and couldn't find the answer

Bug Description

Even with tmux.enabled=true, subagents won't spawn in separate tmux panes.
Based on code analysis, this is due to the health check at https://github.com/code-yeongyu/oh-my-opencode/blob/dev/src/shared/tmux/tmux-utils/server-health.ts#L13 using /health as the endpoint path to check server health (which returns a http 403 due to the endpoint not existing, therefore skipping tmux integration), while the actual endpoint in opencode is /global/health (see https://github.com/anomalyco/opencode/blob/dev/packages/opencode/src/server/routes/global.ts#L18-L21).

Steps to Reproduce

  1. Configure oh-my-openocde.json with { "tmux": { "enabled":true } }
  2. start opencode with opencode -p 4096
  3. submit a query that uses subagents

Expected Behavior

agents should spawn in separate tmux pane splits

Actual Behavior

agents run in same window

Doctor Output

Opencode version: 1.2.15
oh-my-opencode version: 3.9.0

Error Logs

Configuration

Additional Context

No response

Operating System

macOS

OpenCode Version

1.2.15

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