补充LLM中间态输出,并默认开流式和联网 #219
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
LLM 中间态输出、默认流式与受控联网技术方案补记
背景
DirectProject 旧体验有两个问题:
本需求将输出模型改为“真实事件驱动”:真实回复增量才进入流式正文,工具与执行过程进入过程卡,默认开启流式和受控联网。
目标
llm.stream默认开启。llm.webSearchEnabled默认开启。非目标
传输链路
关键行为:
stream=true。stream=false仍是合法配置;此时不展示回复增量,但执行过程详情仍显示。事件模型
Codex app-server 将原始协议投影为三类安全观察值:
AccumulatedTextstreaming。IntermediateTextrunning,不冒充回复正文。Activitypreparing、file-read、file-write、command-exec、game-verify、web-search。计划 / reasoning 通知统一收敛为
preparing:过程卡信息架构
过程卡标题只由回合状态决定:
accepted→ 需求已接收running→ 任务执行中streaming→ 回复生成中finalizing→ 结果整理中completed→ 回复已生成failed→ 处理失败过程卡小字显示当前具体工作,并统一使用“正在”前缀:
agc_write_file→ 正在写入文件:<项目相对路径><路径><query><command><command>安全边界:
../路径退回通用文案。展开状态:
projectPath + clientTurnId。真实流式回复
AccumulatedText进入 assistant 实时回复气泡。streaming时只显示“正在生成回复”。受控联网搜索
默认开启
webSearchEnabled,但不启用 Codex 原生 web search。DirectProject 注入
agc_toolsMCP:agc_web_search。project.search权限。隐私与安全
验证
已覆盖:
stream=true、webSearchEnabled=true配置回归stream=false时无回复增量、但执行详情保留AccumulatedText标记streamingIntermediateText/Activity标记running待验收 / 风险