Render cloud task history from typed session events (#318646)
* CAPI package update * Missindg updates * Missing lock * Render cloud task history from typed events - Extract shared session-event-to-chat-parts renderer into chatSessions/common/sessionEventRenderer.ts so both the Copilot CLI and Cloud Tasks providers produce identical tool/text formatting. - Render Task API history via the shared renderer, remapping custom_agent.* to the equivalent subagent.* names so tool cards, bash terminal output, edits, search results, MCP results and subagent groups all render the same way they do in the CLI. - Match github.com/github/github-ui presentation by suppressing intermediate assistant.message events that echo tool input/output and only rendering the final summary message per turn. * Address review: break circular dep & restore flush timing - Inject CLI tool-event handlers (processStart/processComplete/ enrichSubagent/isEditToolCall/getEditedUris) into the shared renderer via a ToolEventHandlers<T> bundle, so common/sessionEventRenderer no longer imports from copilotcli/. Layering now only flows one way. - Flush buffered assistant.message_delta chunks at the top of the CLI loop for non-message events so the session.model_change / assistant.usage guards see streamed text exactly the way the pre-extraction code did. * Missing lock changes * Revert unintended copilot package manifest edits * Revert unintended root package manifest edits * remote package revert * lock --------- Co-authored-by: Dmitriy Vasyura <dmitriv@microsoft.com>
O
Osvaldo Ortega committed
d53d50575961dbd36ca50f6424da9b70e4beba0e
Parent: 7c3a00e
Committed by GitHub <noreply@github.com>
on 5/28/2026, 5:59:15 PM