Post working set generation, Kombai allows you to view and save the code to your workspace. You can save the code to your current workspace or a new workspace.

Build and config files

Kombai segregates the generated code into two categories:
  1. Source files: This includes the components, theme, etc.
  2. Build & config files: This includes package.json, next.config.mjs, etc.

Save code to current workspace

This is the default option when you are using Kombai in an existing workspace. Follow the steps below to save the code to your current workspace:
  1. Click View & Save in the working set panel.
  2. Select the Source Files you want to save to the workspace.
  3. If your workspace already contains Build & Config Files, e.g. package.json or index.html, you don’t need to save them from Kombai.
Build & Config Files are unselected by default when you run Kombai in an existing workspace.
  1. However, if the package.json in Kombai’s working set looks modified (denoted by M next to the file name), review it to see if Kombai has added any new dependencies during the code generation process. If it has, consider saving the package.json file, as well.
  2. Click Save to save the selected files to the workspace.

Save code to new workspace

This is the default option when you are using Kombai in a new workspace. New workspaces are IDE windows that either contains an empty workspace (i.e., no files) or has no workspace open at all. Follow the steps below to save code to a new workspace:
  1. Click View & Save in the working set panel.
  2. Select all the Source Files.
  3. Select all the Build & Config Files.
    • If you’re in an empty workspace (i.e., no files), ensure Current workspace is selected in the Save in dropdown at the bottom pane. Click Save to save the files to the workspace.
    • If no workspace is open, ensure New workspace is selected in the Save in dropdown at the bottom pane. Click Save.
  4. Browse to the specific location where you want to save the files and click Save.
  5. Click Open in new window to open the newly saved workspace in a new IDE window, or click Open folder to open it in the current window.

Undo saved files

Kombai allows you to undo the modified files you save to the workspace. After the files are saved, you will see the Undo button in the chat. Click on it to undo any existing workspace file that Kombai modified. It will also restore the workspace files that Kombai deleted in the working set.
Undo will not remove new files from the workspace. You’ll need to remove them yourself. New files are Kombai-generated files that didn’t exist in the workspace prior to the chat.
Undo option is unavailable after restoring. Please undo any changes first.