Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,42 @@ All notable changes to this project. The format is based on
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.4.4] — 2026-11-09

### Fixed

- **Keyboard shortcut on macOS**: the hotkey used to be matched with `event.key === "b"`,
but on macOS Option is a character modifier — `⌥⇧B` reports `key: "ı"`, so the shortcut
never fired there (it only worked on Windows, where Alt leaves the character alone).
Matching is now done on the physical key (`event.code === "KeyB"`), which is independent
of keyboard layout and of what the modifier produces; macOS additionally accepts `⌘⇧B`.
- Tooltips now name the platform's own modifiers: `⌥⇧B / ⌘⇧B` on macOS, `Alt+Shift+B`
elsewhere.
- Held keys (auto-repeat) and keystrokes typed while an input method is composing are
ignored, so holding the shortcut no longer flips the surface back and forth.

## [0.4.3] — 2026-11-08

### Added

- **Top-bar entry**: an "ADE" button injected next to the ds-bot side-panel brand
(`.bt-side-top`, narrow rail falls back to `.bt-rail-top`) for one-click switching,
re-inserted by the 500 ms refresh tick if React re-renders it away.
- **Flicker-free switching (stealth mode)**: while switching to the classic surface the
account menu and settings layer are forced to `display:none` (they stay in the DOM so
programmatic clicks still work) and restored 400 ms after the switch; on failure an
Escape key burst closes any leftover popover.
- **Last-resort fallback**: when both DOM paths fail, write ds-bot's own persisted key
`localStorage["ds-bot:surface"]` and reload the page (ds-bot reads it on startup).

### Changed

- **ds-bot 0.3.x adaptation**: the switch entry moved from the account menu to
*Bot settings → General → Classic Agent mode → Switch*. Menu items and buttons are now
matched by their text, and the old "last menu item" fallback (which clicked
"Sign in to DeepSeek" and opened the login page) is removed.
- Compatibility map records `0.2.1-rc.4` and `0.2.2-rc.1` as tested.

## [0.4.1] - 2026-10-27

- Add real-interface screenshots (Bot surface / classic surface) and `screenshots.json`.
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ It is a UI layer on top of ds-bot, not a replacement for it: ds-bot keeps runnin
- One-click switch between **Bot** and **ADE**; the active side is highlighted
- Available in both surfaces as a fixed overlay, kept clear of the content area
- Drag it anywhere, snap to an edge; right-click resets to the default position (remembered)
- Keyboard shortcut `Alt+Shift+B`
- Keyboard shortcut `Alt+Shift+B` on Windows / Linux, `⌥⇧B` or `⌘⇧B` on macOS
- Fades after 4 s of no interaction, restores on hover; respects `prefers-reduced-motion`
- Bilingual UI (Chinese / English) following the page or browser language
- ds-bot compatibility probe: reports whether ds-bot is loaded and, when obtainable, its version;
Expand Down Expand Up @@ -58,7 +58,7 @@ If the plugin page says the change takes effect at the next start, restart DSH.

- Click **Bot** to enter the ds-bot Bot surface, **ADE** to return to the classic DSH interface.
- Drag the capsule to move it; right-click it to reset the position to the right edge, centered.
- Press `Alt+Shift+B` to toggle from anywhere.
- Press `Alt+Shift+B` (on macOS `⌥⇧B` or `⌘⇧B`) to toggle from anywhere.

## Debugging

Expand Down
4 changes: 2 additions & 2 deletions README.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ ds-bot 自带两套界面,却没有一个常驻开关:在 Bot 界面里只
- 点 **Bot** / **ADE** 一键切换,当前界面高亮
- 固定浮层,两套界面里都可见,且避开正文区域
- 可拖动到任意位置并吸附边缘;右键复位到右侧居中(位置记忆在 localStorage)
- 快捷键 `Alt+Shift+B`
- 快捷键 `Alt+Shift+B`(Windows / Linux),macOS 为 `⌥⇧B` 或 `⌘⇧B`
- 4 秒无交互自动变淡,鼠标移入恢复;尊重 `prefers-reduced-motion`
- 界面文案中英双语,跟随页面或浏览器语言
- ds-bot 兼容性探测:能拿到时报告是否加载、版本号;控件缺失时胶囊转琥珀色并说明原因,
Expand Down Expand Up @@ -58,7 +58,7 @@ DSH 里:**设置 → 插件 → 添加插件**,然后二选一

- 点 **Bot** 进入 ds-bot 的 Bot 界面,点 **ADE** 回到经典 DSH 界面。
- 拖动胶囊可移动位置;右键复位到右缘居中。
- 任意位置按 `Alt+Shift+B` 切换。
- 任意位置按 `Alt+Shift+B`(macOS 为 `⌥⇧B` 或 `⌘⇧B`)切换。

## 排错

Expand Down
Loading
Loading