你的姓名 408e04e500 fix(desktop): don't flush message queue on user Stop; remove donation section
Stop no longer flushes the queue: a user-initiated Stop now skips exactly the
auto-drain triggered by its resulting idle (one-shot guard). The queue stays
intact, the next message the user sends fires immediately (priority, not
queued — even with items waiting), and the queue resumes FIFO on the next idle
after that turn. Queue enqueue/drain/edit mechanics are otherwise unchanged.

Also removes the Buy-Me-a-Coffee / donation section from README (zh/en).
Bumps desktop app to 0.5.3 with release notes.

Tested: desktop tsc --noEmit; Vitest chatStore 94 + pages/ActiveSession 43
passed (incl. stop-no-flush / priority-message / queue-resume case); Windows
x64 NSIS package + package-smoke PASS.
Scope-risk: narrow
Confidence: high
2026-06-08 03:58:09 +08:00

23 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# v0.5.3
## 修复
- **暂停时不再把消息队列一次性下发**。此前点击停止后,停止产生的 idle 会立刻把队列里的消息接连发出。
现在停止只停当前回合并**跳过这一次的自动续队**——队列保持不变;此时再发消息会**立即优先触发**(不进队列,即使队列有货);
这条优先消息完成后,队列在下一次 idle 照常按 FIFO 继续。队列机制本身未改动。
## 文档
- 移除 README中/英)的「请作者喝杯咖啡 / Buy Me a Coffee」打赏收款段落。
## 范围
- 修改:`desktop/src/stores/chatStore.ts`(新增一次性 `skipNextQueueDrain` 开关,停止时置位、`drainMessageQueue` 消费一次)。
- 仅桌面端逻辑改动;队列的入队/排空/编辑机制与持久化均未改变。
## 验证
- `cd desktop && bun run lint`tsc --noEmit
- desktop VitestchatStore 94 passed含暂停不 flush + 优先消息 + 队列续上用例、pages + ActiveSession 43 passed ✅
- 本地 Windows x64 NSIS 打包 + package-smoke ✅