hjdd14/dsh-toolong-warning
Counts each conversation's completed compactions in a floating window and warns only when a thread has been compacted repeatedly and is still growing.
Answers a question the harness does not surface on its own: how many times has this conversation been compacted? It shows that count at all times in a floating window, and raises a warning card only when compactions have happened repeatedly and the thread is still going. Only completed compactions count — a compaction/start paired with a compaction/end that carries no error — while failed compactions, in-progress compactions and pure pruning (compaction/prune) never do. Because the default threshold is three, two compactions stay silent, and a very long, very expensive conversation that has never been compacted stays silent too, with only the 0 counter showing. The README says every rule is written to prefer silence when the data to justify a warning is missing, and the dismiss button is scoped the same way: "Got it" hides the current reminder only, and the counter keeps updating.
Install
dsh plugin --profile web add @hjdd14/dsh-toolong-warningThe npm line from the README's Install section. Four other routes are documented: a git form (dsh plugin --profile web add "git+https://github.com/Hjdd14/dsh-toolong-warning.git"), a clone form ("link:<absolute path to the clone>"), a prebuilt tarball ("file:<path to the tgz>") and hand-editing the profile when the CLI is unavailable. The README also notes that --profile desktop is refused on purpose, because the desktop profile is application-owned; the shipped plugin is hand-written JavaScript with no build step, so pnpm has no prepare/postinstall script to approve. Uninstall is dsh plugin --profile web remove @hjdd14/dsh-toolong-warning.
Compatibility
Needs DSH >= 0.1.7-rc.1 (@deepseek-ai/dsh) and Node.js >= 22.19, both stated as badges and repeated under Requirements. It is a UI-side plugin, so it reads the session's compaction events — compaction/start paired with a compaction/end that carries no error — and never mutates conversation state. Settings cover interface language and window placement, including desktop placement, and there are two scopes of edit (profile-level versus per-session) which the README explains rather than assumes. The rule design is deliberately conservative: the counter is always visible, and the warning card appears only when the threshold is met.
Details
- Repo: hjdd14/dsh-toolong-warning
- Category: Sessions & Messages
- Stars: 2
- Version: 0.3.0 (npm)
Alternatives
dream12347/dsh-session-manager · hy-sde/dsh-session-url · ishuowang/dsh-rolehub-bridge