Repository navigation
Open
Description
Parent
Problem
The current Web UI follows browser language detection and one fixed visual presentation. It has no user-facing theme or language controls, no reviewed persistence contract for those choices, and only initial responsive/reduced-motion coverage. Keyboard navigation, focus management, screen-reader semantics, contrast, zoom, and narrow mobile layouts have not received a complete real-browser audit.
These are recoverable polish gaps, but together they prevent the workbench from being a dependable daily interface for a broader range of users.
Value
- Let users choose a readable appearance and language consistently.
- Make all core workbench operations usable without a pointer.
- Catch mobile and accessibility regressions with repeatable evidence.
Approach constraints
- Package-owned theme/UI preferences follow the OpenPI setup configuration contract: canonical config, setup status, SETUP.md, README defaults, and tests stay synchronized.
- Define which transient browser state, if any, may remain browser-local; do not create an accidental second package configuration store.
- Preserve system preference fallback and reduced-motion behavior.
- Theme and language changes must not reload, duplicate, or mutate the active Session.
- Avoid color-only status communication and preserve semantic labels.
- Validate real browser behavior in addition to static source assertions.
Acceptance criteria
- Users can choose documented supported themes plus system/default behavior.
- Users can explicitly choose supported languages plus automatic detection.
- Preferences survive reload according to the documented canonical storage contract.
- No credential, Session transcript, or workspace path is persisted with UI preferences.
- Sidebar, dialogs, model picker, search, composer, transcript, tool details, and activity panels are fully keyboard operable.
- Focus is trapped/restored correctly for dialogs and remains visible.
- Accessible names, roles, live updates, status text, contrast, zoom, and reduced motion are audited.
- Core flows remain usable at documented narrow viewport widths and with touch input.
- Automated accessibility checks and real-browser desktop/mobile interaction tests are added.
- Setup/config documentation and drift guards are updated for package-owned preferences.
- bun run check and bun run test pass.
Out of scope
- Native mobile applications.
- Pixel parity with another product.
- Remote synchronization of personal UI preferences.
Metadata
Metadata
Assignees
Labels
No labels
Activity
fix(web): address review — opaque narrow sidebar, defer settings to o…
testikun commentedon Sep 4, 2026
我来认领 #350 的 canonical theme preference 切片;不重复 PR #359 的语言选择,也不把 browser localStorage 作为第二份 package 配置。
范围:
已完成 persisted config、Web projection 与用户可见主题的分层实现,并提交 PR #371。
bun run check与完整bun run test均通过。真实 UI 验证
在隔离的 Pi agent 目录中安装当前 checkout,
pi list显示唯一 OpenPI 来源为/tmp/openpi-issue-350。用 canonical config 设置ui.webTheme=dark,本地启动真实 Workbench,快照 API 实际返回preferences.theme=dark,真实浏览器呈现如下。下图为 1280×720 真实测试截图,非 mock:ooiuuii commentedon Sep 11, 2026
I am taking a narrow mobile sidebar keyboard/focus slice of #350, not the complete accessibility/mobile roadmap.
On
main@5bf2fe29e52801d79826c2eb573be403f53285e5, I reproduced this through the production Web CLI in a real browser at 390px width, using a separate Pi agent directory whosepi listcontains only the tested checkout:The proposed repair is limited to making the narrow sidebar's visual open/closed state agree with keyboard reachability, focus transfer, and Escape/close restoration, with real-browser regression coverage. It does not touch theme, language, the new thinking selector (#531), slash-command menu (#526), or artifact preview (#496). No new Session/provider/config behavior is intended. If the keyboard and narrow-layout fixes share this invariant, they will be one PR, using
Refs #350rather than closing the umbrella issue.tt-a1i commentedon Sep 12, 2026
补充一个当前 main 可直接复现的语言一致性问题,发生在新合入的文件预览里。
核验:2026-09-12,OpenPI
755b6c3d12ac082279f1582a38881e33dc9b7c57。社区行为以固定源码核对,未运行社区产品,不作整体体验排名。步骤:中文界面 → 打开一条含 Markdown 文件链接的回答 → 点击报告。文件内容成功渲染,但预览仍显示
File preview、Close preview、Read-only access、Refresh、Download、Version,与中文主界面混用。Artifacts.tsx 将这些标题、按钮和 aria-label 写成固定英文;错误和截断相关文案也应一并检查。报告正文属于用户文件,本例中的英文正文无需翻译。
建议在本票现有 i18n 体系中补齐这些产品控件,保持语言设置入口不变。验收:中文/英文切换后,预览标题、按钮、只读/版本提示、错误/截断信息和可访问名称一致跟随;文件原文保持不变;已有文件预览、下载和刷新行为不回退。
本项为隔离当前 main 的真实浏览器复现,使用人工构造的 Pi 会话和本地报告,无模型请求。
testikun commentedon Sep 17, 2026
我想认领 #350 中文界面中文件预览控件仍为英文的独立小修,请维护者确认是否已有并行工作。只复用当前 Web i18n 体系,把文件预览的标题、按钮、只读/版本、错误/截断和 aria-label 等产品文案随语言切换;用户文件正文保持原样,预览/下载/刷新行为不变。不会重做已合入的主题或思考级别选择,也不碰 @ooiuuii 的移动侧栏焦点切片或 #359 的语言持久化。验收为中英切换、现有 UI 测试、真实浏览器前后截图、check/test;这是 Refs #350 的部分修复,不宣称整个 a11y/mobile 完成。