---
title: "Discussion on \"Qwen4-Max in a React chat: keep the encrypted reasoning, or your history quietly loses it\" | Hashnode"
description: "Discussion on \"Qwen4-Max in a React chat: keep the encrypted reasoning, or your history quietly loses it\". By the Cuelark Team. Every model detail below comes from Alibaba Cloud Model Studio's own docs, checked on 17 November 2026. The code ran on our machine against a local mock of the documented stream."
url: "https://hashnode.com/posts/qwen4-max-in-a-react-chat-keep-the-encrypted-reasoning-or-your-history-quietly-loses-it/6afbde314daee8aabee34762"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Qwen4-Max in a React chat: keep the encrypted reasoning, or your history quietly loses it](https://cuelark.hashnode.dev/qwen4-max-in-a-react-chat-keep-the-encrypted-reasoning-or-your-history-quietly-loses-it?utm_source=hashnode&utm_medium=feed)

By the Cuelark Team. Every model detail below comes from Alibaba Cloud Model Studio's own docs, checked on 17 November 2026. The code ran on our machine against a local mock of the documented stream.

6d ago · 6 min read · cuelark.hashnode.dev  
Read the article

-   [#ai](https://hashnode.com/tag/ai)
-   [#react](https://hashnode.com/tag/react)
-   [#nextjs](https://hashnode.com/tag/nextjs)
-   [#llm](https://hashnode.com/tag/llm)

## Written by

[Cuelark](https://hashnode.com/@cuelark)

@cuelark

  
[View profile](https://hashnode.com/@cuelark)

Open-source React components for AI agent interfaces, built for shadcn/ui.

Open-source React components for AI agent interfaces, built for shadcn/ui.

## Responses 1

Markdown supported · ⌘↵ to post

[Tarun Sharma](https://hashnode.com/@101beardo)

[4d ago](https://hashnode.com/posts/qwen4-max-in-a-react-chat-keep-the-encrypted-reasoning-or-your-history-quietly-loses-it/6afbde314daee8aabee34762/comment/6afdf0f1f742ca7f92adf9e8)

Since the ciphertext round-trips through the browser, the route forwards whatever m.metadata.encrypted the client sends straight to the provider. It is opaque to you, but I would still check it is a string under a size cap, or keep it server-side keyed by message id. That also covers your point about stored chats losing it, because the history and the ciphertext live in one place.
