﻿# Qwen Code managed directory grants separate relay state from saved tool results

Test grant lifetime and durable tool-result handling separately; ephemeral Qwen Code directory registration does not mean returned file content disappears from history.

Author: Retrivium team
Updated: 2026-11-15
Canonical URL: https://retrivium.ai/journal/week46-agent-qwen-managed-local-directory-grants/
Language: en

Qwen Code v0.27.4, released on November 15 at 07:04:40 UTC, includes an opt-in local-files relay for Managed Agent sessions. Temporary directory registrations do not persist credentials or paths. The implementation nevertheless distinguishes relay storage from ordinary durable tool results, a boundary teams should understand before exposing local files to a managed conversation.

## Enable the advertised capability deliberately

The feature is gated by deployment configuration and a session capability, with its entry shown only when advertised. Start with the disabled control and then enable a synthetic workspace. Confirm the browser user grants one test directory rather than an entire home tree. The relevant acceptance result is the set of files the session can actually reach, not merely whether a new file button appears.

## A relay response becomes a tool observation

Read a harmless file with a distinctive marker and inspect both relay lifecycle and the conversation’s saved tool result. The PR explicitly retains the normal durable tool-result policy. Avoid describing the whole operation as nonpersistent simply because registration is ephemeral. An operator needs to know which state expires and which content can remain available to future conversation reads, exports or recovery mechanisms.

## Revocation and browser loss are separate cases

Revoke the directory grant, close the browser and let a queued synthetic request expire in separate tests. Observe whether new reads stop and whether an old response can reattach to a replacement registration. Stable test identities make stale-result delivery visible. These are proposed acceptance cases around the relay’s session lifetime, not evidence that closing a browser reverses edits already completed through an approved tool.

## Accept access and retention as two contracts

Document the allowed directory, session identity, approval path and observed saved content together. A grant test establishes access scope; a history inspection establishes retention behavior. The release introduces a specific opt-in bridge between browser-local files and a managed runtime. Its usefulness depends on both contracts being clear, so teams should avoid extrapolating temporary relay state into a general claim that file contents are never retained anywhere.

## Sources

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

## Related reading

- [Subagent permissions: delegation does not add authority](/journal/frontier-space-subagent-permission-inheritance/)
- [Inspect sandbox boundaries: a configured container does not move Python tool wrappers](/journal/fg2-inspect-sandbox-tool-wrapper-host-execution/)
