Latest in AI
Qwen Code 0.29: How to Recover Memory From an Old Worktree
Find which workspace owns project memory, preview what will move, and check that separate workspaces stay separate.
If Qwen Code remembers a project convention in one checkout but forgets it in another, check where you started each session. Qwen Code 0.29.0 ties project memory to the directory that launched the session, or to the registered workspace for a served session. A temporary worktree created by the tool no longer has to hide the memory of the workspace that opened it.
That doesn't make memory repository-wide. Two terminals can point to worktrees of the same repository and still read different project notes.
Identify which workspace should own the notes
The implementation notes distinguish three cases:
| How you opened the session | Where to start looking for project memory |
|---|---|
| Started in your usual workspace and asked Qwen to open a task worktree | The launch workspace, even while the task uses its own checkout. |
| Opened a terminal directly in a separate linked checkout and started Qwen there | The linked checkout's own project memory. |
Opened a session through a registered qwen serve workspace | The workspace registered with the daemon. |
Start in the directory that should own the memory going forward. A Git root and the directory you think of as your project's working directory may be different. Check your launch location rather than assuming the vendor reads the Git root.
Preview one source at a time
The new command is /memory migrate-worktree <old path>. It reads a selected older memory library and uses a model request to propose changes to the current one. Review the proposed topics and conflicts before approving anything. If two notes disagree about the test command or release branch, settle which one is current before keeping it. The command preserves the source library according to the implementation notes, so don't delete that checkout as part of the same test.
Because the proposal uses a model request, pick a small source you are allowed to send to the configured provider. A move between local directories doesn't mean the migration is an offline copy. Skip notes with credentials, sensitive logs or material from another workspace.
Check what a fresh session can actually recall
Use a disposable project first. Save a harmless convention, such as the name of the demo fixture, then open a task worktree from the same workspace. After the migration, open a fresh session from the launch directory and check the convention it sees. Start independently from a separate linked checkout and confirm it hasn't picked up the first workspace's note. That second check matters when one repository is shared by unrelated projects.
Run this test without relying on the current chat transcript. A model can repeat a note you just typed even if the memory write didn't stick. A fresh session and an unchanged source library are better evidence that you found the right destination.
I'm Paras. I work with teams building developer tools.
I help turn agent behavior and release changes into guides developers can check in their own workflow.