fix: align personal configuration and execution persistence - #95
Merged
Merged
Conversation
Keep browser preferences and keys device-owned, use IPC for Electron files, and unify startup environment precedence. Preserve valid model configuration on reload failure and report the active source and credential availability. Propagate role selections and complete plugin targets into execution, scope embedding and queued work to the originating request, and reject vector-space drift. Await settings and preparation saves, refresh secret caches separately, and apply unambiguous display-only prices. Default Docker to personal hosting. Validated with pnpm lint, pnpm test --concurrency=2, 119 passing browser tests (6 skipped with live providers disabled), environment checks, Compose config, and a clean staged gitleaks scan. BREAKING CHANGE: provider-keys returns availability only; COVEL_HOME does not activate desktop REST. Existing development vector sessions and indexes must be recreated for the endpoint/protocol/encoding-aware model identity.
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.
Summary / 摘要
Personal deployments could display one model configuration while executing another, and browser/server mirroring could lose detached results or duplicate player input. Align personal configuration ownership and model routing with actual requests, and enforce execution and persistence boundaries across Memory, SQLite, and PostgreSQL.
Type of change / 变更类型
Verification / 验证方式
pnpm lint(also passed by commit hooks)pnpm checkpnpm build: all five build tasks passed, including desktop staging preparationVITEST_MAX_WORKERS=2 pnpm test --concurrency=2LIVE_LLM_ENABLED=0 pnpm e2e --workers=2: 119 passed, 6 skippedgpt-6-lunarequests through a local test gateway; provider setup, model bindings, TOML reload, character creation, story/chat, browser refresh, Memory server restart recovery, and desktop/mobile web layouts.Related issue / context / 关联
Personal self-hosting and desktop configuration audit, execution/persistence audit, and the reported character-form submission error (
Form validator is unavailable; activate and approve its plugin first).Docs sync / 文档同步
docs/reference/for API, plugins, protocol, transactions, settings, slots, tools, and world initialization.Compatibility notes
/api/provider-keysreturns availability only.COVEL_HOMEselects a directory and does not enable desktop REST administration. Updated suspended continuations and endpoint/protocol/encoding-aware embedding identities require affected development continuations and vector indexes to be recreated. Previously generated forms with undeclared validators require a new character-creation session; existing duplicate messages and simplified private-world seeds are not automatically rewritten.