# Changelog All notable changes to **DSH Whale Pet** are documented here. ## [v1.10] - 2026-08-23 ### Fixed - 服务启动加 `--no-open`:新版 dsh(0.1.1+)启动默认会自动打开浏览器,导致"先弹网页再开 PWA 窗口"的双窗口问题;现在开窗完全由桌宠控制(PWA 窗口),不再多开 Chrome 标签页。 - `start-dsh.ps1` 同步加 `--no-open`。 ### 开关说明(入口) - **dsh 侧开关**:`dsh web` 默认自动打开浏览器;加 `--no-open` 则不开(`dsh web --no-open`)。想自己手动开浏览器时,不加该参数即可。 - **桌宠侧行为**:桌宠固定以 `--no-open` 启动服务,开窗由桌宠统一控制——优先打开 Chrome PWA 独立窗口(`pwaShortcut` 配置项),未找到快捷方式时回落到默认浏览器。 - **自定义**:修改 `dsh-whale-pet.conf` 的 `pwaShortcut` 可控制用哪个 PWA/浏览器打开;置空则始终用默认浏览器打开。 ## [v1.9] - 2026-08-23 ### Changed - 服务进程**完全隐藏控制台窗口**(`CreateNoWindow`),不再弹出空窗口;输出全部写入 `dsh-server.log` 日志。 ## [v1.8] - 2026-08-18 ### Fixed / Added (diagnostics for the "first launch after boot hangs" issue) - 服务启动改为**输出重定向到日志**(`dsh-server.log`),窗口空白也能看到服务实际输出。 - 新增启动日志 `dsh-launch.log`(记录启动命令与时间)。 - 启动等待超过 30 秒时托盘弹出"启动较慢"提示(常见于开机首次启动被安全软件扫描)。 - 服务进程已退出但未就绪时,弹窗明确报错并指向日志,不再静默失败。 - 已知环境提示:开机首次启动如被 Windows Defender 云扫描拖慢,建议将 node/dsh 目录加入 Defender 排除项。 ## [v1.7.0] - 2026-08-16 ### Added - **DSH 插件化**:仓库现在是一个可安装的 dsh 插件(`dsh.bundle` manifest)。 - 安装:`dsh plugin --profile web add github:miku00039-01/dsh-whale-pet` - 安装后输入 `/whalepet` 命令即可启动鲸鱼娘桌宠 - 桌宠 exe 随插件分发(`dist/`);缺失时自动用 `build.ps1` 构建到 `%LOCALAPPDATA%\DSHWhalePet` - `build.ps1` 新增 `-OutDir` 参数(指定输出目录)。 ## [v1.6] - 2026-08-16 ### Changed - **Remove all hardcoded paths**: workspace / node / dsh / PWA shortcut are now configured via `dsh-whale-pet.conf` (INI) with automatic detection on first run; graceful warning when Node.js or DSH is missing. - **Publish-ready packaging**: added `build.ps1` (icon generation + compile with built-in csc.exe), `README.md` / `README.en.md`, `LICENSE` (MIT), `.gitignore`, GitHub Actions CI (`build on push`, `release on tag`). ## [v1.5] - 2026-08-16 ### Added - Custom exe icon: whale artwork embedded via `/win32icon` (multi-size ICO generated from the transparent PNG). ## [v1.4] - 2026-08-16 ### Fixed - "Close program" now closes the GUI window by **matching the window title** (`DeepSeek Harness ...`). The PWA window is hosted inside the main Chrome process with no `--app-id` in its command line, so the previous process-command-line matching never matched. ## [v1.3] - 2026-08-16 ### Added - "Close program" also closes the DeepSeek Harness PWA window (initial app-id based approach). ## [v1.2] - 2026-08-16 ### Changed - Opening the GUI now launches the **Chrome PWA shortcut** (standalone window, reuses the same window instead of stacking tabs in the browser). ## [v1.1] - 2026-08-16 ### Fixed - Service startup now invokes `node web` directly instead of `npx` (no more npm/npx dialog in automated contexts). - Added `WS_EX_LAYERED` window style — fixed the pet rendering as a black square (UpdateLayeredWindow had been failing silently). ## [v1.0] - 2026-08-16 ### Added - Initial release: transparent always-on-top whale pet. - Start / stop / monitor the DSH service on `127.0.0.1:3080`. - Double-click to summon the GUI; drag to move (position remembered). - Right-click menu (Open / Close / Status / Exit), tray icon, green/red adaptive status monitoring (5s online / 2s offline). - Floating status card with service info + pet memory/GDI self-check. - Single instance (named Mutex); crash log (`dsh-whale-pet-crash.log`).