Skip to content

feat(workbench): inline plan card, universal plus menu, review triage, and multi-image gallery - #10288

Closed
maxliux5 wants to merge 1 commit into
codex/workbench-timeline-bluelinks-presetsfrom
codex/workbench-plan-card-plus-triage-gallery
Closed

maxliux5 wants to merge 1 commit into
codex/workbench-timeline-bluelinks-presetsfrom
codex/workbench-plan-card-plus-triage-gallery

Conversation

@maxliux5

@maxliux5 maxliux5 commented Dec 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

Stacked cleanly on top of PR #10266 (codex/workbench-timeline-bluelinks-presets), delivering four cohesive LoopX Workbench UX upgrades validated across desktop and 390px mobile in light and dark themes:

  1. Minimalist Composer + Universal + Menu (Composer.tsx, ComposerMenu.tsx, App.tsx)

    • Removes the exposed right-side + 派工 button from the composer bar and standardizes the bottom-left affordance on a single universal + icon on both desktop and mobile.
    • Consolidates attachments, manual task dispatch (手动派工), and default dispatch preset settings (默认派活预设) inside the + menu.
  2. Autonomous In-Chat TimelinePlanCard + Single-Dot Default Control + Daemon Override Persistence (TimelineLoopCards.tsx, timeline-stream.ts, DispatchPresetDialog.tsx, steward-inbox.ts, steward-dispatch.ts, http.ts)

    • Renders awaiting_approval multi-task plans directly inside the chat timeline in authored order (fixing newest-first reversal in steward-inbox.ts) and suppresses duplicate TimelineDispatchCard rows until the plan is approved.
    • Supports inline clickable preset and workspace/permission chips (filtering permissions against each agent's declared capabilities.permissionModes and normalizing on agent switch), plus a compact single-line ○ 保存为默认配置 dot toggle with progressive inline 升级为全局 upgrade (matching DispatchPresetDialog).
    • Extends POST /api/steward/plans/:planId/approve to persist per-task agent / model / effort / permissionMode / workspacePolicy overrides before dispatching; once approved, the plan card collapses in place into compact timeline dispatch cards.
  3. Clear 进行中 / 待验收 / 已完成 Task Triage (supervision.ts, MainConversationDock.tsx, App.tsx)

    • Adds the awaiting_review bucket so 进行中 strictly holds genuinely running tasks while finished-unread / review-pending tasks land in 待验收.
    • Clicking a task to inspect it or clicking one-click ✓ 接受完成 immediately moves it out of 待验收 into 已完成 with live pill count updates.
  4. Compact Horizontal Multi-Image Thumbnail Strip & Multi-Image Lightbox (ThreadView.tsx, Lightbox.tsx, styles.css, workbench-surface.css, i18n/locales/{zh,en,ja}.ts)

    • Automatically displays 2+ images in a single compact horizontally scrollable thumbnail strip (124×84px, corner 1/N badge) instead of stacking tall images vertically.
    • Upgrades Lightbox with multi-image gallery navigation (ArrowLeft / ArrowRight, prev/next stage arrows, unzoomed horizontal swipe, 1 / N counter, and bottom clickable filmstrip).

Delivery Brief


First-Screen Visual Evidence

  • Tested revision: 001ae1585a (production-built @loopx/workbench-daemon + @loopx/workbench-web served on an isolated loopback port with a synthetic LoopX Core and fake ACP/Pi agents; no public preview URL).
  • Viewports & themes: Desktop 1280×860 and Mobile 390×844, Light & Dark (0px horizontal overflow, 0 console/page errors).
  • Attention & populated-page review:
    • Primary question answered: "What tasks is the assistant proposing to dispatch, how do I tweak a chip or remember defaults in one tap, which finished tasks still need my review, and how do I browse multiple images without vertical scroll spam?"
    • Removing the exposed + 派工 button and deduplicating awaiting_approval tasks beneath TimelinePlanCard keeps the composer and active plan card clean in the opening viewport; the single small dot ○ 保存为默认配置 with progressive 升级为全局 avoids vertical bloat on 390px screens; multi-image replies occupy one compact row (84px tall).
View Light Dark / Interaction
Desktop (1280×860) — Inline Plan Card & Universal + Menu Desktop Light: inline TimelinePlanCard with single-dot remember toggle and clean composer Desktop Light: universal + menu consolidating attachments, manual dispatch, and presets
Desktop (1280×860) — 待验收 Triage & 4-Image Strip + Lightbox Desktop Light: awaiting_review pill and one-click accept panel Desktop Light: multi-image Lightbox with counter, arrows, and bottom filmstrip
Desktop (1280×860) — Compact Single-Row Multi-Image Strip Desktop Light: 4 images in single horizontal thumbnail row —
Mobile (390×844) — Plan Card (Light) Mobile (390×844) — + Menu (Light) Mobile (390×844) — Plan Card (Dark)
Mobile Light 390px: compact TimelinePlanCard and single-dot default toggle Mobile Light 390px: universal + menu Mobile Dark 390px: TimelinePlanCard with 0px overflow
Mobile (390×844) — Multi-Image Strip (Light) Mobile (390×844) — Multi-Image Strip (Dark)
Mobile Light 390px: single-row horizontal thumbnail strip with 0px overflow Mobile Dark 390px: single-row horizontal thumbnail strip with 0px overflow

Verification

  • RFC bilingual diff gate: python3 scripts/check_rfc_bilingual.py --base origin/codex/workbench-timeline-bluelinks-presets --head HEAD — PASS.
  • Typecheck: cd apps/workbench && npm run typecheck — PASS (6/6 workspaces).
  • Web unit tests: npm test -w @loopx/workbench-web — 895/895 PASS (including test/plan-card-triage-gallery.test.ts).
  • Daemon steward & preset tests: cd apps/workbench/packages/daemon && npx tsx --test test/dispatch-presets.test.ts test/steward-dispatch.test.ts test/steward-inbox.test.ts test/steward-supervision.test.ts test/steward-ledger.test.ts test/steward-promote.test.ts — 46/46 PASS.
  • Production build & smoke: cd apps/workbench && npm run build and ./scripts/init.sh --no-build --check — PASS.
  • Real Chromium E2E (built daemon + web bundle):
    • Verified authored task order preservation, deduplication of awaiting_approval dispatch cards, inline preset/permission chip editing with capability filtering, single-dot 保存为默认配置 + inline 升级为全局, real POST /api/steward/plans/:planId/approve override persistence, 待验收 2 → one-click ✓ 接受完成 → 已完成 2, single-row 4-image strip (uniqueTops=1, height=84px, 0px horizontal overflow on 390px), and multi-image Lightbox navigation.
    • Existing packages/e2e/test/answer-images.spec.mjs PASS.
  • Commit hygiene: 1/1 commit DCO-signed (001ae1585a), zero private paths or internal context in tracked diff or screenshots.

…iage, and multi-image gallery

Signed-off-by: maxliux5 <5958865+maxliux5@users.noreply.github.com>
@mergify

mergify Bot commented Dec 6, 2026

Copy link
Copy Markdown

This pull request has merge conflicts with codex/workbench-timeline-bluelinks-presets and cannot be merged
until they are resolved. Please rebase or merge the base branch, @maxliux5.

Choose the remote for the base repository, not an out-of-date fork.
For a fork clone, first inspect git remote -v; upstream must point
to https://github.com/loopx-project/loopx.git. If it is absent, add it
with git remote add upstream https://github.com/loopx-project/loopx.git.
Then run:

git fetch upstream
git rebase upstream/codex/workbench-timeline-bluelinks-presets
# Resolve each conflict, git add the resolved files, then git rebase --continue.
git push --force-with-lease origin HEAD

For a same-repository clone whose origin points to
https://github.com/loopx-project/loopx.git, use origin instead of
upstream for fetch/rebase. If you prefer merging the base, use
git merge <base-remote>/codex/workbench-timeline-bluelinks-presets and push normally.

Keep the DCO Signed-off-by trailer on every commit when you rebase.
https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork

@mergify mergify Bot added the needs-rebase Mergify: the pull request has merge conflicts with its base branch label Dec 6, 2026
@maxliux5

maxliux5 commented Dec 6, 2026

Copy link
Copy Markdown
Collaborator Author

Superseded by #10266 (which already includes all 6 Workbench UX upgrades cleanly integrated on top of latest main).

@maxliux5 maxliux5 closed this Dec 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-rebase Mergify: the pull request has merge conflicts with its base branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant