mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-03 07:57:22 +00:00
1.5 KiB
1.5 KiB
OPFS Debugging Instructions
Current Issue
Project creation fails with OPFS due to isomorphic-git compatibility issues.
Debug Steps
-
Enable OPFS in browser:
- Go to Shakespeare app
- Settings → Data Settings → Filesystem Type → OPFS
- Save and refresh
-
Try to create a project:
- Enter a description like "test project"
- Select a model
- Click "Create Project"
-
Check browser console:
- Open DevTools (F12)
- Look for debug logs starting with
OPFSAdapter.readFile called with path: - Look for
OPFSAdapter.mkdir called with path: - Look for
OPFSAdapter.stat called with path:
Expected Debug Output
If our fixes work, you should see logs like:
OPFSAdapter.readFile called with path: /projects/test-project/.git/config encoding: utf8
OPFSAdapter.stat called with path: /projects/test-project
OPFSAdapter.mkdir called with path: /projects/test-project options: { recursive: true }
Current Problems
- Undefined paths: isomorphic-git calls our adapter with
undefinedpaths - Git config parsing: "text.split is not a function" error suggests Git is trying to parse error messages as config files
- Directory creation: Git directory structure creation fails
Next Steps
Based on what we see in debug logs, we can:
- Identify exactly which paths are being called as undefined
- Fix the specific filesystem contract issues
- Ensure proper error handling that doesn't break Git operations