-
Notifications
You must be signed in to change notification settings - Fork 2.5k
fix(core): honor runtime output dir for auto memory #4715
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -81,14 +81,15 @@ function findCanonicalGitRoot(startPath: string): string | null { | |
|
|
||
| /** | ||
| * Returns the base directory for all auto-memory storage. | ||
| * Defaults to the global qwen dir (`~/.qwen` or `$QWEN_HOME`); | ||
| * Defaults to the runtime output dir (`runtimeOutputDir`, `QWEN_RUNTIME_DIR`, | ||
| * or the global qwen dir); | ||
| * overridable via QWEN_CODE_MEMORY_BASE_DIR for tests. | ||
| */ | ||
| export function getMemoryBaseDir(): string { | ||
| if (process.env['QWEN_CODE_MEMORY_BASE_DIR']) { | ||
| return process.env['QWEN_CODE_MEMORY_BASE_DIR']; | ||
| } | ||
| return Storage.getGlobalQwenDir(); | ||
| return Storage.getRuntimeBaseDir(); | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [Critical] Changing from Suggested fix: Add a one-time migration — when the new path doesn't exist but the old — qwen3.7-max via Qwen Code /review |
||
| } | ||
|
|
||
| // Memoize by projectRoot — findCanonicalGitRoot() walks the file system (existsSync | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test