[PR #7636] fix(desktop): enable store auto-save to persist data #12460

Closed
opened 2026-02-16 18:17:22 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/7636

State: closed
Merged: No


Fixes #7637

问题

Desktop app 中使用 Tauri Store 时,数据无法持久化,导致错误:
"Item with id 'xxx' not found. Items are not persisted when 'store' is set to false."

修复

在 Tauri Store 插件初始化时添加 auto_save 配置,每 100ms 自动保存一次。

变更

  • 修改 packages/desktop/src-tauri/src/lib.rs 中的 Store 初始化配置
  • 添加 auto_save(Duration::from_millis(100)) 参数
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/7636 **State:** closed **Merged:** No --- Fixes #7637 ## 问题 Desktop app 中使用 Tauri Store 时,数据无法持久化,导致错误: "Item with id 'xxx' not found. Items are not persisted when 'store' is set to false." ## 修复 在 Tauri Store 插件初始化时添加 `auto_save` 配置,每 100ms 自动保存一次。 ## 变更 - 修改 `packages/desktop/src-tauri/src/lib.rs` 中的 Store 初始化配置 - 添加 `auto_save(Duration::from_millis(100))` 参数
yindo added the pull-request label 2026-02-16 18:17:22 -05:00
yindo closed this issue 2026-02-16 18:17:22 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12460