fix(dashboard): 修复会话控制期间webchat文本框禁用的问题 #3040
Open
+14
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fixes #3037
可能影响的PR #2892
Motivation / 动机
修复了会话控制触发期间,webchat输入框被禁用导致用户无法响应会话控制的问题。
Modifications / 改动点
dashboard/src/components/chat/Chat.vue
删除了Input在isConvRunning时的disable属性。
新增activeSSE计数器用于正确判断当前会话状态,防止session_waiter执行期间新的输入使界面显示异常(progress-circular消失)。
在流式输入结束后设置isStreaming以恢复文本框。
Verification Steps / 验证步骤
检查输入框是否可用。
检查progress-circular是否仍正常显示(表示会话未停止)
检查流式输出期间输入框是否正确禁用、输出结束后输入框是否恢复。
Screenshots or Test Results / 运行截图或测试结果
Compatibility & Breaking Changes / 兼容性与破坏性变更
Checklist / 检查清单
requirements.txt
和pyproject.toml
文件相应位置。/ I have ensured that no new dependencies are introduced, OR if new dependencies are introduced, they have been added to the appropriate locations inrequirements.txt
andpyproject.toml
.Sourcery 总结
在对话控制期间启用 webchat 输入,并且仅在活跃流式传输期间禁用它,同时使用新计数器精确跟踪流式传输会话,以维护对话指示器并在流式传输完成时恢复输入字段。
Bug 修复:
增强功能:
Original summary in English
Summary by Sourcery
Enable the webchat input during conversation control and only disable it during active streaming, while accurately tracking streaming sessions with a new counter to maintain the conversation indicator and restore the input field when streaming completes.
Bug Fixes:
Enhancements: