﻿# Qwen Code restores native memory controls with workspace persistence and runtime ownership

Test toggle persistence, User versus Project targets and stale callbacks after runtime replacement; a restored memory panel does not redefine the underlying memory policy.

Author: Retrivium team
Updated: 2026-11-15
Canonical URL: https://retrivium.ai/journal/week46-agent-qwen-native-memory-control-persistence/
Language: en

Qwen Code v0.27.4, released on November 15, restores native memory controls and User or Project file actions in its CLI. Workspace settings persist across reopening and restart. The implementation keeps asynchronous actions attached to their selected runtime owner, making target identity and delayed callbacks important acceptance cases alongside the visible toggle state.

## Persist the intended workspace setting

Use two disposable trusted workspaces with distinctive settings. Change the native controls in one, close the panel, reopen it and restart the CLI. Verify that workspace’s values persist while the other workspace and unrelated settings stay unchanged. A toggle that changes only in the current component state can look correct until the next session. Keep a read of the effective runtime setting separate from the visual checkbox.

## File actions need the selected target

Configure synthetic User and Project files or managed directories with recognizable names. Invoke each supported action and inspect the actual opened target. A successful editor launch is insufficient if it opens the wrong memory scope. Keep file content harmless and confirm no unrelated path changed. The release restores interactions without changing Core APIs or memory policy, so evaluate path selection rather than inventing a new storage contract.

## Delayed callbacks must retain their owner

Start a controlled asynchronous file action, replace the selected runtime and then release the callback. Assert it cannot close, modify or report success into the replacement owner’s panel. Repeat with Escape while the original action is pending. These cases check session identity rather than memory content. They are particularly relevant when one CLI stays open while its user switches projects or reconnects a workspace.

## Visible errors belong in the result

Make the synthetic editor or opener fail and inspect whether the panel remains usable with an actionable error. Test the terminal sizes and runtime profiles the organization uses; local validation in the PR has stated platform limits. The useful adoption evidence combines persistent settings, correct target selection and owner-safe completion. It does not establish better memory retrieval quality merely because controls are now editable in the native interface.

## Sources

- [Qwen Code v0.27.4 release notes](https://github.com/QwenLM/qwen-code/releases/tag/v0.27.4)
- [Qwen Code implementation and review #17213](https://github.com/QwenLM/qwen-code/pull/17213)

## Related reading

- [How Claude Code hooks attach code to lifecycle events](/journal/learn-claude-hook-events/)
- [Coordinate shared-sandbox writers with explicit artifact ownership](/journal/frontier-swarm-shared-sandbox-write-ownership/)
