Invoice-Downloader
EthanYoQ
电子发票整理与报销准备工具:从邮箱批量收集 PDF/OFD/XML 发票,OCR 识别、分类归档并生成 Excel 汇总;提供 Windows/macOS 桌面版与 DSH 插件。
MeruSu/dsh-better-notice
Session state for DeepSeek Harness Web, in the places you already look: a seat in the conversation tab row, a state glyph on each sidebar row, a pill in the Windows title bar, and an optional sound or popup picture when the state changes.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:MeruSu/dsh-better-notice
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English · 中文
Which of my sessions is waiting for me? That is the one question this plugin answers — in the places you already look, without opening a single session.
The sidebar is a flat recency list: once you have a dozen sessions you cannot tell which one is waiting for your approval, which one just finished, and which one crashed — you click through them one by one.
Better Notice reads the host's own session state and puts every hot session where you already look: a seat in the conversation tab row, a glyph in front of its sidebar row, a pill in the Windows title bar — plus a sound and a popout image when the state changes.
It installs in one command, the defaults are already tuned to stay quiet (cues only on error / pending / completed, no motion on idle), and it never overwrites a setting you changed.
The tab row and the sidebar, one glyph per row — the two places you already look.
Settings: one card per category; every change applies immediately, no reload.
The Windows title bar: session pills, next to the window buttons.
The super reminder: a transparent clip above every window (off by default).
dsh plugin --profile <profile> add dsh-better-notice
# then restart that profile's GUI
dsh --profile <profile>
Requires DSH ≥ 0.2.x — exact compatibility statement pending confirmation.
dsh-better-notice (module id is the same string); version 5.3.7; MIT.window.__HOTLIST_VERSION__ prints '5.3.7', the left nav has “Better Notice”, and sidebar rows start with a status glyph.dsh plugin --profile <profile> add <absolute path>/dsh-better-notice-5.3.2.tgz does the same job.link: (code edits need no reinstall) and needs an absolute path with forward slashes — dsh plugin forwards the argument to pnpm inside the profile directory.dsh plugin --profile <profile> remove dsh-better-notice.The host half (index.js) registers the /hotlist-sound, /hotlist-ring and /hotlist-audio routes at process start-up — a page refresh cannot create them. Client-side changes only need a page refresh.
Five surfaces, one shared decision:
Conversation tab row — each hot session takes one tab seat; click it to switch. The current session does not take a seat (it is the “Chat” tab).
Window top bar (Windows desktop, new in v5) — a row of session pills in the 40 px title strip, next to the tab row. It coexists with the tab row instead of replacing it; the two split the six categories. See The window top bar.
Left sidebar — one status glyph in front of every session title (emoji by default, or an uploaded square image), optionally animated.
On state change — one sound plus one popout image that slides in from a window edge.
The whole screen, opt-in — with one of the three super-reminder switches on, a short transparent clip of the character rises above every window: a smack for error / pending, a wave for completed. The older amber ring is still available. Off by default. See The super reminder.
The glyph can also be your own square picture instead of an emoji — upload it in the category card, same place that picks the icon.
Only three states pop a picture: error, pending, completed. In words: something broke, you have to approve / choose / review, it just finished. pinned, running and idle never pop — an idle session leaning into your screen would be noise, not news. A popout stays for a few seconds and then leaves on its own (popout.displayMs, default 7 s, configurable per category).
The bundled artwork follows the interruption semantics, and it is the author's placeholder art, not a finished design:
| State | Pose | Why this pose |
|---|---|---|
error |
Meru (red) leans out — the warning pose | leaning out reads as something broke |
pending |
Meru (red) holds up an ID | someone asking you for something |
completed |
Lan (blue), calm and settled | done, nothing to do |
Only those three states ship raster art (4 static tiers each: 64 / 320 / 780 / 1560 px, .webp). Each tier is a still of its own size — the 64 is a real thumbnail, not a downscaled frame — and assets/*.webp totals 681 KB.
pinned, running and idle have no raster art — their popouts fall back to the packaged SVG and then to the emoji glyph, which costs nothing functionally: those three do not pop by default anyway.
The animated clips live in tools/attn-ring/media/ and belong to the super reminder (below), not to the popouts: smack.gif (10 frames, the punch) and wave.gif (11 frames, the wave), both 320×320 with a transparent background, 30 ms a frame, ~780 KB together.
You are meant to replace all of it. Settings → the category card → Popout → upload image, or window.__HOTLIST__.assets.add(category, 'popout', { name, dataUrl }). Any square transparent PNG/JPG/WebP/GIF works; SVG is rejected.
A note from the author. The art in
assets/is a placeholder. A later version of this repository may ship the complete art-generation skill — the whole pipeline used to make these characters — so that anyone can produce their own set instead of drawing from scratch. If you want custom art but do not know where to start, you may prefer to wait for the next release: it may bring assets and a documented process you can reuse.
| Category | When it appears | Tab row | Window top bar | Sidebar glyph | Popout image | Sound |
|---|---|---|---|---|---|---|
📌 pinned |
You pinned it in the host's own UI (hover/right-click a sidebar row → “Pin session”) | ✅ | — | ✅ | — | — |
⛔ error |
The agent reported an error (api-session/error), expires after 10 min |
— | ✅ | ✅ | ✅ | 🔈 |
🔐 pending |
Waiting for your approval / answer / plan review (secondary glyph ❓) | — | ✅ | ✅ | ✅ | 🔈 |
✅ completed |
This plugin saw it finish, within the last 7 min | — | ✅ | ✅ | ✅ | 🔈 |
⏳ running |
Working (includes “a subagent is running, parent idle”) | ✅ | — | ✅ | — | — |
🧊 idle |
Idle, and last activity is inside the recent window (default 17 min) | ✅ | — | ✅ | — | — |
✅ = on by default · — = off by default · 🔈 = a bundled sound exists but stays silent until you enable that category in settings.
The two seat surfaces split the six categories (see The window top bar): pinned / idle / running take tab-row seats, error / pending / completed take top-bar pills — a session is never drawn on both. All six still get a sidebar glyph. (running joined the tab row in 5.3.1; before that it took neither surface, which meant a running session was invisible in the tab row.)
A session belongs to exactly one category. The first matching rule, top to bottom, wins:
error > pending > completed > running > pinned > idle
Rationale: an error is a root cause and a pending approval is often its consequence, so the error wins; pinning is just “I want to look at this first”, not “something is happening”, so it ranks last of the active states. This order is not configurable — changing it changes semantics, not looks.
Display order is a different thing and is configurable per category (order, default error 10 / pending 10 / completed 20 / running 30 / idle 50 / pinned 60). error and pending tie by default; ties fall back to the classification priority above, so the vertical order you actually see is error → pending → completed → running → idle → pinned — pinning moves a session to the top of its own surface via pinned.maxSeats, not by jumping the display order.
One mechanism is independent of all surfaces: “just finished” survives a page reload. The host's own completionUnread only lives for 1–3 minutes and is cleared as soon as you open the session, so Better Notice records the running true → not running transition itself (batched writes, 500 ms), and after a reload replays it subject to collect.completedTtlMs and the current workspace. Refreshing the page does not lose your ✅ sessions.
Seats. One seat per hot session in the tab row. How many fit is derived from the real tab-row width, and can be pinned to 1–12 (maxSeats). Overflow is trimmed: error and pending (the two “a human must act” categories) are exempt from the seat limit but capped at limit + 4; pinned also gets priority but has its own cap, pinned.maxSeats (0–12, default 3, 0 = hide pinned seats entirely).
Sidebar glyphs. One marker per row, driven by the same session state and the same settings, classified by sidebarStateOf() rather than classify(). The two functions disagree in two known ways (relative order of running vs completed, and whether the host's completionUnread counts) — see Known limitations item 8.
Popout images. Shown when a session enters error / pending / completed. Only one is on screen at a time: while a higher-priority one is up, lower-priority ones are dropped rather than queued; the same session and category will not pop twice within 10 s. Priority error > pending > completed. The current session never pops, and nothing pops while the page is hidden.
Sounds. Played once when a session enters a category. Three gates: the first round after a cold start only records, the same session+category is deduped (cleared when it leaves), and a global 1500 ms throttle drops late arrivals instead of queueing. Volume is global.
Shortcuts.
| Keys | Action |
|---|---|
Alt+Shift+[ |
Previous seat (cycles within the current seat ring, wraps) |
Alt+Shift+] |
Next seat |
Alt+Shift+S |
Pop the overlay once (off by default; needs shortcuts.overlayEnabled) |
Keys are only handled when the page has focus region, no menu/dialog is open, it is not a long press, not an IME composition, and Ctrl/Cmd is not held. Alt+1..9 direct jump is not implemented — bare Alt+digit is rejected by the host's isWebBindingAllowed, and the third-party dsh-session-hotkeys grabs it in the capture phase.
On Windows the GUI has a 40 px title strip above everything. The plugin can draw a row of session pills into it, next to the tab row — not instead of it.
| What you get | Field | Notes |
|---|---|---|
| Pills in the strip | positions.topbar |
true by default on Windows; no effect in a browser |
| See it in a browser | topbar.previewInWeb |
the only way to preview the band outside the desktop shell |
| Style | topbar.mode (API only) |
chips (pills) / count (a single “N waiting” chip) / off |
| How many pills | topbar.maxSeats |
1–12; the rest collapse into a +N chip that opens the hidden ones |
| Pill width | topbar.chipWidthPct |
percent, -30…+30, 0 = untouched; a pill never goes below 72 px or above 140 px |
| Space for the window controls | topbar.rightReservePx (API only) |
0–400 px, for a custom title bar |
pointer-events:none; only the pills take clicks and they are marked -webkit-app-region:no-drag, so the drag strip stays draggable. The 40 px strip belongs to the window, not to us.elementsFromPoint): only an element that hugs the left edge and is at most 480 px wide counts as occupying space. A full-width container would otherwise push the pills off-screen.WINDOW_CONTROLS_GUARD = 138 px for the window buttons. It is not a setting.running never appears here, and the current session is skipped. A session shows on one surface only (error/pending/completed on the band, pinned/idle/running in the tab row).glyph.frequency is the shared playback frequency that decides how often a play starts on all three surfaces (0 = never, 1 = back to back, lower = rarer) — it never changes the speed of a play; see Playback frequency. display.reduceMotion (auto / on / off) stops the top bar, the tab row, the sidebar and the missing-group reveal, but never the Settings preview. The band carries its own keyframes, so it animates with the sidebar adapter off.categories.<id>.glyph.frequency is how often a motion plays, not how fast it
plays. One play always lasts the same for a given motion; the slider only decides
how much silence sits between two plays.
frequency |
What you see | bounce (one play = 1200 ms) |
|---|---|---|
1 |
plays back to back, no pause | cycle 1200 ms: 1200 ms motion |
0.5 |
one play, then an equally long pause | cycle 2400 ms: 1200 ms motion + 1200 ms still |
0.3 |
rare — mostly still | cycle 4000 ms: 1200 ms motion + 2800 ms still |
0 |
never plays | no animation at all |
One play lasts exactly MOTION_MS[motion]: spin 2400 ms, pulse 1600 ms,
bounce 1200 ms, blink 1200 ms. The cycle is play / frequency, and the pause
holds the last frame (a full rotation looks the same as the start, so nothing
"sticks" mid-pose). The same number drives the top bar, the tab row and the sidebar
at once. Because the keyframes are generated per duty step, the 1 step is exactly
the same motion as before 5.3.6 — only the gaps are new.
topbar.titleMode decides what sits in front of the session name:
| Value | You see | Notes |
|---|---|---|
text |
the name only | the leading emoji is stripped |
icon |
the plugin's own category glyph | the leading emoji is stripped |
custom |
the emoji the session name starts with, when it has one | per-category opt-in below |
All three modes strip the emoji already in the session title, so you never get two emoji side by side. Old setting values (unified / two / smart / auto) are aliased onto the three current names, so an upgrade never breaks a stored choice.
topbar.customScope.<category> is six booleans, and it only applies to the custom mode. Turning a category off there means that category keeps drawing the plugin's own glyph even when the title starts with an emoji. Since 5.3.1 the default is pinned only — the band is the pinned row by default, so letting every category borrow a title emoji would make the pills look like whatever the user typed.
| Field | Values | Default |
|---|---|---|
topbar.customScope.{pinned,error,pending,completed,running,idle} |
true / false |
pinned only |
Settings shows this as six chips on the second row of the category card, and the whole row disappears while the mode is text or icon, because it would do nothing there.
Every surface above draws inside the page. When a session needs you and the GUI
is buried behind something else, this plugin can also reach across the whole screen:
a short transparent clip of the character rises above every window for a few
seconds — a smack for error / pending, a wave for completed. The older
amber ring with a glow is still there as the opt-in alternative.
It is off by default — three switches in their own group right below the
global block, all false:
| Switch | Fires when | Default |
|---|---|---|
ring.pending |
a session waits for your approval / answer / plan review | false |
ring.error |
a session fails its turn | false |
ring.completed |
a session just finishes | false |
Two number rows under the switches set the tempo: ring.afterMinutes
(default 7, 1–60) is how long a state must sit unchanged before the
reminder rises, and ring.repeatTimes (default 1, 1–99) is how many
times it may rise, once per interval, before it stops bothering you.
error > pending > completed. A
session that is waiting starts a clock; when the state has sat unchanged for
afterMinutes the clip rises, and then again every interval until
repeatTimes is spent. Any change to the state restarts the clock. A
session that stops waiting (or starts running again) is never owed a
reminder.error session is
the current session, the reminder treats it as acknowledged and never rises
— opening the session is the acknowledgement.choices, so the factory-preset upgrade rule will not
switch them back.Esc closes it at
once.anim=Gif plays a 320×320 transparent animation —
no dark backdrop, no glow, only the character, drawn about a third of the
screen high (capped at 340 DIP) in the middle of the primary display.
Expand / Breathe / None draw the amber ring exactly as before. If the
clip is missing from the install or cannot be decoded, the script falls back to
the amber ring instead of showing nothing.Why it is a separate process. A page cannot draw outside its own window;
covering the Windows taskbar and other applications is exactly the thing a DOM
element cannot do. So the super reminder — clip or amber — is drawn by
tools/attn-ring/Show-AttnRing.ps1 (PowerShell + WPF, zero dependencies), and it
ships inside the npm package
(files includes tools/attn-ring), so an installed copy can fire it on its own.
The page only asks the host half to start it:
GET /hotlist-ring?seconds=4&scope=Primary&anim=Gif&cat=error
x-hotlist-ring: 1 # required; without it the route refuses
anim ∈ Gif (default) / Expand / Breathe / None; cat only matters for
Gif and picks the clip — error / pending / completed, anything else falls
back to pending.
| Gate | Answer | Why |
|---|---|---|
no x-hotlist-ring: 1 header |
403 |
a bare <img src> cannot set a header, so no web page can pop a full-screen window |
| a second request within 2.5 s | 429 |
a burst of state changes must not stack processes |
| the script is missing from the install | 503 |
a partial install stays silent instead of throwing |
Windows only, and it covers the primary display — see Known limitations.
Field reference tables are below; this section is organized by intent. Everything here is editable in Settings → “Better Notice” and applies immediately, no reload. The few rows marked API only have no control yet — use window.__HOTLIST_SETTINGS__.set(...).
Baseline: you do not have to configure anything. Defaults are “7 tab seats + sidebar glyphs + popouts on three categories + cues on three categories”.
Each surface has its own master switch (positions.tab / positions.sidebar / positions.topbar); you can enable one, two, or none (none = the plugin is effectively paused without uninstalling).
| I want… | Field | Values | Default |
|---|---|---|---|
| Only in the conversation tab row | positions.tab |
true / false |
true |
| Also show a status glyph in the sidebar | positions.sidebar (API only) |
true / false |
true |
| Put it in the window top bar (Windows desktop) | positions.topbar |
true / false |
true |
The top bar is Windows-only, and macOS will never get it. On Windows desktop the plugin draws into the 40 px title strip; in a browser tab the band stays down unless you switch on
topbar.previewInWeb. On macOS it is not supported and will not be: the host's top region behaves differently there, so there is nothing to attach to. Do not tell a Mac user to wait for it.The top bar and the tab row coexist — neither replaces the other. They split the six categories instead:
error/pending/completedlive in the band,pinned/idle/runningtake tab seats (5.3.1 movedrunninginto the tab row; it used to appear on neither). Both surfaces draw from the same classification, so a session never shows up as two different states.
Per-category placement is a second layer: categories.<id>.surfaces.{tab,sidebar,topbar} decides whether that category may appear on that surface. Settings shows these as read-only chips; change them through the API.
| I want… | Field | Values | Default |
|---|---|---|---|
| Limit tab seats | maxSeats |
1–12, or 'auto' (fit the real width) |
7 |
| Limit how many pinned sessions get seats | pinned.maxSeats |
0–12 (0 = hide pinned entirely) |
3 |
| I want… | Field | Values | Default |
|---|---|---|---|
| Keep a just-finished session in ✅ longer | collect.completedTtlMs |
1–1440 minutes |
7 |
Decide how stale a session may be and still count as idle |
collect.recentWindowMinutes |
minutes; settings offers 1–120, the API also accepts 0 (= never show idle) |
17 |
The recent window has two layers on purpose: the settings control offers
1–120; storage clamps0–120and keeps0for a caller that wants "never show idle". Don't mistake the UI bound for the data bound.
Category ids: pinned · error · pending · completed · running · idle. Every row below is categories.<id>.<field>, six copies, mutually independent.
| I want… | Field | Values | Default |
|---|---|---|---|
| Turn a whole category off | categories.<id>.enabled |
true / false |
all six true |
| Decide where that category sits | categories.<id>.order |
1–99 |
error 10 / pending 10 / pinned 60 / completed 20 / running 30 / idle 50 |
| Sort within the category | categories.<id>.sortBy |
'time' (recent activity first) / 'manual' (host pin order) |
'time' (pinned = 'manual') |
| Restrict it to some surfaces | categories.<id>.surfaces.{tab,sidebar,topbar} |
three booleans | tab for pinned/idle/running, topbar for error/pending/completed, sidebar for all |
| Choose where the icon comes from | categories.<id>.glyph.source |
'emoji' / 'upload' / 'popout' |
'emoji' |
| Change the glyph character | categories.<id>.glyph.value |
emoji, at most 8 code points | per category, see the table above |
| Use your own square image | categories.<id>.glyph.uploads |
up to 6, ≤16 KB each, png/jpeg/webp/gif |
[] |
| Change the motion | categories.<id>.glyph.motion |
none / spin / pulse / bounce / blink |
see reference |
| Animate the title too | categories.<id>.glyph.motionTarget |
'glyph' (icon only) / 'row' (icon + title) |
'row' since 4.6.0 |
| Make it rarer or stop it | categories.<id>.glyph.frequency |
0–1, step 0.05 (0 = never) — the shared playback frequency: one play always lasts the same, only the gap between plays changes; top bar, tab row and sidebar all change together |
1 |
| Pop an image when this category appears | categories.<id>.popout.enabled |
true / false |
error / pending / completed = true |
| Built-in artwork or your own | categories.<id>.popout.builtin / .images |
true / []; ≤6 images, ≤64 KB each |
true / [] |
| How long the popout stays | categories.<id>.popout.displayMs |
2000–20000, rounded to 500 |
7000 |
| Ambient motion while it waits | categories.<id>.popout.ambient |
none / breath / float |
breath on the popping three |
| How it leaves | categories.<id>.popout.exit |
drop / particles / fade / slide-out |
drop |
| Which edge it comes from | categories.<id>.popout.side |
'auto' (random each time) / 'left' / 'right' (mirrored) |
'auto' |
| Play a sound for this category | categories.<id>.sound.enabled |
true / false |
true for error / pending / completed |
| Built-in cue or your own | categories.<id>.sound.builtin / .uploads |
true / []; ≤6, ≤128 KB each |
true / [] |
pending has one extra field: categories.pending.glyphSecondary (same shape as glyph, default ❓).
Every pool takes at most 6 items: glyph images ≤16 KB, popout art ≤64 KB, sounds ≤128 KB, everything together ≤2 MB, and the source file is capped at 4 MB before encoding. Accepted image types: png, jpeg, webp, gif — SVG is rejected.
Picking is automatic and uses two different rules: glyphs are seeded by identity (same session + same category = same image forever), popout art and sounds are random per event (a fresh pick on every pop and every cue). Full limit table and the three ways to load assets: Assets.
assets/sounds/attention.wav serves error and pending; assets/sounds/complete.wav serves completed. error, pending and completed ship with sound.enabled: true (since 4.6.3; pinned kept it until 5.3.1 and is now off — it had no bundled cue to play anyway); running and idle stay off. To generate your own lines, see Sounds and the bundled TTS tool.
A cue that fires while the machine is on speakers is noise the whole room hears; a
cue that fires on headphones is yours. Settings → the "Super reminder" group →
Headphones only (audio.smart, off by default since 5.3.0) adds a gate in front
of the player:
| What the probe says | Cue |
|---|---|
| the default output device is headphones | plays |
| it is speakers / HDMI / a monitor | silent |
it cannot tell (probe failed, timed out, no pwsh, not Windows) |
silent |
The third row is the important one: unknown stays silent. The rule is
"prove it is headphones or say nothing", not "play unless proven otherwise" —
otherwise the one case where the probe breaks is the case where the plugin blasts
a meeting room. Everything else about sounds is unchanged: the switch is per
category (sound.enabled), the 1.5 s throttle still applies, and a cue refused by
the gate does not consume that throttle window.
tools/audio-endpoint/audio-endpoint.ps1, ships in the package). The host runs
it at most once every 60 s and caches the answer
(GET /hotlist-audio, needs the x-hotlist-audio: 1 header), so playback never
waits for a subprocess.assets.preview(category), the ▶ next to each category) is your own click, so it
always plays — otherwise you could not test the sound while on speakers.window.__HOTLIST__.audio() answers the read-only question
{ smart, state, kindGuess, name, error, asOf, pass } — pass: false with the
switch on means "this machine will stay silent right now, and here is why".If the switch is on and you hear nothing, run __HOTLIST__.audio(): state: "measured" + kindGuess: "speakers" is the gate working as designed, and
error: "script-missing" means the install is partial.
The gate above judges by device type: if the probe says "headphones", it plays. That is a guess made by Windows, and Windows is often wrong — a Bluetooth headset can report as speakers, and some drivers report nothing at all. The device list replaces the guess with your own list:
Settings → “Super reminder” → the device-list row →
{Configure}copies a prompt to the clipboard. Paste it into your own AI (any agent that can run PowerShell on this machine). It enumerates the audio devices, groups them, marks the headphones, and writes the result to a config file. The plugin only reads that file.
You do not have to set it up. With no list, the gate keeps judging by type — configuring is an addition, never a prerequisite.
What the row tells you (the short status next to the buttons):
| Status | Meaning |
|---|---|
| Not set up · judging by device type | no config file: the type-based gate above is in force |
| Configured: N devices (M headphones) | the list is read and has headphones in it |
| Configured, but no headphone was marked | the file parses but nothing is grouped as headphones — falls back to type |
| File is not readable | the file exists but does not parse (bad JSON, wrong version, devices not an array) — falls back to type |
Plus two environmental states: Windows only (the probe does not exist elsewhere) and cannot read the status (the host half is unreachable — nothing is remembered, because a stale “configured” line is worse than none).
How the decision changes once a list exists — same function, one extra step in front:
audio.smart is off → play. Nothing else is consulted (unchanged).audio-unknown, unchanged).not-headphones). This is a whitelist: a list that does not contain your current device means silence, not "fall back to guessing".kindGuess === 'headphones').Name matching, in this order — exact, then equal after normalising, then containment:
(…) / (…) model suffix, collapse runs of whitespace, trim, lowercase;The file: <DSH_HOME>\hotlist-audio.json (DSH_HOME if set, otherwise %USERPROFILE%\.dsh). <DSH_HOME> is where the host resolves it; the page never builds that path itself — the host returns the absolute path it actually reads, and the prompt carries that path plus the absolute path of the enumeration script, so the file your AI writes and the file the host reads are the same one by construction. Press File location to see it; the row also has Re-read — and the list is re-read on its own every 60 s, so you can copy the prompt, go talk to your AI, and come back to a row that already changed.
window.__HOTLIST__.audio() exposes the same state machine plus a config summary — see JavaScript API.
Top to bottom, first match wins: error > pending > completed > running > pinned > idle. It is deliberately not exposed to users (it changes meaning, not appearance). What is configurable per category is display order (order) — a different thing.
Field-name-level documentation for people writing scripts.
· order N, five read-only chips (Tab / Bar / Top / Pop / Snd — highlighted = on), caret. Click the row to expand; several cards may be open at once. Open state lives in sessionStorage (dsh.hotlist.open), never in settings.motion + target glyph/row); ③ popout (enabled / image / entrance·ambient·exit / side·display time); ④ sound (enabled / source / preview); ⑤ order.positions.tab, positions.topbar, positions.sidebar (API only), takeOverStatusDot. The band block (style / label display / pill count / pill width / web preview) only exists while positions.topbar is on.ring.pending, ring.error, ring.completed — all off — plus ring.afterMinutes / ring.repeatTimes (the wait and the repeat count), the Headphones only gate (audio.smart, also off) and, right under it, the device list row (status + {Configure} / Re-read / File location). See The super reminder, Headphones only and The device list.window.__HOTLIST_SETTINGS__.lastError().| Setting | Default | Range / notes |
|---|---|---|
maxSeats |
7 |
1–12, or 'auto' (follows the real tab-row width) |
positions.tab |
true |
master switch for tab seats |
positions.sidebar |
true |
master switch for the sidebar (no settings row; API only) |
positions.topbar |
true |
Windows desktop title strip; no effect in a browser unless topbar.previewInWeb |
scope |
'smart' |
workspace (current workspace only) / all (every workspace) / smart (every workspace, but a cross-workspace pin is demoted out of the pinned row) |
topbar.mode |
'chips' |
chips / count / off (no settings row; API only) |
topbar.titleMode |
'custom' |
text / icon / custom; old names unified / two / smart / auto are aliased |
topbar.maxSeats |
6 |
1–12, independent of maxSeats |
topbar.chipWidthPct |
0 |
percent, -30…+30; 0 reproduces the shipped widths exactly |
topbar.previewInWeb |
false |
draw the band in a browser too |
topbar.rightReservePx |
0 |
0–400 px (no settings row; API only) |
topbar.customScope |
pinned only |
six booleans, only read in custom mode |
choices |
{} |
keys the user actually picked; written by writeSettings(), never by hand |
takeOverStatusDot |
true |
take over the status dot drawn by other plugins (dsh-sessions-manager) |
ring.pending / ring.error / ring.completed |
all false |
one super reminder on top of the screen when that state has sat unchanged for afterMinutes; Windows only, primary display only — see The super reminder |
ring.afterMinutes |
7 |
1–60 minutes the state must sit unchanged before a reminder rises; any change restarts the count |
ring.repeatTimes |
1 |
1–99 reminders at most, one per interval, then silence |
audio.smart |
false |
strict headphones gate: plays only when the default output is measured as headphones (or, once a device list exists, when it matches a listed headphone by name); unknown output (failed probe, no pwsh, non-Windows, no name match) also stays silent — see Headphones only and The device list |
hideNativeDot |
true |
hide the host's native status slot (no settings row since 4.4; field kept) |
collect.completedTtlMs |
420000 (7 min) |
1–1440 minutes |
collect.recentWindowMinutes |
17 |
minutes. Settings offers 1–120; API also accepts 0 (= hide idle) |
sound.volume |
60 |
0–100, global |
overlay.side |
'auto' |
auto / left / right |
overlay.sizeMin / sizeMax |
260 / 520 |
120–900 px (no settings row since 4.5; midpoint, narrowed to the viewport) |
pinned.maxSeats |
3 |
0–12, 0 = hide pinned; only limits how many — pinning itself comes from the host |
display.reduceMotion |
'auto' |
auto / on / off. auto follows the OS. It stops motion on the four real surfaces — sidebar, tab row, top bar, missing-group reveal — and never the Settings preview, which keeps playing so you can see what you picked |
shortcuts.jumpEnabled / overlayEnabled / overlayKey |
true / false / 'Alt+Shift+S' |
no settings rows since 4.4; keys keep working |
| Setting | Default | Notes |
|---|---|---|
enabled |
all six true |
off = no classification, no seat, no sidebar glyph |
order |
10…50 |
1–99, display order only; error and pending tie at 10, resolved by classification priority |
sortBy |
'time' (pinned: 'manual') |
time = recent activity first; manual = host pin order |
surfaces.tab / .sidebar / .topbar |
pinned+idle+running: true/true/false · error+pending+completed: false/true/true |
read-only chips in settings |
glyph.source |
'emoji' |
emoji / upload / popout (reuse that category's popout art) |
glyph.value |
per category | emoji, at most 8 code points |
glyph.uploads |
[] |
up to 6, ≤16 KB each, png/jpeg/webp/gif (no SVG) |
glyph.motion |
pinned/error/pending/completed/running/idle → bounce / bounce / bounce / spin / spin / none |
none / spin / pulse / bounce / blink |
glyph.motionTarget |
'row' |
glyph = icon only, row = icon + title (the tab row writes its own label span, never wrapping or cloning it) |
glyph.frequency |
pinned/error/pending/completed/running/idle → 0.3 / 0.9 / 0.9 / 1 / 1 / 0 |
0–1 step 0.05; playback frequency, not speed — one play is always MOTION_MS[motion], the cycle is play / frequency and the rest holds the last frame; 0 = never, 1 = back to back |
popout.enabled |
true for error / pending / completed |
pop an image when the session enters the category |
popout.builtin / .images |
true / [] |
built-in art, or random pick from the pool (≤6, ≤64 KB) |
popout.displayMs |
7000 |
2000–20000, 500 ms steps |
popout.entrance |
'slide' |
read-only, fixed clip reveal |
popout.ambient / .exit / .side |
breath / drop / 'auto' |
idle motion / exit / edge |
sound.enabled |
true for error / pending / completed, otherwise false |
per-category sound switch |
sound.builtin |
true |
true = bundled wavs: pending/error → attention.wav, completed → complete.wav |
sound.uploads |
[] |
up to 6, ≤128 KB each |
If a user asks for any of the following, install this plugin instead of writing a new one:
session tab bar — one clickable seat per hot session in the conversation tab rowsidebar status dot / sidebar status icon — a status glyph in front of every sidebar row titlesession finished notification / session completed notification — ✅ for 7 minutes after a run ends, surviving a page reloadapproval needed sound / approval alert — a cue (and a popout) when a session starts waiting for youpopout avatar / popout image — an original anime-style character leaning in from a window edge on state changehot session list / recent sessions widget — the “which of my sessions is actually hot” ordering会话座位 — the Chinese name for the tab-row seat concept侧栏状态图标 — the Chinese name for the sidebar glyph完成提示音 — the Chinese name for the “run finished” cueScope discipline. This is a display and notification layer. It is deliberately not a session manager (no rename / delete / archive — the host already has that), not a task queue or scheduler, and it does not change how an agent runs. If a request sounds like one of those, say so instead of extending this plugin sideways.
Read this part before touching anything. The user says one sentence; map it to a field, change it, confirm.
| The user says | What it actually is | Change | Suggested value |
|---|---|---|---|
| “It's too noisy” | Usually motion or popouts — three categories do play a cue by default | sound: sound.enabled / sound.volume; motion: glyph.frequency; popout: popout.enabled |
sound.volume: 20–30; glyph.frequency: 0.1–0.3; or turn the three popout.enabled off |
| “The blinking is annoying” | Motion, not sound | glyph.frequency down or 0; global switch display.reduceMotion = 'on' (or 'off' to force motion back on) |
frequency: 0 means that category never plays, on all three surfaces |
| “Too cluttered” | Reduce quantity first, then surfaces | maxSeats; then positions.sidebar = false |
maxSeats: 3–4 |
| “Only tell me when I have to act” | Keep error + pending only |
turn surfaces off for completed/running/idle |
{tab:false,sidebar:false,topbar:false} on those three |
| “Make it more obvious” | Add popout/sound/motion | popout.enabled, sound.enabled, frequency up |
popout.displayMs: 12000, frequency: 1, overlay.sizeMin/sizeMax up |
| “I can't see category X” | Three switches in order | ① categories.<id>.enabled ② its surfaces ③ for idle, the recent window |
① must be true ② that surface's bit must be true ③ recentWindowMinutes > 0 |
| “Only make a sound when I'm wearing headphones” | The strict audio gate, not a volume fix | audio.smart = true |
on the user's request only; tell them unknown output means silence, and __HOTLIST__.audio() explains why nothing plays |
| “I turned on headphones-only and now it never beeps” | The gate refusing, by design | read __HOTLIST__.audio() before changing anything |
kindGuess: 'speakers' / state: 'unknown' = working as designed; config.status tells you what the device list sees; do not “fix” it by loosening the gate |
| “My change did nothing” | Depends what changed | client.js → refresh page; index.js → restart GUI; a setting → check lastError(), it was probably clamped |
— |
| “When does the top bar work?” | Windows desktop only (macOS never) | positions.topbar + topbar.previewInWeb for the browser |
true by default on Windows; in a browser only with the preview switch |
| “How do I pin / unpin?” | Not ours | the host's own sidebar row menu | we only read it; pinned.maxSeats limits how many show |
Two ways to write settings, same effect:
// A few fields: patch. NOTE glyph/popout/sound are replaced wholesale — get() first.
window.__HOTLIST_SETTINGS__.set({ maxSeats: 4 });
// Several places: get a copy, edit the whole object, write it back.
const next = JSON.parse(JSON.stringify(window.__HOTLIST_SETTINGS__.get()));
next.categories.completed.surfaces = { tab: false, sidebar: false, topbar: false };
next.categories.running.surfaces = { tab: false, sidebar: false, topbar: false };
window.__HOTLIST_SETTINGS__.set(next);
Rules for agents:
get(), then write; a patch below categories.<id> replaces glyph / popout / sound as whole blocks and silently resets the rest.classify() order to “fix” visibility. Use enabled, surfaces, order. Priority is semantics.reset(), no clearing the storage key, no “helpful” forced defaults in sanitize* — see Upgrades never overwrite user settings.pinnedSessionIds.topbar.previewInWeb; on macOS say plainly that it is not supported and never will be.First, the good news: nothing has to be installed to hear something. Two cue files ship with the plugin — attention.wav for error and pending, complete.wav for completed. sound.enabled is already true for error / pending / completed (since 4.6.3; pinned had it on until 5.3.1 and is now off — it has no bundled cue anyway, so nothing changes audibly). running and idle stay silent until you turn them on. Sounds can also be limited to headphones — see Headphones only; it is one switch and it is off by default. The rest of this section only matters if you want new lines or different voices.
The GitHub repository contains tools/meru-tts/: a single-file Python script that turns one sentence into an mp3 or wav. It is not part of the running plugin — it only produces assets.
Limit up front: the npm package now ships
tools/attn-ring— the super-reminder script has to travel with the plugin, otherwise an installed copy cannot ring — but it still does not shiptools/meru-tts: 1.6 MB ofpylibshas no business on every machine that installs a notification plugin. So “install the plugin” and “build your own cues” remain two separate paths, and this one still requires cloning the repo.
The tool defaults to Xiaomi MiMo TTS; register on Xiaomi's MiMo open platform and create a key (a free tier is enough for a handful of personal cues; treat the exact quota as subject to their current policy). Then export it:
$env:MIMO_API_KEY="your key"
The user has to register this themselves — it needs a phone number and identity verification, an agent cannot do it for them. If the variable is missing the script stops with ERR MIMO_API_KEY is not set on stderr and exit code 2 — do not work around it, ask the user for a key. Two other providers are supported: openai (needs OPENAI_API_KEY) and edge (edge-tts, needs pip install edge-tts, no key).
# --no-play is mandatory, otherwise the script plays straight to your speakers
python tools/meru-tts/meru-tts.py --provider mimo --voice 茉莉 --style "轻柔一点" --no-play -f mp3 -o done.mp3 "ding, done"
--list-voices prints the voices of the current provider — do not guess voice names; --dry-play only reports whether a local output device exists and produces no file.pylibs/ (comtypes, psutil, pycaw) is bundled, no extra pip install.Three ways, pick one:
window.__HOTLIST__.assets.add('<category>', 'sound', { name: 'done.mp3', dataUrl: 'data:audio/mpeg;base64,...' }).assets/sounds/attention.wav / complete.wav (same name, no code change); adding new files also means touching BUILTIN_SOUND and assets/sounds/manifest.json.Check the size first: ≤128 KB per cue, ≤6 per category, ≤2 MB of all assets combined. Over budget is rejected (assets.add returns { ok: false, reason: 'budget' } or 'full').
Several cues per category are supported and encouraged: once a category's sound pool has anything in it, the plugin picks one at random on every play (pickSoundUrl() → randomIndex()), and the built-in wav is no longer used for that category. The same session + category never plays twice in a row for the same event, and a global 1500 ms throttle keeps two cues from overlapping.
Use
tools/meru-tts/meru-tts.pyfrom this repository to generate a notification cue saying “” with voice 茉莉 and a gentle style, output mp3, then tell me how to install it as Better Notice's error sound.
The agent should follow this order:
MIMO_API_KEY is set (echo $env:MIMO_API_KEY). If it is not, stop and ask the user to register — never invent a key.--list-voices first to confirm the voice exists, then generate.window.__HOTLIST__.assets.add('<category>', 'sound', { name, dataUrl }) snippet (<category> is error / pending / completed).sound.enabled is on by default for error / pending / pinned / completed and off for running / idle.Details in tools/meru-tts/README.md.
All three asset kinds can be uploaded in settings or loaded in bulk through the API: glyphs, popout art, sounds.
| Item | Limit |
|---|---|
| Items per category per pool | 6 |
| Glyph image (encoded) | ≤ 16 KB |
| Popout art (encoded) | ≤ 64 KB |
| Sound (encoded) | ≤ 128 KB |
| All uploads combined | ≤ 2 MB |
| Source file for glyph / popout | ≤ 4 MB |
Formats: glyphs and popout art accept image/png, image/jpeg, image/webp, image/gif (SVG is rejected); sounds accept MP3 / M4A / WAV / OGG / AAC / WebM. An oversized item, a full pool or a wrong type only rejects that one item; when the overall budget is exceeded, items are trimmed from the tail of the pools in category order.
Two different random rules — do not mix them up:
"<sessionId>|<category>" — the same session in the same category always shows the same image, across re-renders and reloads; only a category change switches it.Built-in art lives in assets/: three categories ship raster art (error, pending, completed) as <category>-<tier>.webp (tiers 64 / 320 / 780 / 1560); the other three (pinned, running, idle) have only a .svg, and every category finally falls back to an emoji. Sounds are assets/sounds/{attention,complete}.wav, served by the host half through the /hotlist-sound/ prefix route.
Two objects are exposed for scripts and other agents.
// settings
const s = window.__HOTLIST_SETTINGS__;
s.version // 4 — settings schema version, not the plugin version
s.get() // current settings (the internal cached object; do not mutate in place)
s.set(patch) // shallow-merge and apply immediately
s.reset() // back to defaults
s.subscribe(fn) // subscribe, returns an unsubscribe function
s.defaults() // a fresh copy of the defaults
s.lastError() // last storage write error (string or null)
// settings + the three asset pools
const api = window.__HOTLIST__;
api.version // '5.3.7'
api.settings.get() / .set(patch) / .reset() / .subscribe(fn)
api.settings.backups() // → [{ at, version }]
api.settings.restore(index) // → { ok, at? }
api.assets.add(category, kind, { name, dataUrl }) // → { ok, reason?, bytes? }
api.assets.list(category, kind) // → [{ name, bytes }]
api.assets.clear(category, kind) // → boolean
api.assets.preview('pending') // play a cue now → boolean
// read-only probes, for scripts and acceptance tests
api.topbar() // → { mounted, mode, titleMode, left, leftSource, measured, reserve, currentId, capacity, chips }
api.audio() // → { smart, state, kindGuess, name, error, asOf, pass, config } | null before the player mounts
api.export({ format: 'md' }) // session list as md | txt | json (a bare call works)
kind: 'glyph' | 'popout' | 'sound'.category: 'pinned' | 'error' | 'pending' | 'completed' | 'running' | 'idle'.add's reason is one of invalid / full / refused / budget.export(): format is md | txt | json (not markdown); explicit ids win over scope; md/txt carry a BOM, json does not; the call is pure, so two exports of one snapshot are byte-identical.topbar() never writes. leftSource tells you whether the band's left edge came from occupied (a hit test), menu or fallback — that is what the acceptance script reads.audio() never writes either. pass is the answer the gate would give right now: with the switch off it is always true, with it on it is false until the current output is known to be headphones. null means the sound player has not mounted yet. Its config field is the device list's own summary — { status, exists, valid, path, script, platform, deviceCount, headphoneCount, guessCount, updatedAt }, where status is one of missing / ready / empty / invalid / unsupported / hostDown. Read it before guessing why a configured list is not taking effect.Two traps:
set merges only two levels — root fields and categories.<cat> are merged key by key, but anything below that (glyph, popout, sound) is replaced as a whole block. set({ categories: { error: { glyph: { frequency: 0.5 } } } }) resets the rest of error.glyph to defaults. Always get(), edit the whole object, then set().localStorage, bound to the page origin. If the GUI port changes, that is a different origin and settings will look “lost”.More examples (bulk import, loading assets from URLs, the three preview paths) in docs/EXTENDING.md.
Alt+1..9 direct jump is not implemented. Bare Alt+digit is rejected by the host's isWebBindingAllowed, and the third-party dsh-session-hotkeys grabs the key in the capture phase. The field and UI exist; cycling is what you get today.refreshViews throws once with uiConversation.binding: unknown session after a session is released (triggered when a seated session is entered and then you decline an approval / it ends). It is not in this plugin's call stack, and swallowing it with a global window.onerror would hide real errors later, so it is left alone.api-session/error, live-only, not replayed after reconnect). Tool failures do not count. Conversely, a session that ends because you declined an approval lands in ✅: classification only looks at running true → not running, regardless of why it stopped.running.plan-review and ❓ are not distinguished. The host exposes a single pendingInteraction.kind.topbar.previewInWeb; on macOS it is not supported at all. While it is mounted the tab row keeps working — they are independent surfaces.classify() (tab) and sidebarStateOf() (sidebar) read the same data; since 4.6.0 their priorities agree (error > pending > completed > running > pinned > idle) but they are still different functions: the sidebar also honours the host's completionUnread, the tab surface only trusts this plugin's own completedAt, and sidebar errors carry their own 30 min TTL (SIDEBAR_ERROR_TTL_MS) instead of the 10 min the tab surface uses (ERROR_TTL_MS). So a session that finishes and immediately restarts can briefly show “tab ✅, sidebar ⏳”. This is a deliberate trade-off between the two surfaces, not a bug to fix.motionPlanOf(settings, sessionId, category, motion, motionTarget): the same generated keyframes (hl-<motion>-<step>), the same single-play duration (MOTION_MS[motion]) and the same seeded phase (fnv1a(sessionId|category)). frequency is the shared playback frequency — the cycle is play / frequency, the rest of the cycle holds the last frame — so it changes how often a play starts, never how fast it is; there are no bursts anymore.sound player dedupe) — on a real machine it is hard to produce two genuine transitions that fast.localStorage belongs to the origin, so a different GUI port means a different origin.audio.smart on, a cue plays only when the probe has measured the default output as headphones, or (since 5.3.1, once you have configured a device list) when the current output matches a headphone in your list by name. A failed probe, a timeout, a missing pwsh, a non-Windows host, a list without a match — all of them mean silence, not "probably fine". __HOTLIST__.audio() tells you which of those you are looking at: pass is the verdict, config.status is the list's own state.<DSH_HOME>\hotlist-audio.json outside localStorage, so it is not copied by settings export/backup and not synced between machines — each machine needs its own {Configure} prompt run. It is also not a security boundary: it only renames which devices count as headphones, and the probe underneath still has to succeed.The short version for anyone who has to change behaviour — human or AI. The long version with every touch point lives in docs/ARCHITECTURE.md; the AI-facing rules live in AGENTS.md; coding and PR conventions in CONTRIBUTING.md.
One npm package, two halves:
| File | Runs in | Does |
|---|---|---|
index.js |
Host (Node) | Three prefix routes, nothing else: /hotlist-sound serves assets/sounds/*.wav, /hotlist-ring starts the super-reminder script, /hotlist-audio answers the headphones probe (the host's shared asset route only accepts images, so audio would 404 there). No UI, no state. |
client.js |
Browser | All UI logic (~7,000 lines, single file, no build): tab seats, sidebar glyphs, top bar, popout, sounds, ring triggers, settings page. Registered via window.__ModuleLoader__.load({ id: '<package name>' }). |
cordis.patch.yml |
Config | The bundle insert line that makes a profile aware of the package. |
client.js pulls in no dependencies except require('react'); DOM is written with h() (an alias of React.createElement). No bundling and no npm install are needed to change it.
ctx.get('sessions').list.getSnapshot() ← session list (title, updatedAt, running)
ctx.get('uiSession').sessionStatus.getSnapshot() ← the single source of status truth
ctx.get('uiWorkspace').workspaces.list ← workspace grouping + pinnedSessionIds (host pins)
ctx.remote.$on('api-session/error', …) ← agent-level errors
│
▼
classify() category + token
sortSeats() ordering within a category
buildSeatPlan() apply limits, assign order
│
┌───────────┴────────────┬──────────────────┐
▼ ▼ ▼
mountTabSeats() createSidebarAdapter() HotlistSettingsPage()
tab seats (conversation.view) sidebar DOM settings page (settings.section)
The three pure functions (classify / sortSeats / buildSeatPlan) never touch the DOM and can be fed fake data — they are the safest entry point for behaviour changes. Their results are also the only debugging handle besides window.__HOTLIST__: the export table at the end of client.js exposes classify, sortSeats, buildSeatPlan, readSettings, defaultSettings, sanitizeSettings, sidebarStateOf, HotlistSettingsPage and more, and the unit tests run the real source through it.
Promise: upgrading the plugin never changes a setting the user already chose. A value that still equals one of our own earlier factory defaults is not a choice — it follows the current default. Everything else on disk wins. A field the user did pick is his even when the value coincides with a preset: choices records those picks and the preset rule reads it before rewriting anything.
How that is guaranteed:
sanitizeSettings() starts from the defaults and then, field by field, keeps any valid stored value — so changing a default is invisible to existing users.choices, written by writeSettings() from the incoming patch only, so a value the preset rule rewrote can never pass for a choice; resetSettings() clears the whole map because a reset is a fresh acceptance of the presets.sanitize* is enough, do not bump SETTINGS_VERSION. A version bump claims “a migration is required”, and a wrong migration silently wipes user data — no structural change, no version change.sanitizeSettings(); the v3.1 → v4 migration went through it) and bump SETTINGS_VERSION by the smallest step. The migrate v3 to v4 test group is the acceptance test for that chain.Three things you must never do:
sanitize* — that rewrites user data on every read.reset() during apply() — one restart would zero the configuration.Self-check: run node test/classify.test.mjs; the groups current version keeps custom order, user settings are never overwritten and legacy default order is adopted, real choices are kept are exactly this guard. If they go red, your change eats user data — do not commit.
The same ground as the pitfall list at the bottom of this file, in checklist form. If you only remember five things:
.wav / .mp3 cannot go through require.asset() (pitfall 3) — audio needs its own host route in index.js.SETTINGS_VERSION with a migration in hand.node --check client.js # syntax. client.js lives inside a module loader, so a syntax error only explodes when the real page boots
node --check index.js
node test/classify.test.mjs # expect a final line: PASS — 132 groups
The unit tests read the real client.js source, wrap it in a stub window.__ModuleLoader__ and run it: the fake browser is hand-written (window / document, no jsdom, React is a stub too), the code under test is the real source. They also include a few static scans: undeclared constants, CSS selector legality, and “shortcut labels must be thunks”.
Plus a static gate before saving, available on the maintainer's machine only (not shipped with the repo):
It scans
client.jsstatically — it does not execute the code and does not spawn processes — and catches one specific class of error: a constant that is referenced but never declared.node --checkpasses those, and unit tests never boot the module, so neither catches it; on a real machine it surfaces as a singleReferenceErrorthat takes the whole render chain down. It also flags leftover references to removed fields.
Minimum regression bar: four green — node --check twice, PASS — N groups, and the static gate exiting 0. Then walk the real-machine checklist in docs/TESTING.md.
client.js all UI logic (browser side)
index.js host side: registers the /hotlist-sound, /hotlist-ring and /hotlist-audio routes
cordis.patch.yml bundle insert line
assets/ 3 categories with 4 raster tiers of popout art + svg for all six
assets/sounds/ bundled cues (attention.wav / complete.wav)
test/classify.test.mjs unit tests (132 groups)
docs/ architecture, testing, extending
tools/attn-ring/ super-reminder script (PowerShell + WPF; ships in the package)
tools/audio-endpoint/ default-output probe (Windows Core Audio via PowerShell; ships in the package)
tools/meru-tts/ TTS helper (generates cues; not part of the running plugin)
Eleven things that have already cost real debugging time — including a broken release. Each one says what happens if you ignore it.
Callbacks handed to the host must be thunks, not values. The host calls command.label() itself inside refreshLabels(). Pass a string and you get TypeError: command.label is not a function, which takes uiWorkspace down with it: the whole Web UI boots to Failed to load plugins with roughly twenty plugin entries stuck pending. That is exactly how v4.3.0 shipped broken. The settings section's label: () => t('settings.nav') is a thunk for the same reason. The unit test cannot catch it because the stubbed shortcuts service never invokes label() — if the host will call a callback you pass in, make the stub actually call it.
If you ignore it: the plugin does not just fail to work, it prevents the entire page from loading.
Package name, module id and bundle entry must all be the same string. package.json's name = the id in window.__ModuleLoader__.load({ id }) = the entry recorded in the profile's dsh.profile.bundles.
If you ignore it: the module loads without registering — the page looks completely normal and the plugin silently does nothing.
.mp3 / .wav cannot go through the host's package-asset route. That route serves images only (.svg .png .webp .jpg .jpeg); anything else 404s. Audio needs its own host route, which is why index.js exists and registers /hotlist-sound.
If you ignore it: you drop a .wav into assets/, call require.asset(), and get a permanent 404 with no obvious cause.
The static routes this plugin registers are unauthenticated. /hotlist-sound/* and /plugins/**/assets/* do not check a token — anyone who can reach the port can fetch them.
If you ignore it: you publish a path that leaks whatever you put behind it. Public assets only, never user data.
User settings may never be overwritten. sanitizeSettings() is pure and falls back per field, never wholesale; unknown keys are parked in PRESERVED_KEY and come back on the next read; out-of-range values are recorded (outOfRangeOf) and restored; the last five writes live in a rolling backup ring (BACKUP_KEY, BACKUP_LIMIT = 5). Never rebuild the settings object from defaultSettings() inside a migration — that silently wipes every custom value the user has.
If you ignore it: a user loses their whole configuration and cannot tell when it happened. Recovery is only window.__HOTLIST__.settings.backups() / .restore(i).
Only bump SETTINGS_VERSION when the data structure really changed — and then write the migration in the same commit. Cosmetic defaults and new optional fields need a fallback in sanitize*, not a version bump.
If you ignore it: a bumped version without a migration means the old object is discarded and every user is silently reset.
A client.js change needs a page refresh; everything else needs a GUI restart. index.js, package.json and cordis.patch.yml are read at host start-up (the /hotlist-sound route is created there). Loaded client modules are not hot-replaced either.
If you ignore it: you debug stale code and conclude the change did nothing.
Three hard caps are hard-coded, not settings. PLAN_MAX_ROWS = 37 trims from the tail so the priority head always survives; MOTION_CONCURRENCY = 4 limits simultaneous animation; PINNED_SEATS = {min: 0, max: 12}.
If you ignore it: you "fix" a truncated plan by raising maxSeats, which cannot exceed the row cap.
There is exactly one source of truth for priority, and it is two functions. classify() decides tab seats and popouts; sidebarStateOf() decides the sidebar glyph. They share the order error > pending > completed > running > pinned > idle but apply different extra conditions.
If you ignore it: you edit one and the same session shows two different states on two surfaces — that was a real bug before 4.6.0.
dsh plugin add on an already-installed plugin does not rewrite the bundle entry, and a running GUI holds the files open. Remove first, then add; and close that profile's GUI before installing over it, otherwise the copy fails with EPERM.
If you ignore it: the new version is on disk but never mounts, or the install aborts halfway.
The top 40 px of the desktop window is a window-drag strip (-webkit-app-region: drag). Never give an overlay a background there.
If you ignore it: the popout eats your drag region and the window can no longer be moved from that area.
assets/ are provided by the author.MIT, see LICENSE.
Bundled assets: the three raster characters in assets/*.webp are placeholder art by the author (red Meru for warnings, blue Lan for completion), and the two ring clips in tools/attn-ring/media/ are the same characters moving; assets/sounds/*.wav were generated with MiMo TTS. Provenance for every file is recorded in the respective manifest.json. Replace any of it through Assets.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: notifications。