Expand all chunks does nothing #21562

Closed
opened 2026-02-21 20:13:12 -05:00 by yindo · 3 comments
Owner

Originally created by @DavideDelbianco on GitHub (Jan 10, 2026).

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.11.2

Cloud or Self Hosted

Cloud

Steps to reproduce

Image

✔️ Expected Behavior

should make the chunks expanded

Actual Behavior

Does nothing

Originally created by @DavideDelbianco on GitHub (Jan 10, 2026). ### Self Checks - [x] I have read the [Contributing Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) and [Language Policy](https://github.com/langgenius/dify/issues/1542). - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report, otherwise it will be closed. - [x] 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.11.2 ### Cloud or Self Hosted Cloud ### Steps to reproduce <img width="1107" height="97" alt="Image" src="https://github.com/user-attachments/assets/18681975-d841-4a22-a7f8-2a9efa7b3f7c" /> ### ✔️ Expected Behavior should make the chunks expanded ### ❌ Actual Behavior Does nothing
yindo added the 🐞 buggood first issuecloud labels 2026-02-21 20:13:12 -05:00
yindo closed this issue 2026-02-21 20:13:13 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Jan 10, 2026):

The "Expand all chunks" feature is handled by a button in the UI that toggles the collapsed/expanded state for all chunks using a shared isCollapsed state in the frontend React components. If clicking the button does nothing, it's likely due to a bug where the isCollapsed state isn't updating or the UI isn't re-rendering as expected—possibly a state/context propagation issue in the Completed or DisplayToggle components, or in how ChunkContent consumes the state. There are no documented workarounds or fixes for this in issues or PRs.

You can try refreshing the page, checking the browser console for errors, or testing in a different browser to rule out local issues. If the problem persists, maintainers may want to review the state management and context wiring in these components for bugs. If you notice any error messages or other symptoms, sharing those could help pinpoint the cause.

References:

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

Chat with Dosu Open in Cursor Join Discord Share on X

@dosubot[bot] commented on GitHub (Jan 10, 2026): <!-- Answer --> The "Expand all chunks" feature is handled by a button in the UI that toggles the collapsed/expanded state for all chunks using a shared isCollapsed state in the frontend React components. If clicking the button does nothing, it's likely due to a bug where the isCollapsed state isn't updating or the UI isn't re-rendering as expected—possibly a state/context propagation issue in the Completed or DisplayToggle components, or in how ChunkContent consumes the state. There are no documented workarounds or fixes for this in issues or PRs. You can try refreshing the page, checking the browser console for errors, or testing in a different browser to rule out local issues. If the problem persists, maintainers may want to review the state management and context wiring in these components for bugs. If you notice any error messages or other symptoms, sharing those could help pinpoint the cause. References: - [Completed component manages isCollapsed state](https://github.com/langgenius/dify/blob/a2e03b811e581674603617a4b13d9d25760c44be/web/app/components/datasets/documents/detail/completed/index.tsx#L98-L763) - [DisplayToggle toggles the state](https://github.com/langgenius/dify/blob/a2e03b811e581674603617a4b13d9d25760c44be/web/app/components/datasets/documents/detail/completed/display-toggle.tsx#L8-L41) - [ChunkContent uses isCollapsed to show/hide content](https://github.com/langgenius/dify/blob/a2e03b811e581674603617a4b13d9d25760c44be/web/app/components/datasets/documents/detail/completed/segment-card/chunk-content.tsx#L23-L53) <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/55ee17c6-5ad7-4b06-9d06-4636fb38475a?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/55ee17c6-5ad7-4b06-9d06-4636fb38475a?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/55ee17c6-5ad7-4b06-9d06-4636fb38475a?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/55ee17c6-5ad7-4b06-9d06-4636fb38475a?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/55ee17c6-5ad7-4b06-9d06-4636fb38475a?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/55ee17c6-5ad7-4b06-9d06-4636fb38475a?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/55ee17c6-5ad7-4b06-9d06-4636fb38475a?feedback_type=other)</sup> [![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/6088a4f4-073a-43f3-b3d4-4f06fb0c05a0/ask?utm_source=github)&nbsp;[![Open in Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=The%20%22Expand%20all%20chunks%22%20feature%20is%20handled%20by%20a%20button%20in%20the%20UI%20that%20toggles%20the%20collapsed/expanded%20state%20for%20all%20chunks%20using%20a%20shared%20isCollapsed%20state%20in%20the%20frontend%20React%20components.%20If%20clicking%20the%20button%20does%20nothing%2C%20it%27s%20likely%20due%20to%20a%20bug%20where%20the%20isCollapsed%20state%20isn%27t%20updating%20or%20the%20UI%20isn%27t%20re-rendering%20as%20expected%E2%80%94possibly%20a%20state/context%20propagation%20issue%20in%20the%20Completed%20or%20DisplayToggle%20components%2C%20or%20in%20how%20ChunkContent%20consumes%20the%20state.%20There%20are%20no%20documented%20workarounds%20or%20fixes%20for%20this%20in%20issues%20or%20PRs.%0A%0AYou%20can%20try%20refreshing%20the%20page%2C%20checking%20the%20browser%20console%20for%20errors%2C%20or%20testing%20in%20a%20different%20browser%20to%20rule%20out%20local%20issues.%20If%20the%20problem%20persists%2C%20maintainers%20may%20want%20to%20review%20the%20state%20management%20and%20context%20wiring%20in%20these%20components%20for%20bugs.%20If%20you%20notice%20any%20error%20messages%20or%20other%20symptoms%2C%20sharing%20those%20could%20help%20pinpoint%20the%20cause.%0A%0AReferences%3A%20%20%0A-%20%5BCompleted%20component%20manages%20isCollapsed%20state%5D%28https%3A//github.com/langgenius/dify/blob/a2e03b811e581674603617a4b13d9d25760c44be/web/app/components/datasets/documents/detail/completed/index.tsx%23L98-L763%29%20%20%0A-%20%5BDisplayToggle%20toggles%20the%20state%5D%28https%3A//github.com/langgenius/dify/blob/a2e03b811e581674603617a4b13d9d25760c44be/web/app/components/datasets/documents/detail/completed/display-toggle.tsx%23L8-L41%29%20%20%0A-%20%5BChunkContent%20uses%20isCollapsed%20to%20show/hide%20content%5D%28https%3A//github.com/langgenius/dify/blob/a2e03b811e581674603617a4b13d9d25760c44be/web/app/components/datasets/documents/detail/completed/segment-card/chunk-content.tsx%23L23-L53%29)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/langgenius/dify/issues/30817)
Author
Owner

@fatelei commented on GitHub (Jan 11, 2026):

Self Checks

  • I have read the Contributing Guide and Language Policy.[x] This is only for bug report, if you would like to ask a question, please head to Discussions.[x] I have searched for existing issues search for existing issues, including closed ones.[x] I confirm that I am using English to submit this report, otherwise it will be closed.[x] 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)[x] Please do not modify this template :) and fill in all the required fields.

Dify version

1.11.2

Cloud or Self Hosted

Cloud

Steps to reproduce

Image ### ✔️ Expected Behavior should make the chunks expanded

Actual Behavior

Does nothing

click the button, no use ?

@fatelei commented on GitHub (Jan 11, 2026): > ### Self Checks > * [x] I have read the [Contributing Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) and [Language Policy](https://github.com/langgenius/dify/issues/1542).[x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general).[x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones.[x] I confirm that I am using English to submit this report, otherwise it will be closed.[x] 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)[x] Please do not modify this template :) and fill in all the required fields. > > ### Dify version > 1.11.2 > > ### Cloud or Self Hosted > Cloud > > ### Steps to reproduce > <img alt="Image" width="1107" height="97" src="https://private-user-images.githubusercontent.com/37332069/534240985-18681975-d841-4a22-a7f8-2a9efa7b3f7c.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NjgxMTU5OTIsIm5iZiI6MTc2ODExNTY5MiwicGF0aCI6Ii8zNzMzMjA2OS81MzQyNDA5ODUtMTg2ODE5NzUtZDg0MS00YTIyLWE3ZjgtMmE5ZWZhN2IzZjdjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjAxMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwMTExVDA3MTQ1MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTYyZTJlZjljNmI3Y2MyNzQwMWQ5ZTMzZTkzNDRmOTRlZWI1ZmRlN2MxN2NhOTc2OWY4YWQ5OTA5NDkxOTlmMTkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.ma1nZlBC0yCFCZlvW1pF0sh5Cqwnp3vP-kpo_EEPA6U"> > ### ✔️ Expected Behavior > should make the chunks expanded > > ### ❌ Actual Behavior > Does nothing click the button, no use ?
Author
Owner

@fatelei commented on GitHub (Jan 11, 2026):

Image Image

i test it, it is ok

@fatelei commented on GitHub (Jan 11, 2026): <img width="1774" height="492" alt="Image" src="https://github.com/user-attachments/assets/6e7b4e09-1f2f-4851-a033-1be21347d709" /> <img width="1662" height="580" alt="Image" src="https://github.com/user-attachments/assets/8bde9cec-f133-433c-bdf4-4ad7a66cffa3" /> i test it, it is ok
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#21562