Skip to content

fix(config): use persistent path for SQLite DB in .env.example#10

Open
Jianping-Xiong wants to merge 1 commit intomainfrom
fix/env-sqlite-persistent-path
Open

fix(config): use persistent path for SQLite DB in .env.example#10
Jianping-Xiong wants to merge 1 commit intomainfrom
fix/env-sqlite-persistent-path

Conversation

@Jianping-Xiong
Copy link
Copy Markdown

Summary

  • Replace default SQLite path from /tmp/sqlite/enclaws.db to ~/.enclaws/data.db
  • macOS clears /tmp on reboot, causing all SQLite data (tenants, users, channels) to be silently lost while filesystem state (~/.enclaws/tenants/) remains intact
  • Add a NOTE comment warning against using /tmp for the database

Context

After a macOS reboot, the gateway starts with an empty database — no tenants, no users, no channel configs — but reports no errors. This makes the issue hard to diagnose since feishu tools still register but never connect.

Test plan

  • Copy .env.example to .env, verify the path comment is clear
  • Confirm gateway reads from the persistent path after restart
  • Reboot macOS, verify data survives

🤖 Generated with Claude Code

/tmp is purged on macOS reboot, silently wiping all SQLite data
(tenants, users, channels) while ~/.enclaws/ filesystem state remains.
Change the default example path to ~/.enclaws/data.db and add a
warning comment.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant