fix(config): support XDG config path fallbacks#443
Open
WHUTcjh-2024 wants to merge 1 commit into
Open
Conversation
5a38046 to
3770ddb
Compare
3770ddb to
602bd0a
Compare
YOMXXX
approved these changes
Jul 9, 2026
YOMXXX
left a comment
Contributor
There was a problem hiding this comment.
Approved as the canonical fix for #103.
I verified locally:
COREPACK_ENABLE_AUTO_PIN=0 pnpm vitest run src/utils/config-paths.test.ts(3/3 passed)COREPACK_ENABLE_AUTO_PIN=0 pnpm test(70/70 passed)COREPACK_ENABLE_AUTO_PIN=0 pnpm buildgit diff --check
This is stronger than the earlier #221/#223 attempts because it centralizes HOME/USERPROFILE/XDG fallback behavior in shared helpers, covers Gateway config lookup plus OpenClaw policy/state-dir lookup, and includes focused regression tests.
This was referenced Jul 9, 2026
Author
|
OK,thanks |
Collaborator
|
Thanks for your attention! We will review your code and get back to you as soon as possible per our internal schedule. |
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.
Description
$XDG_CONFIG_HOME/tencentdb-agent-memoryand~/.config/tencentdb-agent-memorybefore the data-dir fallback.Related Issue
Fix #103
Change Type
Self-test Checklist
Additional Notes
Verified locally:
./node_modules/.bin/vitest.cmd run src/utils/config-paths.test.ts./node_modules/.bin/tsdown.cmd./node_modules/.bin/tsc.cmd -p scripts/migrate-sqlite-to-tcvdb/tsconfig.json --noEmitOnError false./node_modules/.bin/tsc.cmd --project scripts/export-tencent-vdb/tsconfig.json./node_modules/.bin/tsc.cmd --project scripts/read-local-memory/tsconfig.jsongit diff --cached --checkNotes from this Windows host:
pnpmis blocked locally by the existing bash postinstall command (bash ... || true), so verification used the local package binaries directly.vitest runcurrently fails only in existingsrc/utils/time.test.tstimezone/Intl assertions on this host; the focused config-path tests pass.