Replies: 1 comment
-
|
The safer version of this workaround is: use Codex’s own unarchive command first, and only move JSONL files manually as a last resort. Codex sessions are stored locally under: On Windows: The official restore path is: codex unarchive <session-id>The session id is usually the UUID at the end of the rollout filename: So the first thing I would try is: codex unarchive xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxor, if you know the exact thread name: codex unarchive "My session name"Then reopen Windsurf and check the Codex sidebar again. Also check the thread filter: if only some sessions are visible, switch the thread list/filter to chronological/all threads. Only if the CLI command fails or the Windsurf UI is corrupted would I use the manual file move approach. Manual recovery checklist:
Example: goes here:
If the session still does not appear, run: codex doctorand look for thread inventory / rollout DB warnings. Recent Codex versions keep a thread inventory database as well as the JSONL rollout files, so manually moving files can leave metadata out of sync. That is why Clearing the Windsurf cache can help if the UI is stale, but I would treat that as a UI refresh step, not the main restore mechanism. The main restore mechanism should be: codex unarchive <session-id> |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
🛠️ Guide: How to Force-Unarchive & Restore Bugged Windsurf Chat Sessions
If your Windsurf editor sidebar lags, bugs out, or freezes up completely so that you cannot click your profile icon to open your archived threads—you can force-unarchive them directly through your local system files.
Because Windsurf saves individual chat history locally as raw log structures, you can manually correct the tree directory to trick the editor into forcefully indexing it back onto your primary screen.
Step 1: Extract the Archived Log File
C:\Users\<Your-Username>\.codex\archived_sessions\.jsonldata block named explicitly by timestamp (e.g.,rollout-2026-05-28T...).Ctrl + Xto cut it.Step 2: Manually Drop it Into the Active Timeline Tree
Windsurf dynamically reads your history pane chronologically by parsing folders labeled:
Year > Month > Day.C:\Users\<Your-Username>\.codex\sessions\📁
2026➡️ 📁05➡️ 📁28(Note: If the terminal day number folder doesn't exist yet, simply right-click -> Create New Folder, and title it using the two-digit day number).
Ctrl + Vto dump the JSONL file right inside.Step 3: Clear the Editor UI Layout Cache
Windsurf holds an app state cache for all its visual sidebar elements. You must clear these folders so the editor resets its configuration indices on the next initialization loop.
Win + Rto trigger the Run prompt, paste%APPDATA%, and press Enter.Windsurfdirectory, then click into theCachepath.Cache_DataNo_Vary_SearchStep 4: Relaunch and Verify
IN MY CASE THE ARCHIVED FILE WAS IN THE 28 FOLDER (DAY)
The .codex/sessions directory is organized chronologically by year, month, and day (Year > Month > Day). Your archived file has the date 2026-05-28 in its name (rollout-2026-05-28...).To restore it properly, you need to match this folder structure exactly:Step 1: Place the File in the Correct FolderOpen the folder named 28 seen in my sample images below .Paste your rollout-2026-05-28T... JSONL file directly inside that folder.
Then follow Step 3 to clear cache.
P.S. Close editor whilst doing this..
Beta Was this translation helpful? Give feedback.
All reactions