Flickering Issue and Blank Screen on Instruction Writer Expansion #5425

Closed
opened 2026-02-21 18:10:55 -05:00 by yindo · 1 comment
Owner

Originally created by @manali-7 on GitHub (Sep 6, 2024).

Originally assigned to: @iamjoel on GitHub.

Self Checks

  • 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 (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

Version 0.7.3

Cloud or Self Hosted

Cloud

Steps to reproduce

Steps to Reproduce:

1.	Open the application and navigate to the create from blank -> Chat bot -> Basic section.
2.	Click to expand the instruction writer to full screen add large details in the instructions writer.
3.	Observe the screen behavior after expansion.

Check attached video for more clarity.
https://drive.google.com/file/d/1VyVKuS3-Ahq-MrAeyfSabFm8ioVbSFXx/view?usp=sharing

✔️ Expected Behavior

The instruction writer should expand smoothly without any visual disruptions, and all interface elements should be properly displayed.

Actual Behavior

When expanding the instruction writer, the screen flickers, and parts of the interface go blank intermittently.

Originally created by @manali-7 on GitHub (Sep 6, 2024). Originally assigned to: @iamjoel on GitHub. ### Self Checks - [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 (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [X] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [X] Please do not modify this template :) and fill in all the required fields. ### Dify version Version 0.7.3 ### Cloud or Self Hosted Cloud ### Steps to reproduce Steps to Reproduce: 1. Open the application and navigate to the create from blank -> Chat bot -> Basic section. 2. Click to expand the instruction writer to full screen add large details in the instructions writer. 3. Observe the screen behavior after expansion. Check attached video for more clarity. https://drive.google.com/file/d/1VyVKuS3-Ahq-MrAeyfSabFm8ioVbSFXx/view?usp=sharing ### ✔️ Expected Behavior The instruction writer should expand smoothly without any visual disruptions, and all interface elements should be properly displayed. ### ❌ Actual Behavior When expanding the instruction writer, the screen flickers, and parts of the interface go blank intermittently.
yindo added the 🐞 bug label 2026-02-21 18:10:55 -05:00
yindo closed this issue 2026-02-21 18:10:55 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Sep 6, 2024):

Hey there, @manali-7! 👋 I'm here to help you with any bugs, questions, or even becoming a contributor. Let's squash those bugs together!

The flickering and blank screen issues when expanding the instruction writer to full screen could potentially be related to the _sashListener handling the layout adjustments. The _sashListener listens to changes in the sash positions and adjusts the layout accordingly, which might be causing the visual disruptions.

Here is the relevant code snippet:

this._sashListener.add(this._eastSash.onDidChange(a => {
    _ && (b = a.currentX - a.startX, this.layout(_.height + v, _.width + b), this._onDidResize.fire({ dimension: this._size, done: !1, east: !0 }))
}));
this._sashListener.add(this._westSash.onDidChange(a => {
    _ && (b = -(a.currentX - a.startX), this.layout(_.height + v, _.width + b), this._onDidResize.fire({ dimension: this._size, done: !1, west: !0 }))
}));
this._sashListener.add(this._northSash.onDidChange(a => {
    _ && (v = -(a.currentY - a.startY), this.layout(_.height + v, _.width + b), this._onDidResize.fire({ dimension: this._size, done: !1, north: !0 }))
}));
this._sashListener.add(this._southSash.onDidChange(a => {
    _ && (v = a.currentY - a.startY, this.layout(_.height + v, _.width + b), this._onDidResize.fire({ dimension: this._size, done: !1, south: !0 }))
}));

This code dynamically adjusts the layout dimensions based on the sash movements, which might be causing the flickering and blank screen issues [1].

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Sep 6, 2024): <!-- Greeting --> Hey there, @manali-7! 👋 I'm here to help you with any bugs, questions, or even becoming a contributor. Let's squash those bugs together! <!-- Answer --> The flickering and blank screen issues when expanding the instruction writer to full screen could potentially be related to the `_sashListener` handling the layout adjustments. The `_sashListener` listens to changes in the sash positions and adjusts the layout accordingly, which might be causing the visual disruptions. Here is the relevant code snippet: ```js this._sashListener.add(this._eastSash.onDidChange(a => { _ && (b = a.currentX - a.startX, this.layout(_.height + v, _.width + b), this._onDidResize.fire({ dimension: this._size, done: !1, east: !0 })) })); this._sashListener.add(this._westSash.onDidChange(a => { _ && (b = -(a.currentX - a.startX), this.layout(_.height + v, _.width + b), this._onDidResize.fire({ dimension: this._size, done: !1, west: !0 })) })); this._sashListener.add(this._northSash.onDidChange(a => { _ && (v = -(a.currentY - a.startY), this.layout(_.height + v, _.width + b), this._onDidResize.fire({ dimension: this._size, done: !1, north: !0 })) })); this._sashListener.add(this._southSash.onDidChange(a => { _ && (v = a.currentY - a.startY, this.layout(_.height + v, _.width + b), this._onDidResize.fire({ dimension: this._size, done: !1, south: !0 })) })); ``` This code dynamically adjusts the layout dimensions based on the sash movements, which might be causing the flickering and blank screen issues <sup>[[1]](https://github.com/langgenius/dify/blob/main/web/public/vs/editor/editor.main.js)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#5425