﻿# How do agents share a resident Qwen Code workspace after a reconnect?

How do agents share a resident Qwen Code workspace after a reconnect? Check workspace identity and read-only behavior across concurrent sessions, detach and recovery.

Author: Retrivium editorial team
Updated: 2026-11-30
Canonical URL: https://retrivium.ai/journal/daily-20261130-agents-qwen-resident-workspace-recovery/
Language: en

Qwen Code v0.29.1 added reuse of a resident external workspace across hosted sessions. Its notes cover concurrent read-only dispatch, reattachment, recovery and ephemeral storage registration. This can reduce repeated setup for sessions that inspect the same project. The feature leaves an important operational question about preserving workspace identity through an interruption.

## A workspace is not a session

The workspace holds the environment the agent is inspecting. A session tracks its own conversation and execution state. Sharing the first resource does not imply sharing the second. An operator needs to know which checkout and backing storage a resumed session sees. Identical directory names offer weak evidence because a fresh workspace might use the same path.

## Read the same fixture concurrently

Put a versioned fixture and a known uncommitted marker in an authorized test workspace. Start separate sessions and let each read the files while the original environment stays resident. Compare the reported workspace identity, revision and marker. Attempt a harmless write through the read-only route and confirm the workspace contents stay unchanged. Verify each run gets its own output and conversation.

## Disconnect and recover

Break the control connection during a read and reattach. Record whether the workspace is reused, recovered or recreated and whether temporary data survives according to the configured storage lifecycle. Test a deliberately removed workspace as well. A successful reattachment should report the actual environment, including when the original backing storage has gone away. Run the reconnect test while another authorized read session remains active. That peer should keep seeing the intended revision even if the disconnected session is being recovered. Log the mounts observed by both sessions. An environment recreated under a familiar display name should be reported as a replacement.

## Keep recovery observable

Measure the time to the first successful read after reconnect and include failures. Reduce warm-up time only if operators can still distinguish a reused checkout from a fresh one and can trace each session separately. Keep writable jobs on an explicitly selected path with its own isolation guarantees.

## Sources

- [Primary source · qwen-code v0.29.1](https://github.com/QwenLM/qwen-code/releases/tag/v0.29.1)
- [Primary source · qwen-code #17472](https://github.com/QwenLM/qwen-code/pull/17472)

## Related reading

- [Qwen Code v0.27.0 FileChanged hooks and safe local file reconciliation](/journal/news-qwen-code-filechanged-local-event-reconciliation/)
- [Metaflow resume: edited successful steps can still contribute their old artifacts](/journal/fg2-metaflow-resume-successful-step-code-provenance/)
