Commit Graph

554 Commits

Author SHA1 Message Date
sycmacmini 6ff1722ccb fix: skills list collapsed to a 16px sliver, unscrollable on phones
A user reported the Skills page still would not scroll vertically. This was a
seventh bug class none of the existing checks covered: a height-locked flex
column whose inner scroller is squeezed to nothing.

.page-content-with-pagination is height:100% + overflow:hidden, and #skills-list
is flex:1 + min-height:0. On a phone the stats cards and search bar above the
list consume the whole column, so the list collapsed to a 16px box holding
5623px of skill cards — and because the parent cannot scroll either, everything
past that sliver was unreachable.

Make the page body the single scroller instead, give the list its natural
height, and drop the bottom-pinned pagination bar into the flow. Same shape
fixed on the RBAC roles tab body (28px).

Added check 9 to mobile-audit.mjs for this class: an overflow-y:auto region
under 140px tall holding at least twice its height in content, with no
scrollable ancestor. It found both cases above and now reports 0.

Also honoured the upstream 2-up stats grid at <=768px, which a later rule was
overriding into four full-width cards that pushed the list below the fold.

Audit at 390x844 and 360x800 across 31 pages: all nine checks 0. Desktop
1440x900 unchanged. Frontend tests 17 pass / 2 pre-existing failures.
2026-09-29 07:22:22 +08:00
sycmacmini 5521a0c95d test: add unified mobile audit and clear every finding it made
Consolidates the six mobile bug classes hit this session into one repeatable
gate: web/static/js/mobile-audit.mjs. Drives headless Chrome over every route
and reports horizontal overflow, squeezed panes, content pushed off-screen and
clipped, scroll containers missing touch-action, text truncated with no swipe
to reveal it, and sub-44px tap targets.

  node mobile-audit.mjs --all --width=390
  node mobile-audit.mjs --url=/api-docs --width=360

Running it across all 31 SPA pages plus /api-docs found real defects the
earlier narrower probes missed:

- .workflow-sidebar and .workflow-main both sit on grid-row:1 upstream for the
  side-by-side editor, so collapsing .workflow-page-content to one column
  stacked the editor on top of the node palette. Release the row placement when
  collapsing columns — overriding grid-template-columns alone is not enough.
- .c2-task-list-container / .c2-task-list / .c2-events-list-container were
  overflow-y:hidden, so C2 rows below the fold were unreachable once they grew
  taller on a narrow screen.
- C2 tasks/events filter bars pinned controls to 36px at ID specificity, and
  the chat HITL shortcut label and skills pagination truncated at 360px.
- /api-docs does not load mobile-nav.js, so its textareas and swipe regions
  never got the touch pass the SPA gets; added the equivalent in CSS.

Two audit false positives fixed along the way: it counted a parent against its
own child as a 100% overlap, and compared inline text runs.

Final: at 390x844 and 360x800 across 31 pages, and on /api-docs — overflow 0,
unreachable 0, truncated 0, overlaps 0, tap<44 0, scrollers missing
touch-action 0. Desktop 1440x900 unchanged. Frontend tests 17 pass, 2 fail
(pre-existing hitl assertions, verified unrelated).
2026-09-29 01:39:33 +08:00
sycmacmini 29a8b0018f feat: make the API docs page usable on phones
/api-docs is its own template with its own inline stylesheet, so none of the
mobile work on index.html reached it. On a phone .api-docs-content kept its
desktop `grid-template-columns: 280px 1fr`, leaving the endpoint list 86px
wide, and the group sidebar ate half the screen.

Added api-docs-mobile.css, linked after the template's inline <style> so it
wins the cascade: single-column content grid, group nav becomes a sticky-free
horizontally scrollable chip row, header padding-right (280px reserved for the
action buttons) and the 2rem title drop, endpoint cards and code blocks go
full width, inputs move to 16px so iOS stops zooming on focus, and touch-action
is named on the horizontal swipe regions.

Params tables read "cate…", "arra…" before: table-layout:fixed plus
percentage widths plus nowrap gave a 50px column for `categories`. Switched to
content-sized columns — names now read in full and the description column
swipes inside the existing .api-table-wrapper.

Verified at 390x844: main pane 86px -> 366px, 146 endpoints and 23 group chips
render, no page overflow. Desktop 1440x900 unchanged (280px sticky sidebar,
1048px main).
2026-09-29 01:06:38 +08:00
sycmacmini 90d0b38a26 fix: restore finger scrolling on phones
A user could not scroll the 角色管理 page at all on a real iPhone. The DOM
looked healthy — .page-content had overflowY:auto with clientHeight 591 and
scrollHeight 3181 — so every layout probe reported clean. The failure was in
the touch layer, which only a finger exposes.

Two causes, both introduced or left by the mobile work:

- I had set overscroll-behavior:none on html/body. With the body height-locked
  to 100dvh, iOS Safari then refuses to drag any nested overflow container.
  Removed from the root; it now lives only on the individual scrollers as
  `contain`, which stops pull-to-refresh chaining without disabling touch scroll.
- The inner scrollers had no touch-action and no -webkit-overflow-scrolling.
  With the body locked, every scrollable region on every page is an inner
  container, so each one needs them.

Added a JS pass that finds any element that actually scrolls and sets
touch-action pan-x/pan-y accordingly, covering module-specific containers the
CSS list cannot enumerate; it re-runs after route changes and on a short delay
because lists render asynchronously.

Audited with a new touch-scroll probe: 49 scroll containers across 24 pages,
0 missing touch-action, 0 pages with a bad root overscroll. Drawer interaction
still 13/13, overflow and off-screen probes still 0 at 390px, desktop 1440px
unchanged.
2026-09-29 00:59:04 +08:00
sycmacmini 5ea642ed74 fix: unblock controls pushed off-screen on phones
A user reported the platform RBAC page looked wrong on a real phone. Two
distinct defects, neither caught by the overflow or pane-width probes:

- The 角色管理 tab sat at x=369 in a 390px viewport. The segmented nav is a
  flex row with 210px min-width tabs, so the second tab was pushed past the
  edge and clipped by an overflow:hidden ancestor — the view was unreachable
  on a phone. Stack it with a single-column grid.
- #rbac-metric-context is capped at max-width:min(25%,360px) for the desktop
  inline pill, which is 88px on a phone, so its text wrapped into a 160px-tall
  empty capsule.

Also fixed the same nowrap-overflow pattern on the tool-guard enable toggle
and the external-MCP status pills. Note the MCP case needed .external-mcp-stats,
not .tools-stats — trace the clipped node's ancestor chain before patching.

Added an unreachable-content probe (element past the right edge whose ancestor
chain offers no horizontal scroll) and ran it across 24 pages: 0 hits.
Overflow probe still 0 at 390px; desktop 1440px unchanged.
2026-09-29 00:47:20 +08:00
sycmacmini 1a5cd835d1 fix: stop narrow side-by-side panes crushing content on phones
A user reported the settings page still looked wrong on a real phone even
though the overflow probe was clean: a 200px tab rail left only 170px for
content. Nothing overflowed, so the metric never caught it — fitting in the
viewport is not the same as being readable.

Added a pane-width probe to find the whole class of problem, then stacked or
wrapped each offender: settings (tab rail becomes a sticky scrollable chip
row), the workflows meta bar (its toolbar was nowrap + flex-shrink:0, so
.workflow-main{overflow:hidden} silently clipped the Save button, and the page
was a fixed-height grid sized for a side-by-side editor), the info-collect
4-column form row, asset toolbar selects, MCP tools actions/pagination, RBAC
summary and section toolbar, HITL reviewer row and C2 session meta.

Verified: 390x844 still 0 overflow offenders; workflows/settings/asset-library
content panes now 170-190px -> 390px; desktop 1440x900 unchanged.

Remaining probe hits are legitimately small controls (toggle switches, pills),
not crushed content.
2026-09-29 00:24:46 +08:00
sycmacmini 569022f487 feat: honour reduced motion and allow standalone phone display
The drawer/sheet transitions added for phones ignored the user's motion
preference, so gate them behind prefers-reduced-motion.

Phone users reach the WebUI from a server URL and stay on it, so add a
site.webmanifest and the apple/mobile web-app meta tags. Standalone mode
removes the browser URL bar, which otherwise costs vertical space this
dense UI needs. Pinch-zoom is deliberately left enabled.
2026-09-28 23:55:22 +08:00
sycmacmini cea0512598 feat: make the WebUI usable on phones
Users run this project on a server and open the WebUI from their phone, but
the layout was desktop-only: the 200px sidebar stayed in flow at 390px wide,
leaving ~190px for content, and body{overflow:hidden} clipped the rest so it
was unreachable. Header actions, data tables and modals all overflowed too.

The main sidebar and the chat conversation list become off-canvas drawers
opened from a hamburger / 会话 chip, dismissed by backdrop tap, Escape, route
change or swipe. Header secondary actions collapse to an icon strip on a
second row. Tables scroll horizontally instead of being crushed, modals become
bottom sheets, and touch targets reach 44px with 16px inputs so iOS no longer
zooms on focus. Safe-area insets and 100dvh handle notched phones and mobile
browser chrome; hover-only controls and scrollbars get @media (hover:none)
fallbacks.

Deliberately additive: a new mobile.css loaded last plus mobile-nav.js, so the
desktop stylesheet is untouched and every rule is gated behind a media query.

Verified headless at 360x800, 390x844, 768 and 1024 across 22 pages:
horizontal overflow offenders 574 -> 0, undersized touch targets 545 -> 48
(remaining are 24px checkboxes), and 13/13 drawer interaction assertions pass.
Desktop at 1440x900 is unchanged.
2026-09-28 23:48:48 +08:00
Sycun 470eb5ead1
feat: add runtime storage cleanup with per-category retention (#310) (#313)
Runtime artifacts (agent workspaces, tool-output spill, C2 payloads, chat
uploads, workflow checkpoints, diagnostic logs) previously accumulated
without bound: most were only removed when a conversation or project was
deleted, and tmp/c2 plus workflow checkpoints were never removed at all.

Add a storage cleaner with named per-category tasks (Gitea-style), a
settings page tab, and a background sweep that is off by default so
upgrading never deletes existing data.

Safety properties, since mis-deleting live task data costs far more than
the disk saved:
- dry-run is the default; a real cleanup requires dry_run=false together
  with confirm=true at the API layer, not just a frontend dialog
- sessions active within active_grace_hours are always skipped, and a
  failed activity lookup skips conservatively (fail closed)
- directories whose conversation/project no longer exists are reclaimed
  as orphans after orphan_grace_days
- scanners never follow symlinks and every candidate path is confined to
  its category root; deletion renames to a .tmp-for-deletion marker first
  so a crash leaves recoverable residue instead of a half-deleted dir
- storage:* permissions are admin-only; without the grantSystemRolePermissions
  skip the default branch would have given operators an irreversible
  file-deletion right

Also fix two confirmed leaks: DeleteConversation left chat_uploads files
on disk (their rows already vanished via ON DELETE CASCADE), and workflow
checkpoints had no deletion path at all.

Co-authored-by: Parallels <parallels@kali-linux-2025-2.localdomain>
2026-09-25 14:46:23 +08:00
Ed1s0nZ 38b96ec67a feat: add TypeSafe Jev as HITL audit backend
Let audit_agent approve or reject with one System One call instead of chat JSON, while keeping the OpenAI-compatible backend as an option.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-22 21:15:53 +08:00
Ed1s0nZ 8da3c8c51b fix: use a closed ring for project preview task stats
Replace the small refresh-arrow icon so it no longer renders as a spike at compact sizes.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-18 17:21:01 +08:00
Ed1s0nZ f7882be546 feat: manage task process lifetimes and preserve turn history 2026-09-16 17:52:58 +08:00
Ed1s0nZ ac101d8476 feat: add batch task approval settings and fix modal dropdown scrolling 2026-09-13 18:02:43 +08:00
Ed1s0nZ 377be6492a fix: refresh navigation permissions before login and on scoped renders 2026-09-08 15:15:18 +08:00
Ed1s0nZ 6ad9ea2d13 feat: add configurable tool call blocking and monitoring 2026-09-08 09:44:32 +08:00
temp c70da22de7 Remove conversation grouping feature 2026-08-26 15:00:09 +08:00
temp fbbe984005 fix: refresh ai channel reasoning selects 2026-08-25 18:51:19 +08:00
temp abc00c1fef fix: auto-detect deepseek profile in settings 2026-08-25 18:40:49 +08:00
temp 21c6ad9bdf feat: persist hitl default config 2026-08-24 19:45:07 +08:00
temp e218316c55 Add token usage tracking and UI refinements 2026-08-24 00:05:05 +08:00
Codex a34cab431a Improve conversation preview layout 2026-08-23 20:09:56 +08:00
temp 3bcf4458c5 Fix finalization cleanup for pending tool executions 2026-08-23 19:57:17 +08:00
RuoJi6 bec2d2faf1
修复多会话任务栏抖动、会话跳回与停止失效 (#264)
* fix(web): stabilize active task ordering

* fix(chat): preserve navigation during conversation startup

* fix(tasks): guarantee hard cancellation

* fix(chat): bind navigation and hard stop targets

* fix(chat): prevent replay from reclaiming navigation
2026-08-19 13:54:30 +08:00
RuoJi6 c7cc0bc9da
修复人工审批长内容遮挡及刷新审批人状态异常 (#263)
* docs(hitl): remove stale asm_list_resources references

* fix(hitl): constrain approval layout and preserve reviewer
2026-08-19 13:31:37 +08:00
公明 24d06c5220 Fix missing results for parallel Eino tool calls.
Merge streaming tool outputs by CallID with ConcatMessages, pair same-name historical results, and FIFO-match duplicate IDs so concurrent nmap 1/2 and 2/2 stay distinct.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-19 00:29:12 +08:00
公明 286511d0a8
Add files via upload 2026-08-18 20:48:50 +08:00
公明 7823fb6b0c
Add files via upload 2026-08-15 11:03:13 +08:00
公明 9c0621819f
Add files via upload 2026-08-15 10:13:12 +08:00
公明 e691c5d9c6
Add files via upload 2026-08-15 01:33:33 +08:00
RuoJi6 a1615143be
feat(ui): 显示 Agent 任务进度列表 (#251) 2026-08-14 10:44:03 +08:00
公明 7c45011074
Add files via upload 2026-08-13 22:15:08 +08:00
RuoJi6 eb6bab574f
优化项目对话、刷新续流、实时滚动与工具状态恢复 (#245)
* feat(chat): add project-based conversation sidebar

* feat(chat): refine Codex-style conversation UI

* feat(chat): add Codex-style conversation workflow

* feat(ui): 优化对话框与项目侧边栏交互

* fix(chat): 修复暗色输入框圆角填色

* fix(chat): 恢复输入区分层错位布局

* fix(hitl): isolate reviewer state per conversation

* feat(hitl): 增加双入口审批与倒计时进度

* fix(hitl): 汇总项目审批并隔离对话状态

* fix(ui): 修复审批状态与无项目新任务

* fix(ui): 优化审批状态与对话切换性能

* fix(ui): 修复中断任务审批仍计时

* fix(ui): 修复多对话并发切换卡顿

* fix(hitl): 主动同步审批并关闭中断状态

* fix(ui): 固定项目审批汇总为绿色

* feat(ui): 同步系统模型与推理强度

* feat(ui): 完善项目侧栏预览与新建入口

* fix(ui): 防止无项目文件夹误展开

* fix(ui): 防止长历史对话滚动误触审批

* fix(ui): 修复对话操作并补充项目置顶

* fix(ui): 移除对话分组并调整项目置顶排序

* feat(ui): 优化迭代导航与审批交互

* fix(hitl): 将 write_file 加入内置免审批工具

* fix(chat): 支持回车发送与 Shift 回车换行

* fix(chat): 优化对话刷新与 Codex 风格交互

* fix(ui): 显示对话具体更新时间

* fix(ui): 优化对话刷新与项目加载

* fix(ui): 修复 Agent 审查文字裁切

* fix(chat): 修复刷新续流与多标签页同步

* fix(chat): 修复滚动跟随与中断任务终态

* fix(ui): 修复流式滚动跳动与工具状态恢复

* fix(ui): 修复刷新后流式输出停止粘底
2026-08-13 21:28:37 +08:00
公明 d3714c9913
Add files via upload 2026-08-06 17:12:21 +08:00
公明 30513dbbfd
Add files via upload 2026-08-06 10:50:34 +08:00
公明 b9854192c6
Add files via upload 2026-07-31 21:04:11 +08:00
公明 5747ebc612
Add files via upload 2026-07-29 11:42:23 +08:00
公明 52595e07e5
Add files via upload 2026-07-28 18:15:54 +08:00
公明 98ca395edd
Add files via upload 2026-07-28 11:01:17 +08:00
公明 c616822cd6
Add files via upload 2026-07-28 10:37:49 +08:00
公明 cc0233d7b4
Add files via upload 2026-07-24 17:05:44 +08:00
公明 8cb317cbd6
Add files via upload 2026-07-24 15:50:11 +08:00
公明 c326adbb66
Add files via upload 2026-07-24 14:53:44 +08:00
公明 7d1e9bdac4
Add files via upload 2026-07-24 14:08:19 +08:00
公明 151b445c74
Add files via upload 2026-07-24 11:44:35 +08:00
公明 f0b1955059
Add files via upload 2026-07-23 20:18:55 +08:00
公明 9bbc28c14a
Add files via upload 2026-07-23 20:10:57 +08:00
公明 5c13819f66
Add files via upload 2026-07-23 19:37:45 +08:00
公明 a7190b8399
Add files via upload 2026-07-23 19:21:50 +08:00
公明 a83490f29c
Add files via upload 2026-07-23 18:56:18 +08:00
公明 93ab362b6f
Add files via upload 2026-07-22 21:01:56 +08:00