# Qwen Code remembers reasoning settings by model

- URL: https://blog.orchardai.ai/qwen-code-sdk-per-model-settings/
- Published: 2026-11-27

TL;DR: The Qwen Code TypeScript SDK’s November 27 release bundles CLI 0.28.7. The interactive CLI restores reasoning effort and context window for each model when users switch models or relaunch.

## What changed

Qwen Code’s TypeScript SDK 0.1.39 bundles CLI 0.28.7. The interactive CLI saves the chosen reasoning effort and context window per model. It restores those preferences on a model switch and after relaunch. The CLI release also lists a breaking change for automated workflows. Tool results and errors pass through unchanged, and the CLI removes its own model-loop detection and automatic tool-call cap. [SDK release notes](https://github.com/QwenLM/qwen-code/releases/tag/sdk-typescript-v0.1.39) · [CLI release notes](https://github.com/QwenLM/qwen-code/releases/tag/v0.28.7)

## Our take

A developer might choose a larger context window when mapping a codebase and a smaller one when asking for a short review. Remembering settings by model makes it easier to move between those tasks. It also means testing the model name alone leaves out part of the setup. Two teammates using the same model could have different saved settings that influence latency or the scope of material the agent sees.

Test the settings in the interactive CLI by configuring two approved models with different preferences, switching between them, and checking that the intended values survive a relaunch. If you embed the SDK, check how your caller handles tool results and errors and whether it enforces a deadline and a limit on tool activity. Give a test tool a well-defined error and confirm the caller records it, ends the run within the intended budget, and leaves enough detail for a person to investigate.

## Source

Qwen Code · 2026-11-27 · [Qwen Code TypeScript SDK 0.1.39 release notes](https://github.com/QwenLM/qwen-code/releases/tag/sdk-typescript-v0.1.39)
