Skip to main content
C

dsh-tobottom-pulse

chrisganbare/dsh-tobottom-pulse

Replaces the chat's scroll-to-bottom button with three waving dots while a session is running, and shows the arrow again on hover.

Install

dsh plugin --profile web add github:chrisganbare/dsh-tobottom-pulse

README

Scroll-to-latest ticker

Gives the chat's floating scroll-to-bottom button a running state that matches OpenAI Codex: while the session runs, the circle widens into a pill of three waving dots; hovering narrows it back to the arrow so the click target stays obvious.

Install

Installs straight from source — plain JavaScript, no build step and no npm package. In the plugin page, Add plugin, and give the repository https://github.com/ChrisGanbare/dsh-tobottom-pulse, then Enable now. Or from a shell:

dsh plugin --profile <profile> add github:ChrisGanbare/dsh-tobottom-pulse

A fresh client module generation needs one app restart the first time; a later update of the same bundle reloads on its own.

How it works

The bundle ships no UI of its own. Its Client module injects one stylesheet and targets the control the Chat already renders:

SignalSource
the buttonbutton[class*="_toBottom"] inside the Chat frame
session running[data-chat-running]:not([data-holding]) in the same frame
stylesheet teardownctx.effect removes the <style> when the bundle unloads

Class names are CSS-module hashes, so selectors use their stable suffix rather than a full name. No request, no session data, no DOM structure of its own.

Behavior

  • Running, pointer away: 42 px pill, three 4 px dots, 1 s wave, 100 ms phase shift.
  • Running, hover: the chevron returns; the pill stays 42 px. Narrowing it would shrink the button's own hit area, and a pointer in the outer band would then leave the control, cancel the hover and widen it again — an oscillation. Codex avoids that with a two-box control (fixed hit area, shrinking inner pill); a stylesheet cannot split the two without adding markup this plugin is not allowed to add.
  • Not running: unchanged shipped control.
  • prefers-reduced-motion: reduce: dots visible but still, no width transition.
  • Touch and pen (hover: none): the dots stay, since nothing can hover the control.

Development notes

client.js is loaded through window.__ModuleLoader__.load(...) and evaluated as a classic script in the page's global scope — not as a module, and with no scope isolation. A const at the top level therefore lands in the global lexical environment and shadows that name for every other script on the page.

That is not hypothetical: 1.0.0 declared const CSS for the stylesheet text, which replaced the platform's CSS.escape / CSS.supports namespace for the whole page and broke a third-party skin (CSS.escape is not a function, thousands of times per minute). 1.0.1 wraps the whole implementation in one IIFE, so nothing but window.__ModuleLoader__.load(...) is evaluated at the top level.

Rules to keep it that way:

  • Put every declaration inside the IIFE. No top-level const, let, var, class, or function — the IIFE is the only top-level construct allowed.
  • Keep the file dependency-free and build-free; it is installed straight from source.
  • Run npm run check and npm test before committing. scripts/check-global-leaks.mjs scans for brace-depth-0 declarations, skipping strings, comments, template literals and regex literals; scripts/test-client.mjs loads the real file into a vm page and fails if it adds or replaces a page global, keeps a stale stylesheet across applies, or breaks the loader/effect contract.
  • The reasoning behind the unusual choices (the IIFE, the fixed hit area, the DOM contract) is recorded in docs/DECISIONS.md; what was actually measured, and what was not, is in docs/VERIFICATION.md; installation, the restart rule and the market-entry process are in docs/RELEASE.md.

Limitations

Verified on DeepSeek Harness 0.2.2-rc.5 (Windows desktop). engines.dsh claims >=0.2.2-rc.5; other versions are untested — see docs/VERIFICATION.md.

  • Depends on the shipped DOM: the _toBottom / _toBottomSlot class suffixes and the data-chat-running / data-holding attributes. A DSH release that renames them disables the effect silently; the button itself keeps working.
  • Chat views nested inside each other cannot be told apart by CSS: an outer frame that contains a running inner chat will match the inner chat's running row too. The shipped layouts are siblings, so this stays theoretical until a Chat is rendered inside another Chat.
  • A running row that the host hides with display: none still counts: CSS cannot query a computed display value, so the dots follow the published attribute, not the pixels.
  • Style-only; it cannot add the three dots next to other elements or move the control.
  • Turning the bundle off removes the stylesheet immediately.

Related plugins