fix(session): 修正会话常驻上限与休眠状态#427
Merged
Merged
Conversation
deepcoldy
added a commit
that referenced
this pull request
Jul 10, 2026
#427 新增「运行时统计」行(session-runtime-stats)后未同步更新 .sessions-page 的 grid-template-rows,导致 minmax(0,1fr) 弹性行错落到筛选栏(#filters)上被撑高, 视图舞台(.sessions-view-stage)被挤入隐式行 → 筛选栏与状态板列重叠/错位。两条规则 各补一个 auto 行(bulk-bar 显示=5 行 / 隐藏=4 行)使弹性行回到视图舞台。 session-board-count 计数徽章固定 width:26px,三位数(如 340)溢出圆形。改为 width:auto + min-width:26px + 横向 padding,单/双位数仍是圆、三位数自动成 pill (radius-full 已具备)。 隔离 HTML(真实 style.css+真实 DOM)+agent-browser 程序化验证:修前弹性行落 filters (h 284px)、徽章 overflowX 3px;修后 filters 回 34px 自然高、view-stage 得 1fr、 筛选栏与状态板 16px 间隔无重叠、徽章 340 成 45px pill overflowX 0、单位数仍 26px 圆。
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.
改了什么
status=dormant,清理旧进程状态,不再把可恢复会话误标为空闲或已关闭。botmux list识别suspendedColdResume,不再把刻意休眠的会话当僵尸记录清理。为什么改
原逻辑的 30 个上限约束的是每个 Bot 的后台进程数量,但界面把它描述为“活跃会话”,用户会把可恢复的逻辑会话也算进去。除此之外:
botmux list的僵尸判断没有区分“刻意休眠”和“意外丢失进程”,会误删可冷恢复记录。影响面
worker-pool/ daemon 路径,对所有 CLI 适配器生效。验证
HOME=<clean-temp> pnpm test:471 个测试文件、7678 项测试全部通过。pnpm build:通过。pnpm switch:here && botmux restart:41 个 Bot daemon 与 Dashboard 全部启动。origin/master(包含 React Dashboard 重构与后续提交),无冲突。