Windsurf failed to start (Cascade)? Clear old .pb files
Windsurf failed to start and Cascade won't open? Move old conversation .pb files out of ~/.codeium/windsurf/cascade, keep the newest, and restart.
TroubleshootingUpdated 4 min read
On this page
You open Windsurf, try to use Cascade, and get this:
Windsurf failed to start
Restarting the app did not help in the report. It was tied to one machine, a Remote-SSH host.
Why it happens
Windsurf has not published a cause for this error. What the report says, and what it does not:
- Many stored conversations. Cascade keeps conversations as
.pbfiles under~/.codeium/windsurf/cascade. In the report, deleting about 20 old files and keeping the newest fixed the error. The number of conversations seemed to matter, but no threshold was given. - One machine. The failure was tied to one Remote-SSH machine, which points to the files on that host rather than your account.
- Cleanup. The report says no automatic cleanup of old conversations exists. We have not verified that for current versions.
We do not know whether a corrupt file or the sheer count is to blame. A later user found that merely renaming the cascade folder did not fix it, and the report does not explain why.
Your install may keep these files in a different place. Run ls ~/.codeium first to see which folders exist before changing anything.
Fix: move the old conversation files out
Moving files instead of deleting them lets you put them back. Anything you move will not show up in Cascade until you restore it.
Step by step
Quit Windsurf completely with Command-Q (⌘Q). If you use Remote-SSH, close the remote window too.
Open Terminal on the machine where Cascade fails. If it is a remote host, connect over SSH and run the commands there.
Count the files:
bash ls ~/.codeium/windsurf/cascade | wc -lIf you get "No such file or directory", look inside
~/.codeiumfor the right folder.List the newest files so you know what you are keeping:
bash ls -lt ~/.codeium/windsurf/cascade | headConfirm the
.pbfiles sit directly in this folder.Move all but the newest few
.pbfiles into a backup folder. This example keeps 5:bash mkdir -p ~/windsurf-cascade-backup cd ~/.codeium/windsurf/cascade ls -t *.pb | tail -n +6 | xargs -I{} mv -- {} ~/windsurf-cascade-backup/ls -tsorts newest first,tail -n +6skips the first 5, andmvmoves the rest. The report only says the newest files were kept; 5 is our untested guess. If there are 5 or fewer.pbfiles, nothing moves.Relaunch Windsurf and open Cascade.
Undo
This moves the backed-up files back:
mv ~/windsurf-cascade-backup/*.pb ~/.codeium/windsurf/cascade/When you are sure you do not need them, delete ~/windsurf-cascade-backup yourself.
Causes, symptoms and fixes at a glance
| Situation | What you see | What to do |
|---|---|---|
Many old .pb files | Error on one machine, large cascade folder | Move all but the newest ones (step 5) |
| Still failing | Same error after step 5 | Try keeping fewer files (untested; no threshold is known) |
| Only renamed the folder | No change | Move the individual .pb files instead |
| Wrong machine | Error persists on the remote host | Run the steps on the machine that shows the error |
| Folder empty or missing | Nothing to move | This fix does not apply |
If Windsurf still fails to start
- Too many files remain. The report gives no threshold. You can rerun step 5 with a smaller number, for example
tail -n +4to keep 3. This is a guess, not a known value. - Wrong machine. In the report the failure followed one Remote-SSH host. Run the steps where the error appears.
- Only renamed the folder. A later user found this did not work. Move the individual
.pbfiles. - Windsurf was still running. Quit it fully before moving files, then relaunch.
- Folder empty or missing. Then old conversation files are not your problem.
Checklist before you try again
- Windsurf and any remote window are fully quit.
- You are in Terminal on the machine that shows the error.
~/.codeium/windsurf/cascadeexists and holds.pbfiles.- Your backup folder exists and contains the moved files.
- You relaunched Windsurf afterward.
If nothing works
Contact Windsurf support through the channel in the app or on the vendor's site. Include the exact message, whether it happens locally, over Remote-SSH or on one host only, how many files were in the cascade folder before you moved any, and whether moving them changed anything.
Subject: "Windsurf failed to start" when opening Cascade
Cascade shows "Windsurf failed to start". It happens on [local machine / one Remote-SSH host].
Folder ~/.codeium/windsurf/cascade held [N] .pb conversation files before I touched it.
I moved all but the newest [N] to a backup folder and relaunched. Result: [no change / partly fixed].
Windsurf version: [version]. OS: [OS and version].
Can stored conversation files cause this, and what else should I check?Common questions
Will I lose my Cascade conversations?
Not if you move the files rather than delete them. They stay in the backup folder, and the undo command puts them back, though they will not appear in Cascade while moved.
Can I just delete the whole cascade folder?
We have no evidence for that. The report kept the newest files, and renaming the folder did not help one later user, so we suggest the targeted move.
How many files should I keep?
The report did not say. Keeping the newest few is what it describes; the exact number is yours to try.
Will the problem come back?
Possibly. The report says no automatic cleanup exists, so if the count was the cause, repeat the move when the error returns.