Skip to content

Glass appears to write WorkspaceDb migrations into Zed's stable DB #51

Description

@almmaasoglu

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

  1. use official Zed stable normally
  2. run Glass
  3. later reopen official Zed stable
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions