Skip to content
86% off$349 $48.86code BF2026

Guides

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:

  1. Many stored conversations. Cascade keeps conversations as .pb files 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.
  2. One machine. The failure was tied to one Remote-SSH machine, which points to the files on that host rather than your account.
  3. 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

  1. Quit Windsurf completely with Command-Q (⌘Q). If you use Remote-SSH, close the remote window too.

  2. Open Terminal on the machine where Cascade fails. If it is a remote host, connect over SSH and run the commands there.

  3. Count the files:

    bash
    ls ~/.codeium/windsurf/cascade | wc -l

    If you get "No such file or directory", look inside ~/.codeium for the right folder.

  4. List the newest files so you know what you are keeping:

    bash
    ls -lt ~/.codeium/windsurf/cascade | head

    Confirm the .pb files sit directly in this folder.

  5. Move all but the newest few .pb files 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 -t sorts newest first, tail -n +6 skips the first 5, and mv moves the rest. The report only says the newest files were kept; 5 is our untested guess. If there are 5 or fewer .pb files, nothing moves.

  6. Relaunch Windsurf and open Cascade.

Undo

This moves the backed-up files back:

bash
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

SituationWhat you seeWhat to do
Many old .pb filesError on one machine, large cascade folderMove all but the newest ones (step 5)
Still failingSame error after step 5Try keeping fewer files (untested; no threshold is known)
Only renamed the folderNo changeMove the individual .pb files instead
Wrong machineError persists on the remote hostRun the steps on the machine that shows the error
Folder empty or missingNothing to moveThis 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 +4 to 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 .pb files.
  • 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/cascade exists and holds .pb files.
  • 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.

text
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.

Every app.
One purchase.