feat: expose codex stream delta events
This commit is contained in:
@@ -151,6 +151,7 @@ export function buildDeviceWorkspaceDetailCards(workspace: DeviceWorkspaceView)
|
||||
const codexThreadLifecycleEventSummary = objectFromMetadata(
|
||||
codexAppServerMetadata.threadLifecycleEventSummary,
|
||||
);
|
||||
const codexStreamDeltaEventSummary = objectFromMetadata(codexAppServerMetadata.streamDeltaEventSummary);
|
||||
|
||||
return {
|
||||
capabilities: {
|
||||
@@ -293,6 +294,15 @@ export function buildDeviceWorkspaceDetailCards(workspace: DeviceWorkspaceView)
|
||||
)} 项 · 归档 ${numberFromMetadata(codexThreadLifecycleEventSummary.archiveEventCount)} 项 · ${
|
||||
codexThreadLifecycleEventSummary.nameEventAvailable === true ? "改名可用" : "改名不可用"
|
||||
} · ${codexThreadLifecycleEventSummary.closeEventAvailable === true ? "关闭可用" : "关闭不可用"}`,
|
||||
codexStreamDeltaEvents: `流式增量:${numberFromMetadata(
|
||||
codexStreamDeltaEventSummary.eventCount,
|
||||
)} 项 · 思考 ${numberFromMetadata(codexStreamDeltaEventSummary.reasoningDeltaEventCount)} 项 · 命令 ${numberFromMetadata(
|
||||
codexStreamDeltaEventSummary.commandStreamEventCount,
|
||||
)} 项 · ${
|
||||
codexStreamDeltaEventSummary.toolProgressEventAvailable === true ? "MCP 进度可用" : "MCP 进度不可用"
|
||||
} · ${
|
||||
codexStreamDeltaEventSummary.fileChangeOutputEventAvailable === true ? "文件输出可用" : "文件输出不可用"
|
||||
}`,
|
||||
preferredExecutionMode: `默认执行模式:${
|
||||
selectedDevice?.preferredExecutionMode === "gui"
|
||||
? "GUI"
|
||||
@@ -999,6 +1009,9 @@ export function DeviceEditorCard({
|
||||
<div className="rounded-2xl bg-[#F7F8FA] px-3 py-2">
|
||||
{detailCards.capabilities.items.codexThreadLifecycleEvents}
|
||||
</div>
|
||||
<div className="rounded-2xl bg-[#F7F8FA] px-3 py-2">
|
||||
{detailCards.capabilities.items.codexStreamDeltaEvents}
|
||||
</div>
|
||||
<div className="rounded-2xl bg-[#F7F8FA] px-3 py-2">
|
||||
{detailCards.capabilities.items.preferredExecutionMode}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user