rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
aaronlei/dsh-width-tiers
A client plugin for the DeepSeek Harness Web GUI that adds chat content width tiers with a floating picker button (bottom-right, above the composer): 标准 / 中等 / 宽 / 超宽 / 全宽 (standard / medium / wide / ultra / full).
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:aaronlei/dsh-width-tiers
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Chat content-width tiers for the DeepSeek Harness Web GUI.
| Tier | Content width | Sidebar |
|---|---|---|
| Standard 标准 | App default: max(680px, min(column × 0.64, 920px)) |
unchanged |
| Medium 中等 | 1120px | unchanged |
| Wide 宽 | 1280px | unchanged |
| Ultra 超宽 | 1400px | unchanged |
| Full 全宽 | max(640px, column − 176px) |
collapsed to icon rail |
| Custom 自定义 | width recorded from a native drag | unchanged |
Fixed and custom widths are clamped by the app to
max(640px, column − 176px); the standard tier follows the app default
(680–920px). On a narrow window a wider fixed tier therefore behaves like
full, and the menu shows the reachable maximum for fixed tiers (1280px
reads 640px on an 800px column).
--dsh-chat-user-width and
dsh.conversation.contentWidth), so the built-in drag handles keep working.locale/<lang>.json).prefers-reduced-motion.full collapses the left sidebar, and
you can expand it again at any time.dsh plugin --profile web add dsh-width-tiers
Restart dsh web, then hard-refresh the page. A six-bar picker appears at the
bottom-right.
For a local checkout:
dsh plugin --profile web add link:/path/to/dsh-width-tiers
Custom before the first drag opens a guide at the right edge; drag
a native handle to record a width.Custom; the plugin steps aside while
you drag.Standard clears the width preference and returns to the app default.Full collapses the left sidebar; the icon rail stays available.shell.overlay slot; the plugin fiber
owns the controller lifetime, so no listeners or timers outlive it.--dsh-chat-content-width
(prefers [data-conversation-content], skips the right sidebar's embedded
conversation), then writes --dsh-chat-user-width on its parent.max(640px, column − 176px).ResizeObserver so full follows sidebar, rightbar
and window changes.ctx.layout and registers copy through ctx.locale.web profile (shell.overlay slot and slots service).--dsh-chat-* variables, data-width-handle, layout/locale services.data-sidebar-drawer) is open and follows the on-screen keyboard.pnpm install
pnpm build # src/ -> lib/ (host entry + loader-wrapped client bundle)
pnpm typecheck
pnpm test # vitest: controller (jsdom) + picker component suites
pnpm verify:client
The sources live in src/ (src/index.ts is the no-op host entry, the
feature lives in src/client/); lib/ is the built, published payload. The
vitest suites import the sources directly: the controller runs under jsdom and
the picker is rendered with Testing Library, so no live DSH instance is
required. verify:client checks the built bundle contract. Development needs
Node 22+ and pnpm.
MIT — see LICENSE. Copyright (c) 2026 aaronlei.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek。