Skip to content

fix(agent): normalize transport fallback notices - #2277

Open
mt-hub8 wants to merge 1 commit into
tutti-os:mainfrom
mt-hub8:codex/fix-agent-transport-fallback-notice
Open

fix(agent): normalize transport fallback notices#2277
mt-hub8 wants to merge 1 commit into
tutti-os:mainfrom
mt-hub8:codex/fix-agent-transport-fallback-notice

Conversation

@mt-hub8

@mt-hub8 mt-hub8 commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

摘要

  • 在 Codex app-server runtime 边界将 WebSocket 降级 HTTPS 的 warning 归一化为现有 transport_fallback 语义
  • 默认会话只保留可展开的‘查看详情’,不再展示‘Agent 已切换到 HTTPS 传输’状态标题;详情入口使用正常正文色
  • 兼容历史上以 warning 持久化的同类记录,并补充 runtime、renderer 测试及架构说明

验证

  • pnpm check:changed -- --base upstream/main:14/14 通过
  • pre-push pnpm check:changed -- --push-ready:16/16 通过
  • Agent GUI 完整相关测试、Go runtime 测试、lint、typecheck、边界与退化检查均通过

Fallback 三问

  • 来源:Codex app-server 在 WebSocket 重试耗尽并降级到 HTTPS 时发送未分类 warning;历史数据库中也已存在此类 warning 记录
  • 为什么不能只在来源修复:runtime 修复能保证新事件正确,但已持久化的历史记录仍需 renderer 使用既有特征兼容展示
  • 移除条件:当兼容窗口结束且不再需要读取旧版 warning 记录时,可移除 renderer 的文本特征兼容;transport_fallback 语义渲染仍保留

检查清单

  • 不改变 Session、Turn、Goal 或 runtime-operation 生命周期语义
  • 改动聚焦于一个问题
  • 已更新受影响的架构文档
  • 未修改 README 或 CONTRIBUTING,无多语言同步要求
  • 已运行变更范围内的完整检查
  • 提交已包含 DCO Signed-off-by

Signed-off-by: man tuo <2428184991@qq.com>
@tutti-pr-review-bot
tutti-pr-review-bot Bot requested a review from a team August 11, 2026 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant