fix(memory): use project transcript path for dream#3722
Merged
Conversation
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Contributor
Code Coverage Summary
CLI Package - Full Text ReportCore Package - Full Text ReportFor detailed HTML reports, please see the 'coverage-reports-22.x-ubuntu-latest' artifact from the main CI run. |
wenshao
previously requested changes
Apr 29, 2026
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
xaelistic
pushed a commit
to xaelistic/qwen-code
that referenced
this pull request
Jun 7, 2026
* fix(memory): use project transcript path for dream Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com> * fix(memory): quote dream transcript grep path Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com> * test(memory): make dream prompt quoting test portable Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com> --------- Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
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
/dreamtranscript lookup instructions to use the project-scoped session transcript directory used by chat recording/session storage, and added regression coverage for both the CLI command and core dream planner./dreampreviously pointed memory consolidation at.qwen/tmp/<hash>/chats, which no longer contains session transcripts, so transcript search could miss recent conversation history.Storage.getProjectDir()/chatsconsistently for manual/dreamand managed auto-memory dream planning.Validation
npx vitest run src/ui/commands/dreamCommand.test.ts npx vitest run src/memory/dreamAgentPlanner.test.ts npm run build && npm run bundle npm run typecheck npm run lint/dreamin an isolated interactive TUI session usingnode /Users/mochi/code/fix-issue-qwen-code/dist/cli.js --auth-type openai --approval-mode yolo --openai-logging --openai-logging-dir "$tmpdir/logs"with dummy OpenAI endpoint settings./dreamconsolidation prompt should point transcript search at the actual project-scopedprojects/<project-id>/chats/*.jsonllocation.Session transcripts: /Users/mochi/.qwen/projects/-private-tmp-qwen-3599-verify-lf9cto-work/chats, and that directory contained the active session JSONL file./dreamprompt generation to confirm it usesStorage.getProjectDir()/chatsrather than.qwen/tmp/<hash>/chats.test-engineerreproduced the bug against the installed CLI and verified this branch withnode dist/cli.js; the issue artifact recordsStatus: REPRODUCEDandStatus: VERIFIED_FIXEDin.qwen/issues/issue-3599.md.Scope / Risk
Storage.getProjectDir(), so behavior depends on the same runtime base directory resolution used by session recording.Testing Matrix
Testing matrix notes:
npx vitest,npm run build && npm run bundle,npm run typecheck,npm run lint, and an interactive/dreamE2E verification.Linked Issues / Bugs
Related discussion: #3599
🤖 Generated with Qwen Code