feat: upgrade investigation and presentation runtime
This commit is contained in:
@@ -257,6 +257,17 @@ describe("extractLatestFrontendTurn", () => {
|
||||
|
||||
describe("buildForkedSessionUiState", () => {
|
||||
it("copies truncated source messages and preserves tool artifacts", () => {
|
||||
const command = {
|
||||
action: "open_chart",
|
||||
chart_id: "chart-1",
|
||||
chart: {
|
||||
title: "液位曲线",
|
||||
chart_type: "line",
|
||||
x_data: ["00:00", "01:00"],
|
||||
series: [{ name: "P-101", data: [0.42, 0.41] }],
|
||||
},
|
||||
evidence_refs: [],
|
||||
};
|
||||
const forked = buildForkedSessionUiState(
|
||||
{
|
||||
messages: [
|
||||
@@ -267,9 +278,9 @@ describe("buildForkedSessionUiState", () => {
|
||||
artifacts: [
|
||||
{
|
||||
id: "chart-1",
|
||||
tool: "show_chart",
|
||||
kind: "chart",
|
||||
params: { chart_type: "line" },
|
||||
tool: "present_view",
|
||||
kind: "map",
|
||||
params: { command },
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -293,9 +304,9 @@ describe("buildForkedSessionUiState", () => {
|
||||
artifacts: [
|
||||
{
|
||||
id: "chart-1",
|
||||
tool: "show_chart",
|
||||
kind: "chart",
|
||||
params: { chart_type: "line" },
|
||||
tool: "present_view",
|
||||
kind: "map",
|
||||
params: { command },
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user