Files
deepseek-harness/missions/tasks/20260720-0246-inputbar-fix
imccyu 0681ac47de chore(gui): mission work logs
chore(gui): mission work logs — cordis design finalization, tool-card wire archive, incident records

chore: missions

chore: missions

chore(gui): mission ledger — batch-2 answers, parallel dispatch state, jsdom coverage re-scope

chore(gui): ledger — night-mode standing orders (self-commit small, no push, 5-min refresh)

chore(gui): ledger — jsdom batches 2-4 landed (233 green), coverage probe next

chore(gui): ledger — web-ui coverage probe 65%, four-tier fill plan approved

chore(gui): ledger — cordis-impl B1 state after third API drop, decisions on file

chore(gui): ledger — 01:32 patrol snapshot (jsdom tier-1 landed, coverage-fixer probed)

chore(gui): ledger — 01:37 patrol (peer src trio landed, coverage-fixer still silent)

chore(gui): ledger — 01:42 patrol (jsdom tier-2 landed, peer committed x2, coverage-fixer 2nd probe)

chore(gui): ledger — coverage diagnosis complete (6-file gap list), web-ui at 91.4%

chore(gui): ledger — 01:46 patrol (B1 done, jsdom tier-3 landed, coverage fix batch running)

chore(gui): ledger — 01:51 patrol (jsdom tails x2 landed, B2 underway)

chore(gui): ledger — 01:56 patrol (gateway.ts 337 lines, checkpoint T-7min)

chore(gui): ledger — hold/pending split ruling, coverage-fixer externalize-or-restart ultimatum

chore(gui): ledger — 02:01 patrol (B2 done, jsdom final arms, coverage ultimatum pending)

chore(gui): ledger — 02:03 checkpoint executed (fixer2 respawn, four lanes released, three owners cold-started)

chore(gui): ledger — all six lanes acked, type isolation first live proof (client closure clean)

chore(gui): ledger — 02:08 patrol (all seven lanes active, wire carrier assembled)

docs(gui): respond-design task checkpoint — apiproxy wire-layer recon done

chore(gui): ledger — P0-2 contributor AGENTS.md landed (dd28a5019)

docs(gui): respond-design checkpoint 2 — host-side recon (stub respond, frame types, approval seam, ACP answerer precedent)

docs(gui): OOP debt inventory — seven territories, 2 real debts (createApiProxy, createFixtureApi), rest ruled keep-as-is

docs(gui): disambiguation note on the archived i18n design task

chore(gui): ledger — 02:12 patrol (exclude removed, mixed-knife incident under reconciliation)

chore(gui): ledger — 02:15 wave (jsdom mission closed, OOP audit done, B3 isolation proof, mixed-knife resolved)

chore(gui): ledger — 02:17 patrol (attribution reversal filed, arch-session probed)

chore(gui): ledger — 02:22 patrol (B4 done, B5+B6 merged batch, arch-session deadline set)

docs(gui): respond-design checkpoint 3 — client-side recon (pending map, PendingCard onRespond stub, AbstractApiClient.respond ready, bootHost missing approval mounts)

docs(gui): peer carrier territory review — 2 fixes (SSE cancel leak, route-reservation guard), 1 ruling ask (RPC-log visibility), compliance ledger

chore(gui): ledger — 02:27 (arch-shell respawn, territory review verdicts routed, ask-deny finding flagged)

docs(gui): P1-5 respond design page complete — pending registry, wire answerer, client state machine, first-wins arbitration

chore(gui): ledger — 02:31 patrol (respond design complete, B5 wire smoke green, shell knife 1 underway)

docs(gui): respond design — add §0 status warning (web host ask defaults to deny), mount-behavior delta, no-timeout ruling with Config discipline

chore(gui): ledger — 02:42 patrol (respond line closed pending review, B7 last piece underway)

docs(gui): respond design contract review — direction pass, 2 doc fixes (settle-order contradiction, answering-state race), A/B/C compliance ledger

docs(gui): respond design — contract review fixes (R1 verify-before-delete arbitration, R2 answering+resolved-frame transition, ask dual-source wording, rejected-is-ok-value note)

chore(gui): ledger — 02:46 patrol (respond line final, two user decisions distilled, arch-shell deadline)

docs(gui): respond review addendum — contract-gap ruling: approve plan A (ApprovalRequest.id), wire unchanged, drop plan B backscan

chore(gui): ledger — cordis B7 summit: real-browser 10/10 green, user acceptance criterion proven

docs(gui): respond design — contract gap #4 approved as plan A (ApprovalRequest.id), backscan fallback retired, blade 0 prepended

docs(gui): respond design — final polish (owner-approval vs user-go-ahead wording, implementation handoff notes)

chore(gui): ledger — 02:51 (shell-exec third respawn with operational script, respond line 4-knife final)

chore(gui): ledger — 02:53 wave (respond five-knife true final, B7 closed 12/12, client.ts green)

chore(gui): ledger — 02:56 patrol (cordis closeout bounced pending R1/R2/N1, shell-exec first sign of life)

chore(gui): ledger — 03:01 patrol (R1/R2/N1 remediation in flight across four files)

chore(gui): ledger — cordis line officially closed and archived, verified on disk (24 knives, 12/12, reviews closed)

chore(gui): ledger — 03:06 patrol (shell-exec final window, lowered first-knife bar)

chore(gui): ledger — 03:11 patrol (shell line iced-broken: three registries on disk)

chore(gui): ledger — 03:15 patrol (quiet window, both active lanes within threshold)

chore(gui): ledger — 03:20 patrol (shell five files up, api-proxy plan reported)

chore(gui): ledger — 03:25 patrol (shell migration in flight with history-preserving moves, webserver green)

chore(gui): ledger — 03:30 patrol (shell knife-1 in verification, api-proxy patching)

chore(gui): ledger — shell knife 1 accepted (694cecc53), knife 2 released

chore(gui): ledger — 03:40 patrol (knife 2 pre-move stage, cold-list spec appears)

chore(gui): ledger — 03:45 patrol (rpclog moves staged, api-proxy two specs in flight)

chore(gui): ledger — 03:54 patrol (knife-2 code done, coverage full-run final check)

docs(gui): coverage-fixer task ledger — fixer2 takeover, per-file fix log, isolated reportsDirectory pitfall

chore(gui): ledger — coverage lane closed and accepted (a19f069a5), the PR #443 CI fix knife

chore(gui): ledger — 04:04 patrol (knife-2 calibration, sole active lane)

chore(gui): ledger — shell knife 2 accepted (f8fb77b95), knife 3 released as final night task

chore(gui): ledger — 04:19 patrol (knife-3 past half: callback chain through, ToolCallDetail up)

chore(gui): ledger — night closeout summary: seven lanes closed, wake-up decision sheet

chore: missions

chore: missions

chore: missions

chore(gui): mission-local browser/probe verify scripts under missions/scripts/

The six acceptance/probe scripts move here as mission-side working
material (headers and relative imports adjusted for the new location):
carrier-errors, rpclog-panel, session, session-real,
webserver-backpressure, webserver-hardening.

chore(gui): verify-relocate mission log

chore(gui): verify-relocate mission log — R1 guard addendum

chore(gui): gates-continue mission log — CI-equivalent sequence all green

chore(gui): VS Code 扩展体系双边设计调研报告

chore(gui): 调研追加 4.5 节——git 扩展数据面与 scope 绑定

docs(gui): web plugin system RFC — walkthrough + design notes

docs(gui): RFC — restore existing SSE/POST as the v1 transport; envelope rides on it (D16)

docs(gui): RFC — envelope demoted to chan-dispatch, scope out of envelope, rpc-log cut, peer deferred, scope tree is native cordis (D17-D21)

docs(gui): RFC — hooks re-derived from component needs: useWatch/useAction only, useService removed; sessionHub cut, projections user-space, router rename, loader-only root (D22-D25)

docs(gui): RFC — drop stale fork vocabulary (vendored cordis has Fiber only; scope = mintScope pattern), hook idempotence contract (D26-D27)

docs(gui): RFC — session precision seam: plugins read scope key (host paradigm), React gets it from tree position via SlotOutlet (D28)

docs(gui): RFC — domain hooks owned by plugins over framework primitives; useConversation paradigm carried over (D29)

docs(gui): RFC — ctx services are the inter-plugin API (cordis proper); declarations are wire-only; get(id) returns scoped ctx (D30)

docs(gui): RFC — full ctx.conversation walkthrough: root-singleton scope-sensitive service, caller-ctx scope key, get(key) as scoped ctx (D31)

docs(gui): RFC — no client-side agents collection: session state machine already expresses the duality; agent resolution stays host authority (D32)

docs(gui): RFC — v1 stays session-precision, no agent-level isolation; incarnation/agent-axis designs archived in ledger (D33)

docs(gui): RFC walkthrough — full rewrite to final state (D16-D33 consolidated), end-to-end chain restored

docs(gui): RFC — apiproxy demoted to generic channel routing; domain RPCs dissolve into owner plugins (D34)

docs(gui): RFC — TS-interface-first wire contract (zod internal), conversation owns the dialogue frame with pluggable views (D35)

docs(gui): RFC — page skeleton (sidebar+conversation), projects as plugin not service, nested slots via owner registries (D36)

docs(gui): RFC — SlotMap declaration-merging slot model: single register API, inject-as-ownership, FC-typed registration, typed outlets (D37)

docs(gui): RFC — slot props whitelist: identity, display params, materialized snapshot slices, stable UI callbacks (D38)

docs(gui): RFC — end-to-end data flow: three transforms, equality protocol table, immer placement; i18n/theme kept standard (D39-D40)

docs(gui): RFC — full external-injection model: props carry values + stable injected hooks; shared/client/react example rewritten (D41-D43)

docs(gui): RFC final trio — modules.md (agent implementation spec), architecture.md (human walkthrough), plugins.md (business plugin inventory)

docs(gui): RFC — props three-source merge (scope-standard useSession auto-injected); keyed key vs list id disambiguated (D44)

docs(gui): RFC — inject comment says what it is (the React-facing props bundle); SessionHandle rename; snapshot-production story unified on buildSnapshot

docs(gui): RFC architecture — full React component tree walkthrough: props three sources, slot vs plain children, hook taxonomy per node

docs(gui): RFC — module map finalized (ui-slots/web-react/connection/runtime/ui-*/web); slots onChange replaced by cordis events; toolcall dimension; detail sidebar default-collapsed with toolName-keyed routing

docs(gui): RFC plugins — openDetail relay chain: toolcard calls chat-view injected action, chat-view relays to conversation sidebar

chore(gui): progress ledger — full archive rewrite: RFC outcome digest, open gaps, dispatch plan, cold-start entry

docs(gui): RFC grill pass 1 — SlotScope axis (root/session) on declares, Gate dependency inversion, inject handle by scope, W5 acceptance list, gantt relay chain fixed

docs(gui): figma analysis — sidebar/projects/sessions 区域交互视觉理解报告

docs(gui): figma 解析报告 — details 面板/多视图 tabs/未来功能区盘点 + slot 需求清单

docs(gui): figma 对话主区解析报告 — 消息流/tool calls 变体/审批接管输入框/Header tabs/视觉 token

docs(gui): plugins.md rewritten from figma analysis — three-column layout, full slot reservation table, selection channel, composer-takeover approvals, phased scope

docs(gui): layout dynamics ruled (drag+collapse both rails, details yields first, composer swap-panel, same-component transition); toolviews promoted to named scope-aware registry

docs(gui): P-I scope locked (details minimal, dual theme, chat-view, custom toolview sample); teammate dispatch plan — 6 owners by package, dependency-driven waves, contract arbitration

docs(gui): P-I api-contracts (full inter-package API spec) + dispatch plan (T0 skeleton knife, 7-dev roster, task briefs, milestones)

docs(gui): api-contracts v2 — scope tree in P-I, bundle loader + per-plugin CSS isolation in P-I, agent-scoped toolviews live, zustand engine, renames (SessionProvider/ObservableSnapshot/SessionBinding), router owns all shell view-state

docs(gui): services roster + progressive loading (no blocking loadAll), SlotsService as real cordis Service, renderSlot/renderSuspenseSlot duo, ui-traj teammate

docs(gui): loading-chain gaps ruled — dev=rebundle no HMR, ui-primitives package, externals on globals (no import map), host injects __DSH_BOOT__ into HTML (zero round-trip)

docs(gui): api-contracts v3 + dispatch v2 final — 12 packages, services merged in, progressive loader, global externals, __DSH_BOOT__ injection, 8-dev roster with convo split and ui-traj

docs(gui): v3 amendments — router renamed ctx.layout, ui-trajectory has no service (pure consumer sample), wait-for-settled loading (no Suspense in P-I, ledger 6b)

chore(gui): progress — pre-compact final state: v3 revision chain, 8-dev roster, T0 procedure, doc authority order

docs(gui): authority banners — modules/architecture get v3 term-mapping headers, walkthrough marked as archived process doc

docs(gui): cssdesign token set is THE theme source (--dsw-* variables, data-ds-dark-theme switch); recorded in contracts + progress

docs(gui): architecture.md full v3 rewrite — loading chain, 12-package map, service roster, slot/inject/toolviews, data flow, component tree, perf model, all current

docs(gui): contracts — UI plugins are dual-entry host plugins (node half serves client asset via ctx.webPlugins; __DSH_BOOT__ derives from it; client-closure gate back in scope)

docs(gui): contracts — closure-factory bundles with DI require (no globals), package.json dshWeb declarative discovery (no serve ritual), create-then-send empty state with project picker, ancestry() for breadcrumb, unload stubbed until HMR, props.renderSlot confirmed

docs(gui): dshClient declaration (inject/platform/immediately, exports./client), closure-DI require loading — synced across contracts/dispatch/modules/architecture/walkthrough

chore(gui): progress — record final loading-chain rulings (dshClient declaration, closure-DI require, startSession) before compact

docs(gui): architecture.md — developer-facing whole-web architecture on master baseline 6b16a67cb: what exists, what is new, no process narrative

docs(gui): architecture.md — self-contained whole-web architecture: absorbs still-valid substance from the branch RFCs (host layering, four-quadrant RPC, object layer, testing tiers) under the new plugin system as the override

chore(gui): progress — final pre-compact snapshot: contracts digest, apiproxy purity ruling, T0 procedure with first-action list

docs(gui): api-contracts v3 §3.1 — apiproxy purity principle with three-way existing-code verdicts

docs(gui): api-contracts v3 — immediately reinterpreted as static-infra group (8-package dshClient scope, boot manifest reconciliation)

docs(gui): api-contracts v3 — immediately corrected to early-load dynamic group (prod shell must not rebundle); loader shell-held; bundles register their export surface into module table

docs(gui): architecture — align with immediately=early-load dynamic group ruling; loader shell-held; module-table registration of loaded bundles

docs(gui): T0 checklist — 12-package skeleton table, 4-cut sequence, mv/attic/rewire rules (pre-drafted, awaiting go)

docs(gui): t0-checklist — pin figma-flows findings (missing font-family base vars, three alias vars behind upstream)

docs(gui): dispatch v2.1 — drop cordis-web salvage wording, two-wave staffing, loader/immediately boundary updates

docs(gui): progress + t0-checklist ledger — T0 landed, staffing status, execution accounting

docs(gui): api-contracts v3 — arbitration round 1: renderBody deps, RootBindingProvider, flush default sync, prune current, loader subpath, config-source P-I bar

docs(gui): v3 §3.2 connection 导出清单附录(rt-core 对账)+ rt-core 实现计划档案

docs(gui): progress — T1 milestone, arbitration round 1 ledger, fw-react timeout escalation

docs(gui): progress rolling update — per-line battlefield state at 00:2x, mailbox-vs-contract lesson, small-batch discipline reinforced

docs(gui): fw-react notes — v3 §2 complete, seven knives, T1/T2 follow-ups

docs(fw-slots): archive — four packages landed, open tails logged

docs(gui): progress — framework layer complete (web-react five, fw-slots four packages), T2 gated on rt-core runtime knife only

docs: api-contracts

docs: style-spec

docs

docs(gui): tsconfig convergence ruling — no host.json, root resumes host-aggregate duty, typecheck = root + client aggregates

docs(gui): missions 根三份 07-18 世代档案加「已被取代」头注——指向 web-plugin-rfc 现行权威并注明新旧对应

missions

docs(gui): progress rewritten for post-closeout state — wave ledger, architecture finale, teammate roster with handover notes, pending-user-command queue
2026-07-22 21:30:30 +08:00
..
2026-07-22 21:30:30 +08:00
2026-07-22 21:30:30 +08:00
2026-07-22 21:30:30 +08:00
2026-07-22 21:30:30 +08:00
2026-07-22 21:30:30 +08:00
2026-07-22 21:30:30 +08:00

InputBar 修缮(2026-07-20)

对照 deepseekchat(deepsuite-frontend apps/chat,只读)系统修缮 GUI 对话输入框。产物:bugs.md(清单)→ compare.md(对照表)→ 修复 → verify-session.mjs §E1-11 防回归断言。

进展

批次 内容 状态
1 playwright 探针(probe.mjs)过 13 项交互,bugs.md 落盘:6 实锤 + 3 潜伏 + 1 提升项 ✅
2 deepseekchat 对照表 compare.md(11 交互点,采纳/不采纳含理由) ✅
3 修复:InputBar.tsx/module.css 重写 + Session.sendDraft/setDraft + Notifier.notifyNow ✅ 探针 13/13 绿
4 防回归:verify-session.mjs 新增 §E1-11a–g 7 断言;三验收脚本全绿;截图 .artifacts/inputbar-{multiline,running}.png ✅
5 样式对齐(第二阶段派发):布局尺寸照 deepseekchat 基线重排——居中卡片 840px(<1024 降 712)、圆角 24、textarea 上/按钮行下两段、16px/24px、min 2 行 max 14 行(336px)、34px 胶囊钮靠右 gap 10;新 token --radius-xl/--shadow-card 入 global.css+web-styling.md §1;§2 基线补输入卡片行 ✅ 三脚本绿+新截图
6 按钮区拍板改版(2026-07-20 用户令):单 34px 圆形主按钮嵌右下——空闲实底三角「发送」、运行中原地变软底方块「停止」(同色系非红);hover 上拉 flyout(零指针间隙+150ms 延时收起)出「插话」(空闲置灰)+运行中「排队发送」;键盘 Alt+Enter=运行中插话。verify-session 新增 §E1-7d/7e,重写 §E1-6a/7c/11g ✅ 41 断言绿,commit b729d8b64
7 停止后再发消息「插错位置」bug:真 host 复现(早停在 reasoning 期)——中止 turn 永不 finalize,残留 partial(含 running 工具卡)一直渲染在后续消息下方=视觉上「新消息插到旧回复前」。修法:turn/end 副作用清扫同 turn 的 partial+openCalls(session.ts applyEventSideEffects)。防回归 E2-4a/4b 入 verify-session-real。(web-dev-2 审计 S2 同根因独立发现,互相印证;S2 提出的「verify-session-real 缺 stop 用例」正由 E2-4 补上) ✅ 真 host 复现→修复→断言绿
8 按钮语义定稿+Codex 视觉:idle=单发送圆钮无菜单(空闲 queue/steer 无差别);running=停止圆钮+有草稿时 hover 上拉【排队|插话】(空草稿不出菜单,preconditions 中途变化菜单跟随开合)。视觉照 Codex App:32px 实心正圆+内联 SVG 图标(↑箭头/■方块),菜单改圆角卡(--radius-m+--shadow-panel)。§E1-6a/6c/7c 断言随语义重写 ✅ 42 断言绿+real 9 断言绿
9 批 7 修正(用户实测「停止后整条消息消失」——清扫过头):turn/end 清扫改定格——partial 有可见内容时冻结为 interrupted 终态节点(正文保留+「已停止」标记+脉冲停,AssistantMessageNode 加 interrupted?: true,分数 seq 保持流内顺序),running 工具卡转「已中断」终态卡(灰点非红)而非消失;空内容 partial 才整删。live 定格与 history 重放同走 applyEventSideEffects → 刷新重建一致(E2-4c 断言钉死)。E2-4a 改「定格保留」语义 ✅ real 10 断言绿
10 发送后强制置底(用户新单):ConversationView 两规则并存——「用户发言=强制置底」(send 时 arm 一次性 forceBottom,跨草稿清空 re-render 保持 armed 直到气泡入 DOM)与「流式=离底不跟随」;跟随判定从「更新后量距底」改为 scroll 监听维护的 更新前 atBottom 标志(修根因:追加高块瞬间超阈值导致跟随链断裂)。§E1-11h 断言钉死 ✅ fixture 44 断言绿
11 深色模式切换(插单):侧栏左下角月亮/太阳图标钮;html data-theme 翻转+localStorage dsc.theme+mount 首绘前应用;机制住 utils/theme.ts 纯本地模块(将来迁 Settings 零逻辑变化)。暗色四面过检无不可读项 ✅ commit 6ca6574ce
12 运行中锁输入(拍板 3,取代批 8 的 hover 菜单方案;起因=用户实测「running 时 Enter 发出但不回显」):running 态 textarea disabled(灰、草稿保留显示)、排队/插话菜单整体取消、停止唯一可用;turn 结束解禁+refocus。InputBar 大幅简化(flyout 状态机全删)。§E1-6a-c/7c/7f/11e 按新行为重写;probe P4/P5 改锁定语义 ✅ fixture 44+real 10+probe 13 全绿

修复清单(bug → 修法)

bug 修法
B1 IME 组合期 Enter 误发送 composition ref + end 延时 10ms(Safari keydown 晚于 compositionend)+ nativeEvent.isComposing/keyCode 229 双保险
B2 中段编辑光标跳末尾 Notifier 新增 notifyNow() 同步通知,setDraft 走它(受控输入必须同拍刷新;其余路径仍微任务批量)
B3 软换行不增高 镜像 div 自增高(textarea absolute 铺满 wrapper,mirror 渲 draft+'\n' 撑高,max-height 135px≈6 行封顶)
B4 按钮发送后焦点丢失 三按钮 onMouseDown preventDefault + refocus
B5 停止钮布局跳动 停止钮常驻占位,visibility 切换(data-hidden)
B6 Enter autorepeat 连发 keydown 忽略 e.repeat
B7 在途重复发送 Session.sendDraft 在途锁(settled 后释放——此后再发是合法排队)
B8 在途打字被清稿吞 乐观清稿:发送时清、失败回填 sent+新输入;在途新输入不受 ok 影响
B9 停止失败错标「发送失败」 snapshot.promptError 类型 RpcError→PromptError{op:'send'|'stop',error},错误条按 op 出文案
B10 切会话不聚焦 InputBar 挂载/enable 时 autofocus(容器 key=sessionId 重挂载即切会话)

附加(对照表采纳):Ctrl/Meta+Enter 插入换行走 document.execCommand('insertText') 保 undo 栈(批次 6 改版后 Alt+Enter 让位给「运行中插话」快捷键)。

契约偏差(设计稿 §C.6/§A.2 相对)

  1. promptError: RpcError|null → PromptError|null(新增 op 判别;InputBarProps 同步)。
  2. sendDraft 清稿时机:「ok 后清」→「发送时乐观清 + 失败回填」;新增在途锁。

留档

  • probe.mjs:13 项探针(可重跑);shot.mjs:截图脚本。
  • 防回归:scripts/verify-session.mjs §E1-11a–g(IME/repeat/光标/自增高/焦点/清稿/布局)。