dsh-orca-terminal-status: DSH TUI Status Sync to Orca

Preface

In Orca version 1.4.220, DSH (DeepSeek Harness) is capable of completing requests, but Orca may still be waiting for the tui-idle status. This is because DSH’s Claude-compatible hook reports HTTP events, whereas Orca’s readiness check expects a terminal state. This discrepancy leads to a state synchronization mismatch.

dsh-orca-terminal-status is an unofficial, standalone plugin that directly listens to DSH’s lifecycle events and writes the actual DSH TUI state (ready, working, complete) into Orca’s existing terminal pipeline, enabling Orca to correctly identify the completion status of DSH workers.

Core Features

This plugin focuses on resolving the state synchronization issue, with core capabilities including:

  • Listen and Write State: Monitors the actual state of the DSH TUI and writes ready, working, and complete states into Orca’s PTY (terminal pipeline).
  • Accurate Completion Determination: Does not translate HTTP Stop into a completion state; instead, it waits for the TUI’s actual sub-runtime activation, a single root agent to become idle, and the inbox to be empty before reporting completion.
  • Filtering Distractors: Ignores sub-agents, ambiguous multi-root agents, non-TTY SDK output, and terminals without an Orca panel environment.

Installation and Usage

Before installation, ensure the environment meets the requirements: Node.js version must be ^22.19.0 || >=24, and an existing DSH TUI configuration file must be in place.

  1. Install the Plugin
    Use DSH’s package management CLI to install the published Tgz package. Replace dsh-tui with the actual profile name you are using.
    dsh plugin --profile dsh-tui add https://github.com/Alex-wangyang/dsh-orca-terminal-status/releases/download/v0.1.0/dsh-orca-terminal-status-0.1.0.tgz
  1. Verify and Run
    After installation, restart DSH and launch in Orca. Confirm that the plugin line is correctly assembled and that the native tui-idle readiness check passes. Then run a harmless task to verify that Orca correctly identifies completion when the task truly finishes.

    To remove the plugin:

    dsh plugin --profile dsh-tui remove dsh-orca-terminal-status

Use Cases and Considerations

This plugin depends on the internal implementation of DSH TUI (such as internal/status, fiber state, dsh-tui-runtime), so compatibility is only guaranteed under specific version combinations.

  • Environment Dependencies: Requires matching frontend/service ownership. The plugin runs with the current DSH process permissions; review the source code and license before installation.
  • Compatibility: Verified version combinations include Orca 1.4.220, DSH 0.2.0-rc.2, and TUI 0.13.0. Compatibility with Windows, Linux, SSH, or multi-root frontend routing has not been verified.
  • Installation Constraints: After installation, it affects all sessions under that profile. Do not combine with manually inserted copies, and do not combine with Orca versions that already have this feature built in.

Summary

dsh-orca-terminal-status bridges the gap between Orca’s expectations for terminal state checks in newer versions and DSH’s HTTP event mechanism by listening to DSH’s actual TUI lifecycle. For developers who need to use DSH in an Orca 1.4.220+ environment, this is an essential synchronization tool.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye