Skip to content

🔧 fix: Prefer .sqlite extension for default database path#161

Merged
bdougie merged 3 commits intomainfrom
fix-default-sqlite-path
Mar 17, 2026
Merged

🔧 fix: Prefer .sqlite extension for default database path#161
bdougie merged 3 commits intomainfrom
fix-default-sqlite-path

Conversation

@bdougie
Copy link
Contributor

@bdougie bdougie commented Mar 17, 2026

Summary

tapes seed and tapes deck --demo defaulted to tapes.db, but the project uses tapes.sqlite. This updates all default paths and resolution order to prefer .sqlite.

  • Update seed and sync fallback paths from tapes.db to tapes.sqlite
  • Reorder SQLite path candidates so .sqlite is checked before .db
  • Update docker-compose to match
  • Add test covering .sqlite preference when both files exist

Test plan

  • tapes seed creates tapes.sqlite by default
  • Path resolution picks tapes.sqlite over tapes.db when both exist
  • make unit-test

bdougie added 2 commits March 17, 2026 13:43
Reorder SQLite path resolution to prefer tapes.sqlite over tapes.db,
update all default fallback paths to use the .sqlite extension, and
set the deck TUI default time period to 24h.
@bdougie bdougie changed the title 🐛 fix: Prefer .sqlite extension as default database path 🐛 fix: Prefer tapes.sqlite as the default database path Mar 17, 2026
@bdougie bdougie changed the title 🐛 fix: Prefer tapes.sqlite as the default database path ✨ feat: Prefer tapes.sqlite as the default database path Mar 17, 2026
@bdougie bdougie changed the title ✨ feat: Prefer tapes.sqlite as the default database path 🐛 fix: Prefer .sqlite extension for default database path Mar 17, 2026
Consolidate the duplicated resolve-then-fallback pattern from seed and
sync commands into sqlitepath.ResolveSQLitePathWithFallback(). Add test
coverage for .sqlite preference over .db in the current working directory.
@jpmcb jpmcb changed the title 🐛 fix: Prefer .sqlite extension for default database path 🔧 fix: Prefer .sqlite extension for default database path Mar 17, 2026
@bdougie bdougie marked this pull request as ready for review March 17, 2026 21:43
@bdougie bdougie merged commit e07946a into main Mar 17, 2026
15 of 17 checks passed
@bdougie bdougie deleted the fix-default-sqlite-path branch March 17, 2026 21:51
@continue
Copy link

continue bot commented Mar 17, 2026

Docs update needed — This PR changes the default database extension from .db to .sqlite.

The documentation in papercomputeco/tapes.dev has 22 references to tapes.db that should be updated to tapes.sqlite for consistency:

Files affected:

  • src/data/docs.ts (3 references)
  • src/pages/agents.astro (2 references)
  • src/pages/guides/openclaw.astro (1 reference)
  • src/pages/guides/search.astro (5 references)
  • src/pages/guides/history.astro (2 references)
  • src/pages/guides/opencode.astro (4 references)
  • src/pages/guides/ollama.astro (5 references)
  • src/pages/guides/claudecode.astro (3 references)
  • src/pages/guides/kafka.astro (1 reference)
  • src/pages/mcp.astro (1 reference)

These are all example commands and explanatory text showing --sqlite "./tapes.db" which should become --sqlite "./tapes.sqlite".


PR #161 was merged: 🔧 fix: Prefer .sqlite extension for default database path
PR URL: #161
Merged by: bdougie

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.

2 participants