[codex] 优化输入后的 AI 处理中状态反馈#137
Merged
utopiafar merged 1 commit intoMay 18, 2026
Merged
Conversation
PR Preflight Summary / PR 预检汇总中文
English
PR Policy Preflight / PR 规则预检PR Policy Preflight / PR 规则预检中文
未发现确定性规则问题。 English
No deterministic policy findings. PR Flutter Quality / Flutter 质量预检PR Flutter Quality / Flutter 质量预检中文
English
Flutter Analyzer Baseline
No new analyzer issues introduced by this PR. Flutter Test Baseline
No new Flutter test failures introduced by this PR. |
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.
背景
Fixes #136。
输入卡片后,当前首页会先关闭输入面板,但时间线会被全屏 loading 遮住,直到本地提交链路完成后才出现 processing 卡片或 AI activity 状态。这个路径里包含本地持久化、任务入队、定位上下文读取和 placeholder 渲染,用户会感觉发布动作把主界面短暂锁住。
修改
isSubmitting的全屏遮罩,保留页面可滚动、可查看。AgentActivityWidget:任务入队前可强制显示;任务入队后显示后台任务数量;即使还没有首条 Agent/tool activity,也可以点击打开详情。LocalTaskExecutor增加TaskActivitySnapshotstream,复用现有 bool stream 兼容旧调用方。验证
flutter pub get --offlineflutter test --no-pub --concurrency=1 test/ui/agent_activity/agent_activity_widget_test.dart test/data/services/local_task_executor_test.dartflutter analyze --no-pub lib/data/services/local_task_executor.dart lib/ui/agent_activity/widgets/agent_activity_widget.dart test/ui/agent_activity/agent_activity_widget_test.dartflutter analyze --no-pub已运行;当前仓库仍有 327 个既有 info 级 lint,命令按现有配置返回 1,本 PR 未在改动文件中引入新的 analyze 问题。