Repository navigation
Conversation
…inks drawer, and dispatch presets Signed-off-by: maxliux5 <5958865+maxliux5@users.noreply.github.com>
…esets Signed-off-by: maxliux5 <5958865+maxliux5@users.noreply.github.com>
loopx-agent
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · gpt-6.2-sol · OpenAI · runtime_reported · xhigh
[P2] 派工 preset 更新后,相同请求应继续读回原任务。 相同 clientRequestId 和完全相同的调用参数,第一次派工后仅修改线程 preset 的 effort,重试即从 reused=true 变为 409 client_request_id_conflict。现有分支先重算实时 preset,再将这些参数与已写入的任务比较。调用方因此无法用原请求读回已受理的任务。 受审实现
动机 / Motivation
该改动影响 Workbench 主对话里的派工操作者和使用稳定 request ID 的调用方。 主对话里的派工和巡检原先堆在输入框上方。操作者需要就地定位任务、打开详情,并少填重复的派工选项。 Timeline 在原时间位置展示活动,保留已失败项的原因,详情和 preset 继续使用 Workbench 已有入口。 本轮验证隔离本地入口与已发布首屏截图。 实证使用真实任务服务和 SQLite,审批保持挂起,未连接生产 Core 或真实模型。 现有幂等约定
改动思路 / Approach
复用现有 dispatch service、任务账本与线程跳转。新设置用于解析首次派工的默认 Agent、模型与 effort。 时间线将状态留在发生的位置,详情抽屉保留验收项、进度和跳转。本轮覆盖 Workbench Daemon、SQLite 任务账本与 Web,变更 32 个文件,新增 5,567 行,删除 120 行。 桌面时间线 · 桌面详情 · 窄屏时间线 · 窄屏详情
具体改动 / Changes
-
TIMELINE。交错展示派工与巡检,保留失败原因与跳转入口。
-
PRESET。线程优先的默认 preset 与显式选项在原派工入口生效。
-
IDEMPOTENT_REPLAY。重投相同派工意图读回原任务,设置变化不改变请求身份。
-
时间线按已知 Turn 起始时间交错排列,例行巡检折叠,失败与需要处理的工作留在原位置。 Timeline 实现
-
实体详情保留验收项、进度和原线程链接。相同标题的实体不会在普通正文中自动抢占链接。 详情实现
-
Daemon 通过已有派工入口接收显式的模型和 effort,省略值时优先采用线程 preset。 派工选项解析
对主干的风险 / Risks
第一次派工已在账本落成,重发完全相同的请求前,只把线程 preset 的 effort 从 medium 改为 high。 基线在修改设置后仍以 reused=true 返回原任务。两个版本都保留一条账本记录,测试中的待审批任务没有调用 createThread 或 startTurn。 候选第一次保存 medium,设置改变前也正常复用。改变后返回 409,账本仍只有原来的一条任务。独立运行 Web 888 项与 Daemon 48 项,全部通过。六个工作区 typecheck、生产构建和 git diff --check 通过。
我的整体评价 / Verdict
要求修改精确提交 e727f5c。首次派工保存规范化的调用意图,重试先按原 intent 校验并回读原任务。实时 preset 只用于首次接纳和原设计允许重新发起的情况。保留同一 ID 搭配不同请求时的冲突检查,并为旧账本记录保留兼容路径。
同一提交的公开桌面和窄屏截图覆盖默认对话与展开详情。 截图由作者在合成工作区采集。本轮独立检查像素与组件测试,实际浏览器滚动和焦点回位仍沿用作者证据。
English verdict: REQUEST_CHANGES at e727f5c. A byte-identical spawn retry must return the original task after a dispatch preset changes. Compare the persisted request intent before resolving current defaults.
Signed-off-by: maxliux5 <5958865+maxliux5@users.noreply.github.com>
…an overrides, periodic patrol summaries, and Fold.images history projection Signed-off-by: maxliux5 <5958865+maxliux5@users.noreply.github.com>
…llery lightbox, seenAt fade, + menu, inline PlanCard, patrol & Fold.images) Signed-off-by: maxliux5 <5958865+maxliux5@users.noreply.github.com>
Signed-off-by: maxliux5 <5958865+maxliux5@users.noreply.github.com>
…from horizontal image thumbnails Signed-off-by: maxliux5 <5958865+maxliux5@users.noreply.github.com>
Summary
Delivers LoopX Workbench's unified timeline/entity/presets foundation plus 6 core Workbench UX upgrades (reconciled cleanly with latest
mainat9e4730c13f):Core Foundation (Initial PR #10266)
TimelineLoopCards.tsx,timeline-stream.ts,ThreadView.tsx): Chronologically interleaves dispatched child task cards (TimelineDispatchCard) and supervision patrol records (TimelinePatrolCard/TimelinePatrolRoutineRow) inline inside the Goal main conversation stream, collapsing routine background checks into> 已在后台处理.markdown-links.ts,EntityMarkdown.tsx,EntityDetailDrawer.tsx,StewardConversation.tsx): Turnstask://,todo://,goal://links and matched entity titles into calm brand-blue interactive links opening a right-side desktop drawer or mobile sheet while preserving scroll position.--effortSupport (dispatch-presets.ts,DispatchPresetDialog.tsx,steward-dispatch.ts,bin/loopx-context): Deterministic preset ordering ([thread]→[global]→[custom]→[builtin]) and end-to-end--effortpropagation.6 Core UX Upgrades (
9aa3cd78f3+edf012ae71)Default
.htmlSandbox Preview +预览 | 源码Toggle (threads.ts,App.tsx,ThreadView.tsx,PreviewPanel.tsx,FilesPanel.tsx,paths.ts).html/.htmlinks in chat opens the isolated-origin sandbox preview (PreviewPanel) by default instead of dumping plain text source..html/.htm/.svginside secondarybrowseRoots(e.g..local/playground/*.htmlfrom a worktree via__root/<idx>/..., keeping sibling relative assets working) and explicitly referenced external single.html/.svgfiles via single-file__ref/<hash>/<basename>(preserving strict 404/403 isolation on sibling directory files, traversals, and non-previewable files).预览 | 源码segmented toggle to bothPreviewPanelandFilesPaneltop bars for.html/.htm/.svg.Compact Multi-Image Thumbnail Strip + Multi-Image Gallery
Lightbox(ImageStrip.tsx,image-places.ts,Lightbox.tsx,ThreadView.tsx,styles.css)image-places.ts) render as a single-row compact horizontal scrolling thumbnail strip (~82px tall).Lightboxto multi-image gallery mode (keeping single-image props backward-compatible) withi / Ncounter, filename header, prev/next buttons, desktop← / →keyboard navigation, mobile horizontal touch swipe, interactive filmstrip, zoom, and download.Strict Task Status Bucketing & Persistent
seenAtAuto-Fade (supervision.ts,MainConversationDock.tsx,App.tsx,workbench-surface.css)进行中(in_progress) strictly torunningandqueued_workspacetasks; settled unblockedidletasks move into lightweight完成未看(unseen_done) so finished tasks no longer inflate进行中.seenAttimestamps inlocalStorage(calli.loop.taskSeenAt.v1): opening the child thread (seenAt >= settledAt/updatedAt) or supervision acceptance (completed/review_accepted) immediately fades the task into collapsed已完成(done) and persists across reloads.Minimalist Composer + Universal Bottom-Left
+Menu (Composer.tsx,ComposerMenu.tsx,Popover.tsx,DispatchPresetDialog.tsx,App.tsx)+ 派工button from the composer and the duplicate prominent+ 派工button from the进行中panel header.+Popover menu unifying Upload image/file, Manual dispatch, and Default dispatch presets (DispatchPresetDialog).Inline Dispatch Plan Card (
TimelinePlanCardinTimelineLoopCards.tsx,timeline-stream.ts,steward-dispatch.ts,http.ts,api.ts)awaiting_approvaltasks byplanId(and supports user-initiated manual dispatch drafts) into a compact inline派活计划card anchored chronologically in the stream.Agent · model · effortbacked bydispatch-presets.ts) and Permission / Workspace chips, remember policy (仅本次/设为本会话/设为全局), and开始派发/取消. ExtendsPOST /api/steward/plans/:planId/approvewith validated per-taskoverrides; on confirm, collapses in-place into compactTimelineDispatchCardrows.Patrol Timeline Readability, Periodic Patrol Summary, &
Fold.images(timeline-stream.ts,TimelineLoopCards.tsx,steward-supervision.ts,history.ts,work-images.ts,ThreadView.tsx)agent_reported:or snake_case codes on the first line; raw details tucked behind展开→技术详情), while routine background checks stay folded under> 已在后台处理.steward_loop_patrol_digest,periodic_patrol_summary) insteward-supervision.tsthat posts a single concise Chinese summary only when the main conversation is idle and settled pending-review or blocked tasks exist (silent when nothing needs attention).work-images.tsand persisted ontohistory.workinhistory.ts) and renders them as a shared compact horizontal thumbnail strip (Fold.images) directly beneath the work fold toggle, opening into the multi-image galleryLightbox.Delivery Brief
apps/workbench(@loopx/workbench-daemonand@loopx/workbench-web); all 3 i18n locales (zh.ts,en.ts,ja.ts) synced; no control-plane or Goal Authority contract changes.preview.ts),dispatch-presets.tssettings contract,Lightbox, andPopoverprimitives; introduced sharedImageStrip(reused by both reply images andFold.images) andwork-images.tsextraction helper with full unit + Chromium parity.First-Screen Visual Evidence
edf012ae71(built@loopx/workbench-daemon+@loopx/workbench-webproduction bundle served on isolated ephemeral loopback app + preview ports with a synthetic Core server,LOOPX_WORKBENCH_LOCAL_SCAN=off, and syntheticloopx-demoworkspace — no public preview link).1440×960(Light & Dark) and Mobile390×844(Light & Dark), verified0pxhorizontal overflow and0page/unexpected HTTP errors.WorkGroupwithFold.imagesstrip, clickable.local/playground/loopx-workbench-playground.html, 3-image bulleted list coalesced into an 82px horizontal strip, liverunningtask (进行中 1), settled unblockedidletask (完成未看 1), 2-taskawaiting_approvalinlineTimelinePlanCard, collapsed routine patrol row, substantive@督办巡检pending-verification card (rawagent_reported:hidden behind展开), and periodic patrol summary.1440×960) — Inline Plan Card, Patrol Summary, Buckets & Minimalist Composer1440×960) —.htmlSandbox Preview &预览 | 源码Source Toggle +Fold.images& Compact Strip1440×960) — Multi-Image Gallery Lightbox & Inline Plan Card Preset Chooser1440×960) — Universal+Popover Menu & Post-Dispatch /seenAtAuto-Fade State390×844) — Overview (Light)390×844) —+Popover Menu (Light)390×844) — Overview (Dark)Verification
cd apps/workbench && npm run typecheck): PASS across all 6 workspaces (@loopx/workbench-daemon,@loopx/workbench-web,@calli/ext-board,@calli/ext-loopx,@calli/ext-memory,@calli/ext-voice).npx tsx --test): 198/198 PASS acrosspreview.test.ts,history.test.ts,dispatch-presets.test.ts,main-conversations.test.ts,steward-inbox.test.ts,steward-supervision.test.ts,steward-dispatch.test.ts,steward-ledger.test.ts,steward-promote.test.ts, andapi.test.ts.npm test -w @loopx/workbench-web): 900/900 PASS (including newworkbench-ux-upgrades.test.ts,image-places.test.ts,i18n.test.ts,timeline-stream.test.ts,main-conversations.test.ts,loop-cycle-icon.test.ts).@calli/ext-board43/43 PASS,@calli/ext-loopx4/4 PASS.cd apps/workbench && npm run build): PASS (@loopx/workbench-daemon,@loopx/workbench-web,@calli/ext-loopx).edf012ae71, synthetic Core):.local/playground/loopx-workbench-playground.html→ opened isolated sandboxPreviewPaneliframe (HTTP 200 on preview port), toggled源码→FilesPanel(预览 | 源码), and toggled back to预览.<= 115pxtall) &Fold.imagesbeneath collapsedWorkGroup; clicked 2nd thumbnail → galleryLightbox(2 / 3,screen-2.png) →ArrowRight(3 / 3) →ArrowLeft(2 / 3) →Escape.进行中 1strictly excludes finishedidletask (完成未看 1); clicked finished task → returned & reloaded page →完成未看stayed0and moved into collapsed已完成 1.+ 派工removed; bottom-left+Popover exposes Upload, Manual dispatch, and Default dispatch presets.TimelinePlanCardpreset override (Claude 深度审查), thread default persistence, and in-place collapse into compactTimelineDispatchCardrows on开始派发.@督办巡检Chinese headline/summary (no rawagent_reported:on first line) with展开revealing技术详情, plus0pxhorizontal overflow and0page/unexpected HTTP errors across Desktop/Mobile Light/Dark.python3 scripts/check_rfc_bilingual.py --base origin/main --head HEADPASS; all new commits DCO-signed (git commit -s); diff & screenshots audited for zero private data or local paths.Boundary Checklist
loopx-demoworkspace withLOOPX_WORKBENCH_LOCAL_SCAN=off).check_rfc_bilingual.pypassed).Signed-off-bytrailer (git commit -s).