Area
Editor
Reproduction steps
I hit a Failed to load the database file. error in official Zed stable after running Glass, and this looks like Glass is reusing Zed's app-state / DB instead of isolating its own. Ref: zed-industries#53765 (comment)
What happened
After running Glass, official Zed stable started refusing to open its file-backed workspace DB and fell back to the in-memory DB.
The bad DB state I found in:
~/Library/Application Support/Zed/db/0-stable/db.sqlite
contained this stored WorkspaceDb migration at step 36:
ALTER TABLE workspaces ADD COLUMN active_mode TEXT;
But current official Zed stable expected step 36 to be:
ALTER TABLE remote_connections ADD COLUMN remote_env TEXT;
That mismatch caused Zed stable to reject the DB.
Why I think this is coming from Glass
A Zed maintainer checked their history and could not find any official Zed migration that ever added active_mode.
relevant line in Glass:
|
ALTER TABLE workspaces ADD COLUMN active_mode TEXT; |
I had also run Glass last week, which lines up with when this DB state was likely introduced.
So the likely issue is that Glass is writing its workspace DB schema/migrations into the same DB used by official Zed stable.
In my case it broke recent-project / workspace persistence until I manually repaired the DB.
Notes
- use official Zed stable normally
- run Glass
- later reopen official Zed stable
- Zed stable fails with
Failed to load the database file. due to the WorkspaceDb migration mismatch above
If useful, I can provide the exact Zed log output and the DB state I found locally.
Current vs. Expected behavior
Glass should use its own isolated app-state instead of writing into Zed's stable state.
That likely means using its own:
- application support directory
- DB path
- app/release identity
and not reusing Zed's db/0-stable database.
Relevant URL, repo, or project context
No response
Glass version and system specs
Glass: installed app bundle at /Applications/Glass.app
Version: 0.0.1
Build: 0.0.1
Bundle identifier: dev.glass.Glass
OS: macOS 26.4.1 (25E253)
Model: MacBook Pro (MacBookPro18,2)
Chip: Apple M1 Max
Memory: 64 GB
Architecture: arm64 / aarch64
Attach Glass log file
Glass.log
Relevant settings
settings.json
Relevant Keymap
keymap.json
(for AI issues) Model provider details
No response
Area
Editor
Reproduction steps
I hit a
Failed to load the database file.error in official Zed stable after running Glass, and this looks like Glass is reusing Zed's app-state / DB instead of isolating its own. Ref: zed-industries#53765 (comment)What happened
After running Glass, official Zed stable started refusing to open its file-backed workspace DB and fell back to the in-memory DB.
The bad DB state I found in:
~/Library/Application Support/Zed/db/0-stable/db.sqlitecontained this stored
WorkspaceDbmigration at step36:But current official Zed stable expected step
36to be:That mismatch caused Zed stable to reject the DB.
Why I think this is coming from Glass
A Zed maintainer checked their history and could not find any official Zed migration that ever added
active_mode.relevant line in Glass:
Glass/crates/workspace/src/persistence.rs
Line 984 in fbc6b9a
I had also run Glass last week, which lines up with when this DB state was likely introduced.
So the likely issue is that Glass is writing its workspace DB schema/migrations into the same DB used by official Zed stable.
In my case it broke recent-project / workspace persistence until I manually repaired the DB.
Notes
Failed to load the database file.due to theWorkspaceDbmigration mismatch aboveIf useful, I can provide the exact Zed log output and the DB state I found locally.
Current vs. Expected behavior
Glass should use its own isolated app-state instead of writing into Zed's stable state.
That likely means using its own:
and not reusing Zed's
db/0-stabledatabase.Relevant URL, repo, or project context
No response
Glass version and system specs
Glass: installed app bundle at
/Applications/Glass.appVersion:
0.0.1Build:
0.0.1Bundle identifier:
dev.glass.GlassOS: macOS
26.4.1(25E253)Model: MacBook Pro (
MacBookPro18,2)Chip: Apple M1 Max
Memory: 64 GB
Architecture: arm64 / aarch64
Attach Glass log file
Glass.log
Relevant settings
settings.json
Relevant Keymap
keymap.json
(for AI issues) Model provider details
No response