Files
deepseek-harness/missions/tasks/20260721-0041-app-shell/design.md
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

9.1 KiB
Raw Blame History

P0-1 App 壳 layout 骨架 design(arch-session,2026-07-21)

依据:用户亲拍四点(progress.md 〇-pre #2/#3):左栏 slot 化+RpcLog 迁入、session tabs 骨架留坑、右 detail sidebar 默认收起点 tool 卡展开、React 目录两级制。本页 = 容器结构 + slot 注册形态 + 目录约定 + 迁移映射 + 分刀计划。

1. 布局容器结构(三栏一顶)

┌─────────────────────────────────────────────────────────┐
│ ConnectionBanner(现状保留,fixed 顶条)                    │
├──────────┬──────────────────────────────┬───────────────┤
│ LeftNav  │ Main                         │ DetailSidebar │
│ 48px 图标 │ ┌─ SessionTabs(骨架条)─────┐ │ 默认 width 0  │
│ 竖条+     │ │ 会话 │ 甘特(占位) │ +      │ │ 点 tool 卡 → │
│ 240px 页面 │ ├──────────────────────────┤ │ 320px 展开   │
│ 区(可无)  │ │ <activeTab.render()>     │ │ <detail slot> │
│          │ └──────────────────────────┘ │               │
└──────────┴──────────────────────────────┴───────────────┘
  • AppShell(新,web-ui/src/shell/AppShell.tsx):grid 三列 48px auto minmax(0,1fr) [width]——LeftNav 图标条恒在;左页面区宽度由激活 bar 决定(sessions bar=240px 列表;rpclog bar=固定 360px 页面);DetailSidebar 列宽 0↔320px 过渡。
  • 现 SessionsScreen 拆解:其「sidebar+main」二分升级为壳的职责;SessionsScreen 降级为 sessions bar 的页面组件 + 会话 tab 的内容组件两块(选中态 selectedId 仍是容器局部 state,位置上移到 AppShell——tabs 与 detail 都要读它)。

2. Slot 注册形态(三个注册表,同 toolCardRegistry 模式)

全部走「模块级 Map + register 函数返回 disposer + v1 静态调用」——与 toolCardRegistry 同构,将来 cordis 插件线调同一函数纯加法。注册表放 web-ui(视图资产),不进 store/不进 web-runtime(红线:store 无业务对象;这些是纯视图注册物)。

// shell/leftMenuRegistry.ts
export interface LeftMenuBar {
  id: string                    // 'sessions' | 'rpclog' | ...
  icon: ReactNode               // 图标条按钮内容
  title: string                 // hover title
  order: number                 // 图标条排序
  panelWidth: number            // 页面区宽度(px;sessions=240 rpclog=360)
  Panel: ComponentType          // 页面区组件(自取数据,容器件)
}
registerLeftMenuBar(bar): () => void
listLeftMenuBars(): LeftMenuBar[]   // order 排序后

// shell/sessionTabRegistry.ts
export interface SessionTab {
  id: string                    // 'conversation' | 'gantt' | ...
  label: string                 // tab 条文字(中文 UI 文案)
  order: number
  Content: ComponentType<{ sessionId: SessionId }>  // tab 内容(会话上下文注入)
  placeholder?: boolean         // true = 未实现坑位(渲染占位说明页)
}
registerSessionTab(tab): () => void

// shell/detailRegistry.ts —— 右栏内容块
export interface DetailBlock {
  id: string
  match(payload: DetailPayload): boolean   // 认领判定
  Block: ComponentType<{ payload: DetailPayload }>
}
export type DetailPayload = { kind: 'tool-call'; sessionId: SessionId; callId: string }  // v1 唯一成员;union 留扩展
registerDetailBlock(block): () => void
  • v1 静态注册点 = shell/builtins.ts(AppShell 模块加载时调用一次):sessions bar、rpclog bar、conversation tab、gantt 占位 tab、tool-call detail 块(内容可空——先渲 callId+argsRaw 原始 JSON,富内容归 P1-4 registerToolView)。
  • detail 展开态:{ payload: DetailPayload } | null,AppShell 局部 useState(视图选中态不进全局 store,红线 #14 同款);ToolCallCard 点击 → 经 props 回调链上抛(纯 props 组件不许 import 注册表)。回调链:ConversationView 增 onToolCardClick?: (callId: string) => void → ConversationContainer → tab Content props → AppShell。

3. React 目录两级制(用户亲拍 #3)

web-ui/src/
  shell/                    # 壳本体:AppShell + 三注册表 + builtins + LeftNav/DetailSidebar 容器
  leftmenu/
    sessions/               # sessions bar:列表页面(现 SessionListContainer/View/Item 迁入)
    rpclog/                 # rpclog bar:RpcLog 页面(现 components/panels/RpcLog/* 迁入改容器形)
  sessiontabs/
    conversation/           # 会话 tab:现 conversation/* 组件迁入
    gantt/                  # 占位 tab:一页说明性占位组件
  components/               # 存量通用件渐进迁(MessageText/JsonBlock 等共享件留此)
  hooks/ utils/ style/      # 不动
  • 互不 import 规矩:leftmenu/<a> 不许 import leftmenu/<b> 或 sessiontabs/*(反向同理);共享件下沉 components/。物理防冲突:一人一目录。
  • 渐进迁移:本次只迁 RpcLog(用户点名)+ sessions 列表 + conversation(壳直接受益者);MessageText/JsonBlock/ToolCallCard 等叶子暂留 components/(多 tab 共享预期)。import 路径全改,git mv 保历史。

4. RpcLog 迁移映射(panels/RpcLog → leftmenu/rpclog)

现状 迁后
浮动面板:collapsed 角标 RpcLogBadge + expanded 右下 overlay RpcLogBody 左栏页面:图标条一个 bar 按钮(未读数徽标沿用 unread 逻辑)+ 页面区常驻 RpcLogBody(撑满页面区高度)
store.ui.rpcLogOpen 控开合 语义改「激活 bar === 'rpclog'」——AppShell 局部 state;store.ui.rpcLogOpen 保留但语义变:仍作 unread 清零信号(openRpcLog/closeRpcLog intents 由 bar 切换调用;rpc-log.ts ingest 的 unread 逻辑零改动)
RpcLogBadge 角标 删组件;未读数变 bar 图标角标(LeftNav 读 store unread)
verify-rpclog-panel.mjs 的 badge/overlay 选择器 改:点图标条 bar 按钮 → 页面区内容断言(§改动清单见 6)

5. 不做清单(三段式)

触发条件 返工点 预埋
cordis 插件要注册 bar/tab/detail 块 注册函数挂进插件 apply 注册表+disposer 已同 toolCardRegistry 形态,纯加法
tab 内容需要跨 tab 共享视图状态(如甘特选中联动会话流滚动) AppShell 升 context 或引 store ui 切片 现 selectedId 已收在 AppShell 单点
detail 需要多 payload 类型(消息详情/审批详情) DetailPayload union 加成员 + match 分派 union+match 判定已留形
左栏页面区要可拖宽 panelWidth 变 min/max 区间+持久化 panelWidth 已是 bar 属性单点

6. 分刀计划与验证

刀 内容 验证
刀 1 布局容器 shell/ 五件(AppShell/LeftNav/DetailSidebar/三注册表+builtins)+ sessions/conversation 迁目录 + App.tsx 换 AppShell tsc 绿 + test:gui 不回归 + verify-session.mjs 全绿(列表/会话流选择器不变——类名沿用)
刀 2 RpcLog 迁移 panels/RpcLog → leftmenu/rpclog 改容器形;删 Badge;LeftNav 未读角标;intents 语义对齐 verify-rpclog-panel.mjs 选择器同步改+全绿;unread 清零行为断言保留
刀 3 坑位+detail gantt 占位 tab + tool-call detail 块(点卡展开/再点收起/内容=原始 JSON)+ §E1-16 断言(tabs 条在/占位页渲/点卡展开右栏/空 detail 兜底) verify-session.mjs 新增 §E1-16 + tool-card spec 补 onToolCardClick 一例

每刀一 commit 一回执;批间清收件箱(事故整改纪律);只 commit 不 push。

7. design 自查修正(对照现码盘后)

  1. 语义标签保留:verify-session.mjs 全套选择器锚 aside(列表)与 main(会话区)——AppShell 的左栏页面区必须仍渲染为 <aside>、main 区仍为 <main>,否则刀 1 就砸验收。图标条用 <nav>。
  2. verify-session §E1-10 也动:它点 button:has-text("RPC") 断言 section[class*="panel"]——刀 2 除 verify-rpclog-panel.mjs 外须同步改 §E1-10(点图标条 bar → 断言页面区内容)。
  3. rpcLogOpen 消费面核实:仅 intents 三函数 + rpc-log unread 判断 + RpcLog.tsx 开合渲染——迁移映射成立(bar 切换调 openRpcLog/closeRpcLog 保 unread 语义,RpcLog.tsx 的开合判断删除、Badge 删除)。
  4. web-ui 公开面只有 mount():App 内部结构随便换,无破坏性导出变更。
  5. 测试 import 路径:tool-card.spec 引 components/conversation/ToolCallCard(留 components/ 不动)、utils.spec 引 ConnectionBanner/hooks/utils(全不迁)——现有 spec 零改动;SessionListContainer/RpcLog 系无 spec 直引,迁移安全。