[Bug]: Session history cannot be saved and restored after app restart/exit on Windows 11 Desktop v0.11.142
Summary
On Windows 11, the OpenWork desktop application (v0.11.142) fails to persist chat session history. All created conversations and message records are completely lost after closing the app, restarting the program, or refreshing the workspace, and cannot be recovered when reopening the same workspace.
Steps to reproduce
- Install and launch OpenWork Desktop v0.11.142 on a Windows 11 device
- Select and load a local workspace
- Create a new chat session, send multiple messages to generate complete conversation content
- Fully close the OpenWork application (confirm no related background processes remain in Windows Task Manager)
- Reopen the OpenWork desktop app, and navigate back to the same workspace used in step 2
- (Additional reproduce scenario) Refresh the current workspace after creating a session, the session also disappears immediately
Expected behavior
- All previously created chat sessions and complete message records should be retained and displayed normally in the sidebar after the app is restarted, exited, or the workspace is refreshed
- The "No sessions yet" prompt should only appear when the workspace is opened for the first time and no sessions have ever been created
Actual behavior
- All chat sessions are completely lost after restarting/exiting the app or refreshing the workspace, the sidebar shows empty or only the "No sessions yet" prompt
- The session data cannot be restored even when opening the exact same workspace, and the issue persists after multiple retries
Same issue for me on Windows 11 Pro. First time I install OpenWork. This issue persists with the latest version released today with binaries (v0.11.142).
It's not even necessary to restart the app, with Developer mode enabled, just click "Reload the engine" in the "Advanced" menu, and all the sessions are lost.
I asked my agent to see if the sessions were truly lost, and apparently not, they are still present, but just they are not shown in the UI for some reason. So it is an UI problem.
I can confirm the sessions were indeed present (I checked the content) in:
- Main session store:
~\.local\share\opencode\opencode.db - Auxiliary per-session diff files:
~\.local\share\opencode\storage\session_diff\ses_*.json
For some reason, OpenWork cannot show them.
It is worth mentioning I also have OpenCode installed and I used it before. So maybe this is caused by some incompatibliity? Because OpenCode already added several sessions, so maybe the sessions format is different enough from what OpenWork expects that OpenWork silently fails to decode the session files?
This issue still persists in version 0.11.163. I’m using Windows 11, version 25H2, and I have OpenCode installed (I’ve used it before as well). If it’s not feasible to schedule a fix for this issue in the short term, could you provide a manual operation/method that allows me to restore my historical conversations on my own?
Same problem in version 0.11.163, it doesn't save conversations when closing the app
I just installed the release yesterday, may be v0.11.170 or v0.11.172, on Win11 24H2. Today, when I restart the app, can't see any session record too. It never happen on opencode.
+1. Observed in v0.11.175 today. Windows 11 25H2. Developer mode was disabled.
Loosing access to sessions in the desktop app when toggling back and forth between workspaces is particularly inconvenient.
This behaviour really surprised me initially but seeing this post it seems to be better treated as a bug.
In latest v0.11.182 under Win11 24H2, after app restart, only the name of workspace can be restored, session records are still gone. I noticed that openwork-workspaces.json in below path still includes records of self-defined workspace but worksapaces directory only inlcudes starter folder, not sure if they are relevant. C:\Users\Administrator\AppData\Roaming\com.differentai.openwork
Подтверждаю проблему на версии v0.11.186 (Windows 11)
У меня такая же проблема. Вот дополнительная информация, которая может помочь в отладке:
Информация о системе:
- Версия OpenWork: v0.11.186 (последняя на момент написания)
- ОС: Windows 11
- Путь workspace: `C:\Users\zyabl\Desktop\APP`
Наблюдения:
-
Сессии сохраняются в базе данных, но не отображаются в UI:
- База данных SQLite растёт: `opencode.db` ~3MB
- Файлы session_diff существуют, но почти пустые (2 байта = `[]`)
- Путь: `C:\Users\zyabl.local\share\opencode\opencode.db`
-
Проблема с нормализацией путей на Windows:
- В логах пути отображаются как `C:\Users\zyabl\Desktop\APP` (двойные слеши)
- Workspace ID в разных конфигах не совпадает:
- `openwork-workspaces.json`: `ws_712910bd18e7`
- `openwork-orchestrator-state.json`: `ws-3a01218eb0ed`
-
Функция `normalizeDirectoryQueryPath` преобразует `\
в \/`, но сервер может ожидать оригинальный формат Windows
Связанные issues:
- #859 - аналогичная проблема
- #1118 - Starter sessions disappear after creating a new workspace
- #1136 - Finish cross-OS Starter workspace path normalization for session isolation
Предложение:
Проблема, вероятно, связана с несовпадением форматов путей между:
- UI (нормализует `\
→ \/`) - Сервером (хранит оригинальный Windows путь)
- Конфигом workspace (разные ID)
Надеюсь, эта информация поможет ускорить исправление.
Hi , I'm interested in working on this issue. May I be assigned to it?
Hi! I've submitted a PR (#1164) to resolve this persistence issue. I have thoroughly tested the fix on Windows 11, and I can confirm that session history is now correctly saved and restored after the app restarts or the workspace is refreshed.
Спасибо большое. Хорошего дня
ср, 25 мар. 2026 г., 12:00 Zhangjinlin @.***>:
shanliuling left a comment (different-ai/openwork#860) https://github.com/different-ai/openwork/issues/860#issuecomment-4125224201
Hi! I've submitted a PR (#1164 https://github.com/different-ai/openwork/pull/1164) to resolve this persistence issue. I have thoroughly tested the fix on Windows 11, and I can confirm that session history is now correctly saved and restored after the app restarts or the workspace is refreshed.
— Reply to this email directly, view it on GitHub https://github.com/different-ai/openwork/issues/860?email_source=notifications&email_token=BRJ7EF26PCNRCMBYRYLNX3T4SOU25A5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTIMJSGUZDENBSGAY2M4TFMFZW63VHMNXW23LFNZ2KKZLWMVXHJLDGN5XXIZLSL5RWY2LDNM#issuecomment-4125224201, or unsubscribe https://github.com/notifications/unsubscribe-auth/BRJ7EF637KMDFDBKYOHJZKT4SOU25AVCNFSM6AAAAACWPJWFGWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DCMRVGIZDIMRQGE . You are receiving this because you commented.Message ID: @.***>
@OmarMcAdam expanded in more detail here but this issue should already be addressed in the current dev by #1256, which was merged last week.
@baddieflex @lrq3000 @koubas @eclgo @shanliuling @MarcFletcher @sslcheese @Jawuilp latest windows release here https://github.com/different-ai/openwork/releases/tag/v0.11.207
This issue should be addressed so I'll be closing this PR unless you report that we had a regression here within this week or so.
Rechecking this during the current bug pass: later maintainer comments indicate the original Windows session persistence bug should already be addressed in current builds, with #1140 tracking the broader remaining workspace-switch/update variants if they still persist.\n\nIf this exact restart/exit case still reproduces on the latest release/dev, it would help to confirm that explicitly; otherwise this issue may now be stale relative to the newer umbrella.