Repository navigation
feat(mobile): add task reminders and compact chat controls - #592
Merged
Merged
Conversation
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.
变更
移动端四项体验改进:
1. 任务完成/失败提醒(
mobile/src/notifications/)task-completion高优先级 channel),权限申请按原生浮层处理,避免误判为后台而断开远程连接。cancelled)不发提醒。agent_start/agent_end(历史回放不走这条路径),覆盖短到没被快照捕获为 running 的任务;effectiveRunStatus(含streaming)比较 running→finished 转变。(sessionId, runId)去重,reset()时清空,防止换桌面后把历史当新完成。2. 输入区改为两排
窄屏/大字号下模型、思考模式各占一行、与附件/发送挤成三排的问题,现在合并为一排:模型、思考模式、附件、发送/停止同行。两者始终直接显示(长名称省略号,点击打开选择器),按钮保持 44pt 点击目标。
3. 会话类型标识
聊天顶部标题下新增副标题:
工作区 · <名称>/工作区会话/非工作区会话。新建会话尚未发消息时也显示(使用草稿的 mode/workspaceId),历史未加载时先显示加载占位。4. 新版本提醒
原实现只在启动时检查一次。现在启动、回到前台、以及使用期间定期检查(成功检查间隔 6 小时;失败或请求被中断后 60 秒重试,防止离线启动错过)。同一版本每次启动只提示一次;检查到结果时若已切到后台则延后到下次前台,不在其他 App 上弹窗。更新检查加了 15 秒超时,避免悬挂请求导致不再重试。
验证
mobile:npm run typecheck、npm run lint、npm test— 66 个测试套件 / 868 项全部通过(含新增通知、更新提醒、完成去重、窄屏布局用例)。npx expo config --type prebuild能正常解析新增的expo-notifications插件。注意
expo-notifications(config plugin +package-lock.json),已有开发客户端需重新构建安装,仅刷新 JS 不够。origin/main;上游新提交只涉及desktop/,不影响本次移动端检查。