Skip to content

feat(tasks): 查看真实任务并预览日程 / inspect native tasks and preview schedules on the web - #12

Draft
Facetomyself wants to merge 12 commits into
feat/web-workbench-session-workspacesfrom
feat/web-workbench-task-inspection
Draft

Facetomyself wants to merge 12 commits into
feat/web-workbench-session-workspacesfrom
feat/web-workbench-task-inspection

Conversation

@Facetomyself

@Facetomyself Facetomyself commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Stacked on #11. Refs sqfcyily#67. Adds an owner-operated task inspection panel to the headless React workbench, not a server for executing imported desktop agent instructions.

  • Reuses the actual desktop task rows, status grouping, ordering, detail header, run history and ScheduleEditor. The page distinguishes saved next-run information from live execution; the server runs no task scheduler. Task instructions are rendered as plain text. Users explicitly choose to read details and explicitly choose a time zone for a preview.
  • Reads a bounded native v1 task file. A missing file is a legitimate empty catalog; unavailable, malformed or over-limit native data is an error and is not reset. The details endpoint omits unknown private metadata. Source fields that users originally authored are presented as data, not commands or links to execute.
  • Pause is the one write, with a second manual confirmation, original-login checks, exact-file revision and strict disk readback. The store changes only the selected record’s status and updatedAt, preserving history, cached next-run time, unknown fields and untouched native bytes. No creation, resume, immediate execution, role change, model call or command runner is exposed.
  • The headless preview invokes the portable Desktop scheduling function in bounded workers for both once and recurring cron. Ready checks in a normal workbench remain independent of task-file validity. Includes time-zone/DST fixtures, disk failure cases, ordinary Chrome interactions with synthetic native records, two-layout visual evidence, and an independent production-image amd64 job. The optional server-browser handoff from feat(browser): 隔离人工网页接管与工作台身份 / isolate manual browser handoff from workbench credentials #7 is a separate outstanding gate.

Verified at 3e8acdc

  • Node 22 and the real sandboxed Chrome client: 114/114 workbench checks, 337/337 headless checks, nine ordinary Chrome business workflows passed. The task flow clicked the native alarm icon, verified saved records/history as plain text, calculated 13:17 UTC without changing the file, cancelled the first pause and confirmed the second, checked that only the two targeted native values changed, and confirmed the result under a fresh login. The separate feat(browser): 隔离人工网页接管与工作台身份 / isolate manual browser handoff from workbench credentials #7 product handoff remains a failing gate, so the combined workflow is not all-green.
  • Production image, separately on native linux/amd64 Docker: config sha256:c67c23b4898028add845589b4ea3a75abab57a2fa7ec4dc0b2c963a59804d69d. Both synthetic HTTP/worker tests passed under uid 1000, no external network, no published ports, read-only root, cap-drop ALL. They covered authenticated reads, zone-aware preview, conditional pause and server restart. This was not a deployment on the older target host.
  • Wide/compact PNGs and measured geometry. An initial working design left an empty conversation sidebar; the second layout replaces it with the task tab and restores it when returning to Chats. A 1280px viewport leaves 1224px for tasks and a 570px viewport leaves 514px (previous prototype: 239px). Both retain the 56px original navigation and have zero measured horizontal overflow. The images are actual synthetic-data browser captures, not mockups.
  • node scripts/workbench/check-parity.mjs --coverage validates and reports 21 namespaces, 186 methods: 37 implemented, 32 partial, 113 without a verified implementation scope, 4 desktop-only. The platform value is tracked separately.

Facetomyself added 12 commits November 26, 2026 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant