core/cli: keep database url :memory:; default url None

Unset/empty url still maps to durable user-data chat.db.
Explicit :memory: is not rewritten; CLI warns when not quiet.
DatabaseConfig.url default is None; engine treats None as memory.
This commit is contained in:
2026-07-19 21:38:21 +08:00
parent 182546d60e
commit 0ec0d542e8
8 changed files with 123 additions and 13 deletions
+4 -2
View File
@@ -2,11 +2,13 @@
# Copy to the path shown by: plyngent config path
# Then set access_key_or_token and adjust models.
# Optional. If omitted (or SQLite url is empty / ":memory:"), the CLI uses a
# durable file under the platform user data dir (e.g. ~/.local/share/plyngent/chat.db).
# Optional. If omitted (or SQLite url unset/empty), the CLI uses a durable file under
# the platform user data dir (e.g. ~/.local/share/plyngent/chat.db).
# url = ":memory:" → true in-memory SQLite (CLI warns; useful for tests).
# [database]
# implementation = "sqlite"
# url = "/path/to/chat.db"
# # url = ":memory:"
[agent]
system_prompt = "You are a careful coding assistant. Prefer small, verified edits."