dsh-model-in-use: Model Menu Occupancy Flag and Gear Memory

Introduction

In DSH (DeepSeek Harness), when multiple sessions run simultaneously, it is often difficult to distinguish which models are currently occupied in the model menu. Furthermore, after switching models or providers, the inference tier (e.g., x0.00 Low) often resets. This plugin resolves these issues by providing visual feedback and persistent memory within the menu UI.

Plugin Positioning

This is a DSH Web Cordis plugin maintained by Faide-cyber and licensed under MIT. It merely decorates the existing model menu of the host; it does not modify host packages or introduce runtime dependencies.

Core Features

The plugin provides the following features:

  • Usage Indicator: Models currently in use by other running sessions display a #3cc400 dot at the end of the row, with a tooltip showing “In use by other sessions” upon hovering.
  • Group-level Dots: When any model within a group is occupied, a small dot appears before the group title. Even if the group is collapsed, it indicates that “models inside are running”.
  • Inference Tier Memory: Remembers the inference tier for each model. When switching away and back, or selecting the same model in a new conversation, the last selected tier is restored.
  • Collapse Memory: Each provider group can be collapsed, with the state stored in localStorage, persisting across menu reopens or page refreshes.
  • Spacing Correction: Group spacing is arranged according to visual order, eliminating cases where two groups stick together.
  • Sticky Opacity: The background color of sticky group titles is pinned to opaque, preventing secondary menu text from bleeding through from beneath the title.
  • Hover Details: Appends the current model and inference tier after “In Progress” in the session hover card, e.g., In Progress ● Deepseek-V4.1-Flash · x0.00 Low.

Installation

Install the plugin using the following command:

dsh plugin --profile desktop add github:Faide-cyber/dsh-model-in-use

Usage Instructions

No configuration is required after installation; all items are expanded by default. There are a few conventions:

  • Inference tiers are remembered by “Model”, not by “Provider”. The same model can often be accessed under multiple provider IDs; remembering by model ensures the tier is read correctly even when switching sites.
  • Selecting “Follow Provider Default” in the tier menu is only effective for the current conversation and does not delete the remembered tier—the next time this model is clicked, its specific tier will be restored.

Notes

  • Non-exclusive: This is merely a notification and does not prevent selection; multiple sessions can select the same model.
  • Real-time Updates: The dot appears/disappears immediately when another session starts/stops running or switches models.
  • Full DSH Exit Required: You must completely exit DSH and restart it after installation for the new code to take effect.
  • Host Interface Dependency: Depends on the host’s directory.select(), directory.store, and modelDirectories.live.directories.values shapes remaining unchanged.

Summary

By adding usage status indicators and tier memory features to the model menu, this plugin solves the confusion of model management in multi-session scenarios. For more details, please refer to the GitHub Repository.

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

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

Xiaoye