Commit Graph

2250 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 e9b6e0d86e docs: update WeCom group QR references 2026-09-23 18:02:00 +08:00
Ed1s0nZ bbfcb87103 fix: avoid duplicate summarization token limits 2026-09-23 18:02:00 +08:00
公明 a89f21b49e
Update config.example.yaml 2026-09-22 22:07:38 +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 3aa9274675 fix: make Eino exit and transfer work on AgenticMessage state
Official ExitTool still writes classic Message react state, which breaks supervisor delivery on the Agentic path.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-22 10:44:34 +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
公明 f44adaddf3
Update config.example.yaml 2026-09-18 11:36:54 +08:00
Ed1s0nZ bf1b23f14b fix: prefer exit final_result over supervisor intro text
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>
2026-09-18 11:32:59 +08:00
Ed1s0nZ 569513f375 fix: restrict vendor ignore rule to repository root 2026-09-16 20:30:17 +08:00
Ed1s0nZ 4d53717cd7 test: make sudo failure regression independent of host privileges 2026-09-16 18:34:11 +08:00
Ed1s0nZ f7882be546 feat: manage task process lifetimes and preserve turn history 2026-09-16 17:52:58 +08:00
Ed1s0nZ fd1c13a43d fix: normalize SSE error responses for Eino models 2026-09-14 16:34:22 +08:00
Ed1s0nZ 3a9e5dc7c3 fix: stream summaries and validate completion metadata 2026-09-14 16:16:56 +08:00
Ed1s0nZ 7f5c092eb2 docs: update WeChat group QR code 2026-09-14 13:50:06 +08:00
Ed1s0nZ eca26f0e4d docs: remove sponsorship content and QR image 2026-09-14 13:48:42 +08:00
Ed1s0nZ ac101d8476 feat: add batch task approval settings and fix modal dropdown scrolling 2026-09-13 18:02:43 +08:00
苏尼克 c563567502
fix: startup banner hardcodes 127.0.0.1 regardless of server.host (#307)
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>
2026-09-13 15:27:38 +08:00
公明 6edc70f3fc
Update config.example.yaml 2026-09-08 16:10:29 +08:00
Ed1s0nZ 377be6492a fix: refresh navigation permissions before login and on scoped renders 2026-09-08 15:15:18 +08:00
Ed1s0nZ 94cdf760af feat: persist diagnostic logs with daily rotation and retention 2026-09-08 14:41:46 +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 d6d48c97c0 fix: normalize deepseek config profile 2026-08-25 18:37:08 +08:00
temp d7581a6373 fix: surface summarization model errors 2026-08-25 18:28:47 +08:00
temp 4c011abb9d fix: bound summarization max tokens for claude models 2026-08-25 16:37:45 +08:00
temp e4441f91ad fix: stabilize eino summarization for deepseek 2026-08-25 14:54:02 +08:00
temp 21c6ad9bdf feat: persist hitl default config 2026-08-24 19:45:07 +08:00
公明 e0a2f01427
Update version number to v1.7.17 2026-08-24 18:46:58 +08:00
temp baff533196 fix: disable chat checkpoint resume 2026-08-24 18:42:06 +08:00
temp 474238cfc5 fix: distinguish model original errors 2026-08-24 14:53:02 +08:00
temp b47f8df3b0 fix: avoid inferred retry failure reason 2026-08-24 14:48:37 +08:00
temp a67761e843 fix: surface original Eino retry errors 2026-08-24 14:43:48 +08:00
temp b41596d51f Fix Eino final output fallback capture 2026-08-24 14:32:27 +08:00
temp d80e27e950 Respect OpenAI reasoning profile for DeepSeek-named models 2026-08-24 13:55: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
公明 bf761e9cd5
Update config.example.yaml 2026-08-19 17:36:35 +08:00
公明 d640ef09c8
fix: 为 Eino agentic 路径补充 tool_call/tool_result 配对防御中间件 (#265) (#266)
agentic 路径(单代理模式)缺少 toolPairReconciler 和 orphanToolPruner,
当 summarization 截断历史破坏配对后,序列化到 OpenAI API 触发 400
"insufficient tool messages following tool_calls message"。

新增 AgenticMessage 版本的 reconciler 和 pruner,与 classic 路径对齐。

Co-authored-by: temp <temp@tempdeMacBook-Pro.local>
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-19 17:29:25 +08:00