Preface¶
During host generation reset in DeepSeek Harness (DSH), projection values (such as session titles) are briefly lost and revert to “Unnamed”. This is a DSH plugin that does not modify the DSH installation directory. It preserves titles by overriding ProjectionValueStore.prototype.clear, and fixes issues related to list rebuild frequency and spinner animations.
Core Features¶
This plugin includes three independent fixes:
-
Session Title Persistence
Session titles will no longer fall back to “Unnamed” during a host generation reset. -
Session List Rebuild Optimization
Session list rebuilds are coalesced intorAFframes, achieving a measured ~6.3× reduction in rebuild frequency. -
Spinner Animation Fix
Running spinner animations resume rotating (fixing the WebView2reduced-motionissue).
Installation and Activation¶
Install the plugin from GitHub:
dsh plugin --profile <你的 profile> add github:iuuuuuuuu/dsh-projection-persist
After installation, add the plugin name to dsh.profile.bundles in the profile’s package.json:
{
"dsh": {
"profile": {
"bundles": [
"dsh-projection-persist"
]
}
}
}
Modifying dsh.profile.bundles triggers a hot reload, so a restart is usually not required.
Verification and Debugging¶
Once installed and active, verify it via the diagnostic endpoint:
curl http://127.0.0.1:3080/dsh-projection-persist
To disable the spinner fix independently, execute the following in the browser console:
localStorage["dsh-projection-persist.spinner"] = "off"
Notes¶
- Depends solely on the
sessionsservice and declares nopeerDependencies. - Verified compatible version:
@deepseek-ai/dsh-api-session-controller 0.2.0-rc.2. - Only affects the projection store held by the manager; stores held by the sessions themselves are not affected.
- Reconnection logic (heartbeats/host generation reset) is out of scope for this plugin.
Summary¶
This plugin preserves titles by overriding the clear method, and optimizes list rendering and animation performance. For details, see the GitHub repository: dsh-projection-persist. Licensed under MIT.