Skip to content

迭代 Web 体验,修复日常使用 bug 并完善子代理查看 #559

Closed

Description

@testikun

背景与目标

通过实际使用 OpenPI Web,持续迭代对话、消息编辑和子代理查看体验,修复影响日常使用的 bug,改善桌面和手机上的流畅性与可读性。本 Issue 跟踪本次迭代;子代理可见性的详细问题见 #560。

本次范围

  • 修复取消消息编辑后仍保留已取消草稿。
  • 修复消息气泡与编辑器横向挤压,改善操作区和键盘焦点样式。
  • 修复切换会话清空长草稿后,输入框仍残留过高高度。
  • 修复输入框尺寸变化导致对话失去贴底位置,同时保留历史阅读位置。
  • 修复编辑提交等待期间仍可继续改字、重复确认导致的草稿丢失风险。
  • 子代理卡片、活动标签可进入任务总览和独立子对话;区分启动回执与真实执行状态。
  • 宽屏保留父对话并列查看,窄屏支持子对话与返回导航;复用现有 Astryx 组件。
  • 记录复现、修复、参考代码、消融与验证结果。

验收证据

基于上游 main f6b49ae,实现提交 e48f2e1、ec40a7d。

  • bun run check 通过。
  • bun run test:Node 1662 通过、1 个已有 skip、0 失败;Vitest 239 通过。
  • 正式静态构建浏览器回归:38 项通过,覆盖桌面、手机和无障碍检查。
  • 实际 gpt-5.6-luna / medium 验证了工具调用、流式回复、Stop,以及子代理执行与详情查看。

记录:5 个交互 bug 修复、子代理查看与组件参考。

边界

本次保留 Pi 的 Session、模型、权限与执行生命周期;没有新增配置项或另一套运行系统。子代理详情为只读,重启后只展示父会话已保存的回执/结果;普通子代理并发上限未改变。六任务浏览器用例是合成 UI 验收,不是六个真实模型并发证明。私有配置、凭据、Session 和用户截图不提交。

Activity

  1. changed the title [-]bug(web): 修复消息编辑、输入框高度与贴底滚动的 5 个交互问题[/-] [+]迭代 Web 体验,修复日常使用 bug 并完善子代理查看[/+] on Sep 18, 2026
  2. testikun commented on Sep 18, 2026

    @testikun
    CollaboratorAuthor

    我来认领这次 Web 体验迭代,并负责修复与后续 review 跟进。代码已提交 PR #561,涵盖本 Issue 和 #560。

    当前账号没有修改 Assignees 字段的仓库权限,先在这里明确认领;如需正式指派,请维护者将本 Issue 分配给 @testikun。

    实现与验证记录已随分支推送:5 个交互 bug 修复、子代理查看与组件参考。

  3. testikun commented on Sep 18, 2026

    @testikun
    CollaboratorAuthor

    Web 工作区后续 M01–M12 实现已追加到现有 PR #561(提交 ca4d2da)。可复核的实现/组件复用与限制记录:WEB_MODULE_IMPLEMENTATION_2026-09-19.md。本批 bun run check、Node 1664/1 skip、Vitest 257、Web E2E 41、合成性能 11 项通过;M12 非正式 Benchmark,截图/私有资料未推送。PR CI 仍在执行。

  4. testikun commented on Sep 19, 2026

    @testikun
    CollaboratorAuthor

    PR #561 已在 2026-09-19 增补真实 Web 使用复验:实际 Luna/medium + read 工具链路,并修复 7 项侧栏、输入区、命令菜单和轨迹连续性问题。可复用结论与非 Benchmark 边界记录在 docs/research/WEB_MODULE_IMPLEMENTATION_2026-09-19.md;对应提交为 4c51183。

  5. testikun commented on Sep 19, 2026

    @testikun
    CollaboratorAuthor

    2026-09-19 进展:PR #561 已更新独立“服务商凭据”设置页。该页不再挤在运行状态框中,结构参考现有竞品研究里 Maka 的搜索列表和 DeepSeek Harness 的独立 Models 区域,同时保持 Pi 原生认证边界。真实 Host 已完成搜索、状态筛选、关闭/焦点返回测试;桌面和移动 E2E、axe、完整测试及性能回归均通过。对应实现与复验结论记录在 docs/research/WEB_MODULE_IMPLEMENTATION_2026-09-19.md。

  6. testikun commented on Sep 19, 2026

    @testikun
    CollaboratorAuthor

    2026-09-19 继续真实使用 Web:gpt-5.6-luna / medium 实际读仓库后指出 Composer 缺少文件上下文入口。PR #561 的 f36a880 已加入工作区文件引用,活动 Session 复用 Host artifact 权限验证文件,新 Session 仅插入路径;真实复验覆盖 README.md、焦点恢复、非空草稿和 ../outside.txt 越界拒绝,并修复中文错误本地化。全量 Chrome E2E 42/42、性能 E2E 11/11 通过。

  7. testikun commented on Sep 19, 2026

    @testikun
    CollaboratorAuthor

    2026-09-19 M04 继续迭代:真实 Luna 会话在补齐 App/Transcript/E2E 证据后修正了初始判断。9adbc53 已为当前最后一轮 provider 失败加入就地“重试消息”,复用原 admission 合同;历史失败、非活动会话和运行中状态均不允许旧请求重放。1280px/390px 浏览器验收、42 个全量 E2E 和 11 个性能场景均通过。

  8. testikun commented on Sep 19, 2026

    @testikun
    CollaboratorAuthor

    M03 code-block interaction is now implemented on PR #561 in 8191f9c.

    A real OpenPI Web Session using gpt-5.6-luna / medium generated a long fenced TypeScript block. The final UI provides fenced-code-only copy feedback, exact clipboard content, bounded horizontal scrolling at 1280px and 390px, and a named keyboard-focusable scroll region. The initial production-browser pass found and then fixed an axe scrollable-region-focusable issue.

    No highlighting or virtualization dependency was added; the implementation reuses copyText and reads the rendered <pre> text. Local validation passed with Node 1664/1 skipped, Vitest 271, Playwright 44, and performance 11. This closes only the scoped copy/scroll interaction; the broader M03 streaming and long-session work remains open.

  9. testikun commented on Sep 19, 2026

    @testikun
    CollaboratorAuthor

    Real Web validation found and fixed a keyboard accessibility gap in fenced code blocks. In a live gpt-5.6-luna / medium session, the focusable code scroll region had no visible outline. Commit 8ddf765 reuses the existing markdown-table focus-visible style for code scroll regions; keyboard focus is now visibly 2px solid and arrow keys scroll long code horizontally. Targeted Playwright coverage passes at 1280px and 390px. See PR #561 for the implementation and full validation receipt.

  10. testikun commented on Sep 19, 2026

    @testikun
    CollaboratorAuthor

    Real Web iteration found a bounded-history accuracy issue in Session search. When snapshot truncation omitted sessions/workspaces, an empty local search still used the unqualified “No matching conversations” message. Commit 452cf6c now says “No matching conversations in the loaded history,” reusing existing truncation facts without adding a server index or second search path. Full validation passed: 1664 Node tests (1 platform skip), 272 Vitest, and 44 Playwright.

  11. testikun commented on Sep 19, 2026

    @testikun
    CollaboratorAuthor

    M07 implementation evidence was added to PR #561 in 63c4269: file paths inside canonical tool evidence now reuse the existing session-bound artifact preview, with focus restoration and production-browser coverage. A real Luna/medium Web session successfully opened ToolEvidence.tsx from a read-tool evidence card and returned focus after close. The interaction also revealed and fixed an existing visible diff-text contrast failure. No file service, permission state, or directory scanner was added.

  12. testikun commented on Sep 19, 2026

    @testikun
    CollaboratorAuthor

    2026-09-19 M10/M08 implementation evidence is now on PR #561 at commit 0bbd1f3.

    The Web client now has an independent settings surface with persistent Runtime / Provider credentials / OpenPI setup navigation, reusing existing Pi diagnostics and the canonical /openpi-setup boundary. Real 740px use led to a narrower toolbar correction. Review evidence now reuses the existing read-only artifact preview and shows saved tool-diff +N/-M counts without presenting them as Git state.

    Validated in an actual GPT 5.6 Luna / medium OpenPI session, targeted desktop/mobile Playwright flows, the full local Node/Vitest suites, and a clean Node 24 PR worktree.

  13. testikun commented on Sep 19, 2026

    @testikun
    CollaboratorAuthor

    M06 display correction landed on PR #561 at aaaff6c: interrupted subagents now remain distinct from failed tasks in ActivityBar, and the overview count explicitly separates active tasks from retained records. The six-task fixture is still synthetic UI coverage, not evidence of six-way concurrency. No real subagent was launched during this validation.

  14. testikun commented on Sep 19, 2026

    @testikun
    CollaboratorAuthor

    Web real-use follow-up (2026-09-19):

    • M09 terminal evidence now shows Unknown when a terminal-state record has no exitCode, while preserving separate stdout/stderr, truncation evidence, Session identity checks, and the read-only boundary.
    • M08 saved-evidence deltas now count only unified-diff hunk content, excluding ---/+++ headers and resetting across multi-file boundaries.
    • M10 standalone settings was exercised at 740px and 390px with the actual GPT 5.6 Luna / medium Web session. Navigation, provider search, state preservation across categories, canonical /openpi-setup copy feedback, Escape close, and focus return all passed. A regression test now locks provider-state preservation without a duplicate provider-auth request.
    • The required ablation pass found no safe abstraction to remove: the settings shell, provider status section, and App lifecycle/focus owner have non-overlapping responsibilities.

    Implementation and validation details: #561 (comment)

  15. testikun commented on Sep 19, 2026

    @testikun
    CollaboratorAuthor

    2026-09-19 继续真实使用后,PR #561 已补上对话轮次结构和每轮文件更改回执:请求、执行过程与最终回复分开;状态来自既有 Session 事实;成功 write/edit 的文件证据可在轮次下展开并进入 Review,缺少可靠 diff 时不伪造增删计数,也不把它表述为当前 Git 状态。

    真实 gpt-5.6-luna / medium write 烟测、1280/390 两档布局、焦点返回和控制台检查均通过。本地全量为 Node 1664 passed + 1 existing skip、Vitest 278/278、M12 11/11。实现复用现有 Astryx/Review/工具证据,没有新增 UI 包或第二份消息 store。对应提交 8f089a0,详见 #561。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions