﻿# When is a released Qwen Code session safe for a worker to claim?

When is a released Qwen Code session safe for a worker to claim? Use a single durable writer claim and measure the wait from session release to confirmed ownership.

Author: Retrivium editorial team
Updated: 2026-11-30
Canonical URL: https://retrivium.ai/journal/daily-20261130-agents-qwen-hosted-harness-pull-claim/
Language: en

Qwen Code v0.29.1 introduced opt-in pull-based placement for released hosted sessions. The release notes describe a hosted harness polling for work instead of receiving a round-robin assignment. The change affects who resumes eligible work and when that resume happens. It does not establish a latency gain or make the option active in an existing deployment.

## What actually changes

A released session is eligible to move, but eligibility alone does not grant permission to write. The execution worker gets an opportunity to claim the session; the durable ownership transition determines who may resume. Keeping those stages visible matters when several workers read at once or when a response comes back after a worker has already timed out.

## Test competing consumers

Set up a test queue with a disposable session and two healthy consumers polling nearly together. Use a harmless operation that appends a marker to a test record. Observe which consumer acquired the writer role and whether a duplicate observation caused a second append. Repeat with a worker intentionally stopped between the poll and the attempted resume.

## Measure the entire handoff

Record the release, poll, claim and first committed operation as separate events. Queue arrival to first poll measures something different from claim to resumed output. Compare a quiet queue with a busy queue and retain logs for unclaimed or expired work. An average based only on completed resumes will conceal abandoned sessions. A useful failure case is a lost reply after the claim is committed. Inspect the durable owner before retrying. A retry should either attach to the existing assignment or end without writing a second marker. Give the control case the same queue traffic so placement is the only variable under study.

## Choose a rollout gate

Require exactly one writer per session, eventual reassignment after a worker disappears, and a waiting time that suits your workload. Keep the option disabled until sandbox runs meet those conditions under failure as well as success. Faster assignment is valuable only if ownership and recovery remain predictable.

## Sources

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

## Related reading

- [How Qwen Code v0.27.0 routes concurrent questions from child agents](/journal/news-qwen-code-concurrent-child-question-routing/)
- [Qwen Code bounds cancellation settlement on its event-bus loop](/journal/week46-agent-qwen-event-loop-cancel-settlement/)
