Introduction

In WSL2 environments, clock drift after hibernation can cause TLS handshake failures or GitHub App JWT invalidation. dsh-wsl-clock is designed to detect UTC time deviations between WSL and Windows, ensuring that service connections remain normal.

Feature Description

This plugin focuses on resolving clock drift issues and provides the following capabilities:
* Detect Deviation: Compares time between WSL and Windows to identify UTC clock drift.
* Validate Connections: Checks the validity of TLS connections and GitHub App JWTs.
* Status Feedback: Returns an ok, warn, or fail status to help determine the severity of the issue.

Installation and Enablement

Add the plugin using the DSH plugin command:

dsh plugin --profile web add github:173787247/dsh-wsl-clock

Typical Usage

After installation, run the test in the project directory to check the clock status:

npm test

Notes

  • Version Requirement: DSH version >= 0.1.2 is required.
  • Configuration Note: The Cloud Flash model ID is not configured by this plugin; it must be configured manually in ~/.dsh/settings.yaml under llm-deepseek.
  • Kit Collections: The Kit collections include llm and full.

Conclusion

With the above configuration, you can continuously monitor clock drift in WSL2 environments and ensure service stability.