fix(background-panel): output自适应终端高度 + Ctrl+B显示已运行时间#110
Merged
Conversation
BackgroundTasksPanel Detail视图的output区域原硬编码最大10行,改为根据终端实际可用高度动态计算。Ctrl+B提示新增已运行时间显示,running bash每200ms刷新。 修改内容: - background_tasks_panel.rs 删除DETAIL_OUTPUT_MAX_LINES常量,output_inner.height.saturating_sub(2)动态计算 - background_tasks_panel_test.rs 新增3个测试:大终端全部显示/小终端截断/空输出 - message_render.rs ShellCommand和ToolBlock两处Ctrl+B提示上方新增(Xm Xs)已运行时间行 - render_thread.rs running_bash_needs_control_b_hint_rebuild改为running bash超2秒每200ms重建 特性/影响: - Output面板行数自适应终端高度,不再硬编码10行 - Ctrl+B提示带已运行时间,用户能直观判断脚本执行时长 Co-Authored-By: mimo-v2.5-pro <XiaomiMiMo@cc-code>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
改动
修改文件
background_tasks_panel.rs删除DETAIL_OUTPUT_MAX_LINES,动态计算background_tasks_panel_test.rs新增测试message_render.rsShellCommand/ToolBlock 两处新增时间行render_thread.rs持续重建更新时间