dsh-pending-review-glow: Color-coded sidebar sessions for pending review, running, and recently completed

Preface

When running multiple sessions simultaneously in DeepSeek Harness (DSH), the list on the left often fails to make it clear which row is waiting for approval, which is still running, and which finished recently but hasn’t been opened yet. Switching sessions based on memory is costly and prone to missing suspended approvals.

dsh-pending-review-glow is a community plugin (maintained by BroCC57, categorized under “Fun Customization”) that expresses three states uniformly on the session row using an “inner border + soft background” and a small dot of the same color at the row’s end. It distinguishes states solely through color and animation effects without altering the approval workflow itself.

What is this?

The plugin package name / row id is dsh-pending-review-glow / pending-review-glow. The server listens for DSH emit events to maintain state, while the browser performs semi-polling on GET /pending-review-glow/state and mounts probes on the sidebar session row slots to tag the DOM with data-dsh-session-state. It features zero dependencies and zero build steps; the browser script is loaded as a classic script.

Three States and Priority

State Color Animation Meaning
pending Red rgba(244,63,94,…) Breathing 1.5s An approval is waiting for you
running Yellow rgba(245,158,11,…) Steady, no breathing Inference/running
finished Green rgba(34,197,94,…) Breathing 1.5s Just finished, no approval needed, and hasn’t been opened since

If multiple states coexist in the same row, the priority is: Red > Yellow > Green. The small dot at the end of the row matches the row color (yellow dot is steady, red/green dots breathe). Under prefers-reduced-motion, the red/green breathing effect degrades to a steady border.

Where does the data come from

All state information comes from event broadcasts, with no fixed call order required:

  • Pending Approval: approval/asked / approval/decided, cross-validated with approval/request + prepend.
  • Running: api-session/status(sessionId, running).
  • Just Finished: Same as above; a timestamp is recorded when running: true → false.

The approval/request listener always calls next() to pass through; it does not claim, rewrite, or alter the timeout of any approval. Upon receiving turn/end, it forces the clearing of the session’s pending-approval-related state (approvals are closed within a turn).

When does Green disappear?

finished only indicates “has finished running.” The browser writes the “seen” time into localStorage (key dsh-pending-review-glow:ack) in two scenarios: the row is clicked (pointerdown), or the row is currently selected at the moment the run finishes. If ack ≥ finished.at, the row will no longer display green until the next run updates the timestamp.

It also attempts to prevent the currently open session from displaying green by checking selection markers on the row (e.g., aria-selected, aria-current, or active|selected in the class). If none of these markers are matched, the current session may briefly turn green when a run finishes; a single click will clear it—this is noted as an acceptable approximation in the README.

Installation and Activation

Locate this plugin on the DSH plugin directory page and use “Add Plugin,” filling in the absolute path of this plugin’s directory (link installation; DSH must be restarted for changes to plugin files to take effect). The materials do not provide commands like dsh plugin add github:…; do not construct these yourself based on repository names.

The plugin runs with the permissions of the current DSH process. Before installation, it is recommended to review the GitHub Repository source code and the MIT license (version 0.2.0 in package.json, requires Node >=20).

Uninstallation: Find dsh-pending-review-glow on the plugin page → Uninstall → Restart DSH. To clear the green “seen” memory, execute the following in the browser Console:

localStorage.removeItem('dsh-pending-review-glow:ack')

Self-Check and Troubleshooting

View the server-side aggregated state in the browser Console:

await (await fetch('/pending-review-glow/state')).json()

Meaning of example fields: revision is used by the browser to detect duplicates; count is the number of current sessions pending review; pending / running / finished are the three categories of lists; asks, decided, seen are cumulative counts; when troubleshooting a “red light that won’t turn off,” you can check recent (the last 10 approval-related events). If there are no approvals, it may be {revision:0,seen:0,asks:0,count:0,pending:[]}.

Check how many rows on the page have been tagged with a state attribute:

document.querySelectorAll('[data-dsh-session-state]').length

If Yellow (Running) or Green does not appear, it may be that api-session/status is not being broadcast in your environment—use the /state request above to instantly determine if the server has received the running status.

Use Cases and Notes

Suitable for developers who frequently run multiple sessions in parallel, rely on tool approvals, or have long-running tasks. It allows for a quick visual distinction in the sidebar between “needs a click to approve,” “still running,” and “finished but unseen.”

The community directory skillhub plugin page and GitHub are maintained by the community and have no official affiliation with DeepSeek / High-Flyer; the directory stars are 0, and functionality should be based on the README and actual testing records. The README notes that items such as steady yellow, green cleared by clicking, and red extinguishing after approval settlement are still marked as pending actual testing in some environments; the two approval data sources and the red status already have actual test records.

Conclusion

dsh-pending-review-glow does not change approval semantics; it only visualizes three session states in the UI. To install or report issues, please visit the skillhub directory page and GitHub: BroCC57/dsh-pending-review-glow.

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

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

Xiaoye