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.
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).
/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).
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.
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.
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.
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.
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.
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>
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>
Official ExitTool still writes classic Message react state, which breaks supervisor delivery on the Agentic path.
Co-authored-by: Cursor <cursoragent@cursor.com>
When supervisor exits with a short assistant intro, surface exit.final_result in the final response so the audit report is not dropped.
Co-authored-by: Cursor <cursoragent@cursor.com>
The Web UI startup banner always printed 127.0.0.1, even when
server.host was bound to 0.0.0.0 or a specific interface. This made
users believe the host setting was ignored (the actual listen binding
was correct). Pass the configured host into the banner and expand
wildcard binds to the machine's real addresses so LAN URLs are shown.
Fixes#301
Co-authored-by: sycpro <sycpro@sycprodeMacBook-Pro.local>