Repository navigation
chore(make): show the dev database before starting the backend - #6006
Merged
norman-abramovitz merged 2 commits intoOct 14, 2026
Merged
Conversation
jetstream opens console-database.db relative to the directory it starts in, so each checkout has its own endpoints and tokens, and nothing says which file is in use. make dev backend now prints the database first: for SQLite the full path, whether it is kept or reset at startup, and its registered endpoints (read-only).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With SQLite, jetstream opens
$SQLITE_DB_DIR/console-database.dbrelative to the directory it starts in, so every checkout has its own endpoints, tokens and favourites, and nothing says which file is open. Switching worktrees, or moving betweenmake dev backendand an E2E run (dist/e2e-db, rebuilt each run), silently swaps the endpoint set.make dev backendnow prints the database before it starts the backend:src/jetstream/config.properties(DATABASE_PROVIDER,SQLITE_DB_DIR,SQLITE_KEEP_DB).SQLITE_KEEP_DBfalse prints "RESET at startup"; a missing file or directory says so; PostgreSQL and MySQL print the provider, host and database name.sqlite3; withoutsqlite3only the path is printed.build/dev-db-info.sh(shellcheck clean), called by one line indev.backend.Tried with
make dev backendin this checkout, with E2E settings (SQLITE_DB_DIR=../../dist/e2e-db SQLITE_KEEP_DB=false), from another checkout, and withDATABASE_PROVIDER=pgsql.Changelog fragment:
changelog.d/0007-dev-db-info.md.AI disclosure (RFC-0047): prepared with AI coding assistance; reviewed by the author.