修复移动端 Web 控件可访问性问题#122
Merged
xintaofei merged 1 commit intoxintaofei:mainfrom Apr 27, 2026
Merged
Conversation
Owner
|
感谢佬的pr |
xintaofei
added a commit
that referenced
this pull request
Apr 27, 2026
- feat(acp): persist in-flight session state across tab close/reopen, browser refresh, and reconnects. The streaming reply, active tool calls, pending permission prompts, plan updates, modes and usage all rehydrate from a backend snapshot, with `seq`-based deduplication against the live event stream. - feat(acp): harden the connection lifecycle with an idle sweep, spawn deduplication mutex, serialized prompt sends, and a close-error state machine; sends are cancelled on failure and stuck spawns no longer wedge the session. - feat(acp): keep open conversation tabs alive via a frontend keepalive so connections aren't reaped while the user is still looking at them. - feat(acp): create the conversation row on the first prompt and emit a `conversation_linked` event, eliminating duplicate rows when the same prompt is sent twice in quick succession. - fix(web-server): release the listening port reliably on shutdown and surface stale-port state instead of silently failing to restart. - fix(web): fall back to a clipboard shim on non-secure contexts so copy actions work over plain HTTP. - fix(workspace-state): apply the cold-scan snapshot after stream restarts and catch up missed deltas when re-acquiring within the shutdown grace window. - fix(mobile-web): improve mobile web UI control accessibility. Thanks to @pia for contributing this fix in #122. ----------------------------- # 发布版本 0.11.0 - 新增(ACP):会话进行中关闭/重开标签页、浏览器刷新或重连后,流式回复、进行中的工具调用、待确认的权限请求、计划更新、模式与用量信息均可从后端快照恢复,并通过 `seq` 与实时事件流去重对账,不再丢失现场; - 新增(ACP):连接生命周期加固,引入空闲清理、spawn 去重锁、Prompt 串行发送和关闭错误状态机;发送失败时自动取消,避免 spawn 阻塞导致会话卡死; - 新增(ACP):前端为打开中的会话标签维持 keepalive,避免用户仍在查看时连接被回收; - 新增(ACP):首次发送 Prompt 时由后端创建会话行并发出 `conversation_linked` 事件,消除短时间内重复触发产生的重复会话; - 修复(Web 服务器):关闭时可靠释放监听端口,并对端口残留状态给出明确反馈,避免静默重启失败; - 修复(Web):在非安全上下文(如纯 HTTP)下使用兜底剪贴板实现,确保复制功能可用; - 修复(工作区状态):流重启后应用冷扫描快照,并在关闭宽限期内重新接入时补齐遗漏的增量; - 修复(移动端 Web):改善移动端 Web 控件的可访问性,感谢 @pia 在 #122 中贡献此修复。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更内容
overscroll-contain,减少滚动链传递到页面本身。+按钮在无 hover 的触摸设备上保持可见,并增大触摸区域。Fixes #121
验证
pnpm buildpnpm eslint src/app/workspace/layout.tsx src/components/conversations/sidebar-conversation-list.tsx src/components/message/virtualized-message-thread.tsxcargo build --bin codeg-server --no-default-features备注:当前 Windows 工作区全量
pnpm eslint .会被既有 CRLF 换行符触发的 PrettierDelete ␍报错卡住,和本次改动逻辑无关。