Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Preserve Patrol recommendation reasons in sessions
rcourtman797edfc6ab8a
diff --git a/docs/release-control/v6/internal/subsystems/ai-runtime.md b/docs/release-control/v6/internal/subsystems/ai-runtime.mdindex 44eef4b225..3415194388 100644--- a/docs/release-control/v6/internal/subsystems/ai-runtime.md+++ b/docs/release-control/v6/internal/subsystems/ai-runtime.md@@ -341,8 +341,8 @@ runtime cost control, and shared AI transport surfaces.handoffs. That summary may include the handoff kind, finding ID, resourceand Patrol run ID, safe run type/status/runtime-failure flags, resource andaction counts, a primary resource label, last-known approval/action status,- risk level, timestamp, and Patrol recommended next-step/action labels plus- the safe recommendation action kind or whitelisted app-route href only when+ risk level, timestamp, and Patrol recommended next-step title/detail/action+ labels plus the safe recommendation action kind or whitelisted app-route href only whenthey can be safely extracted from the stored Patrol handoff, but it must notexpose model-only handoff text,runtime failure detail, action preflight/result bodies, remediation@@ -372,18 +372,18 @@ runtime cost control, and shared AI transport surfaces.opening the session picker instead of presenting mount-time cachedsummaries as the operator's decision surface. For restored Patrolassessment or finding sessions, that picker must present the safe- recommended next-step/action label from `handoff_summary` when one is- available and restore the safe recommendation action kind or route-owned- href as context metadata instead of reducing the saved session to generic- context.+ recommended next-step title/detail/action label from `handoff_summary` when+ one is available and restore the safe recommendation detail, action kind,+ or route-owned href as context metadata instead of reducing the saved+ session to generic context.Live Patrol assessment handoffs that include a currently unavailablePatrol-owned recommendation action must carry the bounded disabled reason inthe model-only handoff and visible briefing so Assistant explains thecurrent availability state instead of treating the action as executable.Browser-originated `handoff_context`, `handoff_resources`, and`handoff_actions` plus safe `handoff_metadata` are one-shot request seeds- for the first successful chat turn. Safe Patrol next-step labels and- route-owned hrefs belong in `handoff_metadata` first, with model-context+ for the first successful chat turn. Safe Patrol next-step titles, details,+ labels, and route-owned hrefs belong in `handoff_metadata` first, with model-contexttext parsing only as a legacy fallback. After that send succeeds, the drawermust clear those request payloads while preserving the safe visiblebriefing and request-localdiff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.mdindex 23726831fd..1afe9f80c6 100644--- a/docs/release-control/v6/internal/subsystems/api-contracts.md+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md@@ -2023,7 +2023,7 @@ references used to seed canonical approval and action-audit refresh.`handoff_metadata` is the browser-safe identity envelope for restoring savedproduct handoffs, currently including Patrol run kind, run ID, safe runtype/status, a runtime-failure boolean rather than runtime failure detail, and-safe Patrol recommended next-step/action labels plus whitelisted app-route+safe Patrol recommended next-step title/detail/action labels plus whitelisted app-routehrefs when the browser handoff already owns that route. Frontend-visiblePatrol assessment briefings may render those same safe recommendation fields asseparate title, reason, and route-action facts, but they must not introduce new@@ -2044,7 +2044,7 @@ carry private Assistant model-context metadata, but that payload is a safereload marker only. It may carry the handoff kind, finding ID, Patrol run ID,safe run type/status/runtime-failure flags, counts, primary-resource label,last-known approval/action status, risk level, Patrol recommended-next-step/action labels plus the safe recommendation action kind or whitelisted+next-step title/detail/action labels plus the safe recommendation action kind or whitelistedapp-route href when safely extractable from the stored Patrol handoff, andsummary timestamp; it mustnot serialize the model-only `handoff_context`, runtime failure detail, actiondiff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex ec1c26e8c3..d1ebd00f76 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -209,11 +209,11 @@ work extends shared components instead of creating new local variants.it must not infer a finding target from bounded action references orreconstruct hidden model context, provider details, retry payloads, commands,preflight output, or action results in the browser. If the safe summary- includes a Patrol recommended next step, action label, safe action kind, or- whitelisted app-route href, the session picker plus restored drawer briefing- and action copy must use that recommendation and may carry the safe action- kind or href as context metadata rather than falling back to generic handoff- copy.+ includes a Patrol recommended next step, recommendation detail, action+ label, safe action kind, or whitelisted app-route href, the session picker+ plus restored drawer briefing and action copy must use that recommendation+ and may carry the safe detail, action kind, or href as context metadata+ rather than falling back to generic handoff copy.Session-load and new-conversation transitions must be success-bound: if theunderlying session operation fails, the shared drawer store must not clear orreplace the current scoped handoff context.diff --git a/docs/release-control/v6/internal/subsystems/patrol-intelligence.md b/docs/release-control/v6/internal/subsystems/patrol-intelligence.mdindex 8ba56b418f..3a93e1291f 100644--- a/docs/release-control/v6/internal/subsystems/patrol-intelligence.md+++ b/docs/release-control/v6/internal/subsystems/patrol-intelligence.md@@ -272,11 +272,11 @@ Patrol-specific presentation helpers.as current-assessment context instead of becoming generic scoped context oran accidental single-finding session because one bounded action referencenames a finding. Saved assessment and finding sessions may expose the- Patrol-owned recommended next step/action and whitelisted app-route href- through the safe `handoff_summary` only after command-like and secret-like- text is withheld; live handoffs must send those safe fields through- structured `handoff_metadata` where available, and the browser must use- them for restored drawer copy without receiving the private model-only+ Patrol-owned recommended next step title/detail/action and whitelisted+ app-route href through the safe `handoff_summary` only after command-like+ and secret-like text is withheld; live handoffs must send those safe fields+ through structured `handoff_metadata` where available, and the browser must+ use them for restored drawer copy without receiving the private model-onlyhandoff context. Assessment Assistant drawer briefings must present the saferecommended step title, reason, and route-owned action as separate operatorfacts instead of compressing them into an opaque context sentence.diff --git a/frontend-modern/src/api/__tests__/aiChat.test.ts b/frontend-modern/src/api/__tests__/aiChat.test.tsindex 4cb7e3912c..fd3d22ee7e 100644--- a/frontend-modern/src/api/__tests__/aiChat.test.ts+++ b/frontend-modern/src/api/__tests__/aiChat.test.ts@@ -226,6 +226,7 @@ describe('AIChatAPI', () => {{kind: 'patrol_finding',recommendedNextStep: 'Open Patrol provider settings',+ recommendedNextStepDetail: 'Fix the Patrol runtime issue before continuing.',recommendedNextStepAction: 'Open Patrol provider settings',recommendedNextStepActionHref: '/settings/system-ai',},@@ -243,6 +244,7 @@ describe('AIChatAPI', () => {handoff_metadata: {kind: 'patrol_finding',recommended_next_step: 'Open Patrol provider settings',+ recommended_next_step_detail: 'Fix the Patrol runtime issue before continuing.',recommended_next_step_action: 'Open Patrol provider settings',recommended_next_step_action_href: '/settings/system-ai',},diff --git a/frontend-modern/src/api/aiChat.ts b/frontend-modern/src/api/aiChat.tsindex 9220767a01..7c740c5e67 100644--- a/frontend-modern/src/api/aiChat.ts+++ b/frontend-modern/src/api/aiChat.ts@@ -54,6 +54,7 @@ export interface ChatSessionHandoffSummary {last_known_action_state?: string;last_known_action_risk?: string;recommended_next_step?: string;+ recommended_next_step_detail?: string;recommended_next_step_action?: string;recommended_next_step_action_kind?: string;recommended_next_step_action_href?: string;@@ -67,6 +68,7 @@ export interface ChatHandoffMetadata {runStatus?: string;runtimeFailure?: boolean;recommendedNextStep?: string;+ recommendedNextStepDetail?: string;recommendedNextStepAction?: string;recommendedNextStepActionKind?: string;recommendedNextStepActionHref?: string;@@ -319,6 +321,7 @@ export class AIChatAPI {run_status: handoffMetadata.runStatus,runtime_failure: handoffMetadata.runtimeFailure,recommended_next_step: handoffMetadata.recommendedNextStep,+ recommended_next_step_detail: handoffMetadata.recommendedNextStepDetail,recommended_next_step_action: handoffMetadata.recommendedNextStepAction,recommended_next_step_action_kind: handoffMetadata.recommendedNextStepActionKind,recommended_next_step_action_href: handoffMetadata.recommendedNextStepActionHref,diff --git a/frontend-modern/src/components/AI/Chat/__tests__/AIChat.test.tsx b/frontend-modern/src/components/AI/Chat/__tests__/AIChat.test.tsxindex c9d77f8016..804d108f67 100644--- a/frontend-modern/src/components/AI/Chat/__tests__/AIChat.test.tsx+++ b/frontend-modern/src/components/AI/Chat/__tests__/AIChat.test.tsx@@ -909,6 +909,8 @@ describe('AIChat', () => {action_count: 0,requires_approval: false,recommended_next_step: 'Verify full coverage',+ recommended_next_step_detail:+ 'Run a full Patrol sweep before treating the assessment as current.',recommended_next_step_action: 'Run Patrol',recommended_next_step_action_kind: 'run_patrol',},@@ -940,6 +942,8 @@ describe('AIChat', () => {kind: 'patrol_assessment',findingId: undefined,recommendedNextStep: 'Verify full coverage',+ recommendedNextStepDetail:+ 'Run a full Patrol sweep before treating the assessment as current.',recommendedNextStepAction: 'Run Patrol',recommendedNextStepActionKind: 'run_patrol',}),@@ -950,6 +954,8 @@ describe('AIChat', () => {actionLabel: 'Recommended: Run Patrol',detailLines: expect.arrayContaining(['Recommended next step: Verify full coverage',+ 'Reason: Run a full Patrol sweep before treating the assessment as current.',+ 'Available action: Run Patrol',]),}),}),diff --git a/frontend-modern/src/components/AI/Chat/index.tsx b/frontend-modern/src/components/AI/Chat/index.tsxindex 9edaf5b98b..f949d0ecff 100644--- a/frontend-modern/src/components/AI/Chat/index.tsx+++ b/frontend-modern/src/components/AI/Chat/index.tsx@@ -181,6 +181,7 @@ const buildSessionHandoffContext = (session?: ChatSession): AIChatContext | undeconst resourceDetail = formatSessionHandoffResourceDetail(summary);const statusLabel = formatSessionHandoffStatus(summary);const recommendedNextStep = summary.recommended_next_step?.trim() || '';+ const recommendedNextStepDetail = summary.recommended_next_step_detail?.trim() || '';const recommendedNextStepAction = summary.recommended_next_step_action?.trim() || '';const recommendedNextStepActionKind = summary.recommended_next_step_action_kind?.trim() || '';const recommendedNextStepActionHref = getSessionHandoffRecommendedActionHref(summary);@@ -243,6 +244,7 @@ const buildSessionHandoffContext = (session?: ChatSession): AIChatContext | undelastKnownActionState: summary.last_known_action_state,lastKnownActionRisk: summary.last_known_action_risk,recommendedNextStep,+ recommendedNextStepDetail,recommendedNextStepAction,recommendedNextStepActionKind,recommendedNextStepActionHref,@@ -276,6 +278,12 @@ const buildSessionHandoffContext = (session?: ChatSession): AIChatContext | undeisPatrolAssessment && recommendedNextStep? `Recommended next step: ${recommendedNextStep}`: undefined,+ isPatrolAssessment && recommendedNextStepDetail+ ? `Reason: ${recommendedNextStepDetail}`+ : undefined,+ isPatrolAssessment && recommendedNextStepAction+ ? `Available action: ${recommendedNextStepAction}`+ : undefined,actionCount > 0? pluralizeCount(actionCount, 'governed action', 'governed actions'): undefined,diff --git a/frontend-modern/src/features/patrol/__tests__/patrolInvestigationContextModel.test.ts b/frontend-modern/src/features/patrol/__tests__/patrolInvestigationContextModel.test.tsindex d5f9881ff2..fbdab1f2a3 100644--- a/frontend-modern/src/features/patrol/__tests__/patrolInvestigationContextModel.test.ts+++ b/frontend-modern/src/features/patrol/__tests__/patrolInvestigationContextModel.test.ts@@ -441,6 +441,8 @@ describe('patrolInvestigationContextModel', () => {expect(handoff.context.handoffMetadata).toMatchObject({kind: 'patrol_assessment',recommendedNextStep: 'Verify full coverage',+ recommendedNextStepDetail:+ 'Run a full Patrol sweep before treating this assessment as an all-clear; recent evidence is incomplete or limited to targeted activity.',recommendedNextStepAction: 'Run Patrol',recommendedNextStepActionKind: 'run_patrol',});@@ -486,6 +488,8 @@ describe('patrolInvestigationContextModel', () => {expect(handoff.context.handoffMetadata).toMatchObject({kind: 'patrol_assessment',recommendedNextStep: 'Restore Patrol visibility',+ recommendedNextStepDetail:+ 'Fix the Patrol runtime issue before treating the assessment as current.',recommendedNextStepAction: 'Open Patrol provider settings',recommendedNextStepActionKind: 'open_provider_settings',recommendedNextStepActionHref: '/settings/system-ai',diff --git a/frontend-modern/src/features/patrol/patrolInvestigationContextModel.ts b/frontend-modern/src/features/patrol/patrolInvestigationContextModel.tsindex ee3c060bda..1a6c333b04 100644--- a/frontend-modern/src/features/patrol/patrolInvestigationContextModel.ts+++ b/frontend-modern/src/features/patrol/patrolInvestigationContextModel.ts@@ -593,6 +593,7 @@ export function buildPatrolAssessmentAssistantHandoff(handoffMetadata: {kind: 'patrol_assessment',recommendedNextStep: recommendedNextStep?.title,+ recommendedNextStepDetail: recommendedNextStep?.description,recommendedNextStepAction: recommendedNextStep?.actionLabel,recommendedNextStepActionKind: recommendedNextStep?.actionKind,recommendedNextStepActionHref,diff --git a/frontend-modern/src/stores/__tests__/aiChat.test.ts b/frontend-modern/src/stores/__tests__/aiChat.test.tsindex eb586f891b..69082c6655 100644--- a/frontend-modern/src/stores/__tests__/aiChat.test.ts+++ b/frontend-modern/src/stores/__tests__/aiChat.test.ts@@ -114,6 +114,7 @@ describe('aiChatStore', () => {handoffMetadata: {kind: 'patrol_finding',recommendedNextStep: 'Open Patrol provider settings',+ recommendedNextStepDetail: 'Fix the Patrol runtime issue before continuing.',recommendedNextStepAction: 'Open Patrol provider settings',recommendedNextStepActionHref: '/settings/system-ai',},@@ -129,6 +130,7 @@ describe('aiChatStore', () => {]);expect(aiChatStore.context.handoffMetadata).toMatchObject({kind: 'patrol_finding',+ recommendedNextStepDetail: 'Fix the Patrol runtime issue before continuing.',recommendedNextStepActionHref: '/settings/system-ai',});});diff --git a/frontend-modern/src/stores/aiChat.ts b/frontend-modern/src/stores/aiChat.tsindex 2b5263007d..21084f4e03 100644--- a/frontend-modern/src/stores/aiChat.ts+++ b/frontend-modern/src/stores/aiChat.ts@@ -64,6 +64,7 @@ export interface AIChatHandoffMetadata {runStatus?: string;runtimeFailure?: boolean;recommendedNextStep?: string;+ recommendedNextStepDetail?: string;recommendedNextStepAction?: string;recommendedNextStepActionKind?: string;recommendedNextStepActionHref?: string;diff --git a/frontend-modern/src/types/ai.ts b/frontend-modern/src/types/ai.tsindex c51a66c5f3..72dc8f7e65 100644--- a/frontend-modern/src/types/ai.ts+++ b/frontend-modern/src/types/ai.ts@@ -393,6 +393,7 @@ export interface AIChatSessionHandoffSummary {last_known_action_state?: string;last_known_action_risk?: string;recommended_next_step?: string;+ recommended_next_step_detail?: string;recommended_next_step_action?: string;recommended_next_step_action_kind?: string;recommended_next_step_action_href?: string;diff --git a/internal/ai/chat/session.go b/internal/ai/chat/session.goindex 3aa116c9f8..57d0b7e9af 100644--- a/internal/ai/chat/session.go+++ b/internal/ai/chat/session.go@@ -179,6 +179,7 @@ func NormalizeHandoffMetadata(metadata HandoffMetadata) HandoffMetadata {}if normalized.Kind == sessionHandoffKindPatrolAssessment || normalized.Kind == sessionHandoffKindPatrolFinding {normalized.RecommendedNextStep = safeSessionHandoffSummaryText(metadata.RecommendedNextStep, 160)+ normalized.RecommendedNextStepDetail = safeSessionHandoffSummaryText(metadata.RecommendedNextStepDetail, 240)normalized.RecommendedNextStepAction = safeSessionHandoffSummaryText(metadata.RecommendedNextStepAction, 120)normalized.RecommendedNextStepActionKind = safePatrolRecommendationActionKind(metadata.RecommendedNextStepActionKind)if normalized.RecommendedNextStepAction != "" {@@ -243,19 +244,20 @@ func inferPatrolRunHandoffMetadata(handoffContext string) HandoffMetadata {return NormalizeHandoffMetadata(metadata)}-func patrolAssessmentRecommendedNextStepSummary(kind string, handoffContext string) (string, string, string) {+func patrolAssessmentRecommendedNextStepSummary(kind string, handoffContext string) (string, string, string, string) {if kind != sessionHandoffKindPatrolAssessment {- return "", "", ""+ return "", "", "", ""}lines := strings.Split(strings.TrimSpace(handoffContext), "\n")if len(lines) == 0 {- return "", "", ""+ return "", "", "", ""}sawAssessmentContext := falsesawPatrolSource := falsevar recommendedNextStep string+ var recommendedNextStepDetail stringvar recommendedNextStepAction stringvar recommendedNextStepActionKind stringfor _, line := range lines {@@ -281,18 +283,20 @@ func patrolAssessmentRecommendedNextStepSummary(kind string, handoffContext stri}case "recommended next step":recommendedNextStep = safeSessionHandoffSummaryText(value, 160)+ case "recommended next step detail":+ recommendedNextStepDetail = safeSessionHandoffSummaryText(value, 240)case "recommended next step action":recommendedNextStepAction, recommendedNextStepActionKind = safePatrolAssessmentRecommendationAction(value)}}if !sawAssessmentContext || !sawPatrolSource {- return "", "", ""+ return "", "", "", ""}if recommendedNextStep == "" && recommendedNextStepAction != "" {recommendedNextStep = recommendedNextStepAction}- return recommendedNextStep, recommendedNextStepAction, recommendedNextStepActionKind+ return recommendedNextStep, recommendedNextStepDetail, recommendedNextStepAction, recommendedNextStepActionKind}func safePatrolAssessmentRecommendationAction(value string) (string, string) {@@ -493,17 +497,21 @@ func modelContextHandoffSummary(modelContext *sessionModelContext) *SessionHandokind = sessionHandoffKindPatrolFinding}recommendedNextStep := metadata.RecommendedNextStep+ recommendedNextStepDetail := metadata.RecommendedNextStepDetailrecommendedNextStepAction := metadata.RecommendedNextStepActionrecommendedNextStepActionKind := metadata.RecommendedNextStepActionKindrecommendedNextStepActionHref := metadata.RecommendedNextStepActionHref- if recommendedNextStep == "" || recommendedNextStepAction == "" || recommendedNextStepActionKind == "" {- contextNextStep, contextNextStepAction, contextNextStepActionKind := patrolAssessmentRecommendedNextStepSummary(+ if recommendedNextStep == "" || recommendedNextStepDetail == "" || recommendedNextStepAction == "" || recommendedNextStepActionKind == "" {+ contextNextStep, contextNextStepDetail, contextNextStepAction, contextNextStepActionKind := patrolAssessmentRecommendedNextStepSummary(kind,modelContext.HandoffContext,)if recommendedNextStep == "" {recommendedNextStep = contextNextStep}+ if recommendedNextStepDetail == "" {+ recommendedNextStepDetail = contextNextStepDetail+ }if recommendedNextStepAction == "" {recommendedNextStepAction = contextNextStepAction}@@ -538,6 +546,7 @@ func modelContextHandoffSummary(modelContext *sessionModelContext) *SessionHandoResourceCount: len(resources),ActionCount: len(actions),RecommendedNextStep: recommendedNextStep,+ RecommendedNextStepDetail: recommendedNextStepDetail,RecommendedNextStepAction: recommendedNextStepAction,RecommendedNextStepActionKind: recommendedNextStepActionKind,RecommendedNextStepActionHref: recommendedNextStepActionHref,diff --git a/internal/ai/chat/session_additional_test.go b/internal/ai/chat/session_additional_test.goindex 931916a621..3805ab689c 100644--- a/internal/ai/chat/session_additional_test.go+++ b/internal/ai/chat/session_additional_test.go@@ -530,6 +530,7 @@ func TestSessionStore_ListKeepsPatrolAssessmentHandoffIdentity(t *testing.T) {"Source: Pulse Patrol current assessment","Assessment: Coverage incomplete","Recommended Next Step: Verify full coverage",+ "Recommended Next Step Detail: Run a full Patrol sweep before treating the assessment as current.","Recommended Next Step Action: Run Patrol (run_patrol)",}, "\n")if err := store.SetModelHandoffEnvelope(session.ID, "", handoffContext, nil, []HandoffAction{{@@ -568,6 +569,7 @@ func TestSessionStore_ListKeepsPatrolAssessmentHandoffIdentity(t *testing.T) {t.Fatalf("approval posture = %#v, want safe action summary", summary)}if summary.RecommendedNextStep != "Verify full coverage" ||+ summary.RecommendedNextStepDetail != "Run a full Patrol sweep before treating the assessment as current." ||summary.RecommendedNextStepAction != "Run Patrol" ||summary.RecommendedNextStepActionKind != "run_patrol" {t.Fatalf("recommended next step summary = %#v, want safe Patrol recommendation", summary)@@ -653,6 +655,7 @@ func TestSessionStore_ListPrefersStructuredPatrolFindingNextStepMetadata(t *testif err := store.SetModelHandoffEnvelope(session.ID, "finding-provider-settings", handoffContext, nil, nil, HandoffMetadata{Kind: "patrol_finding",RecommendedNextStep: "Open Patrol provider settings",+ RecommendedNextStepDetail: "Fix the Patrol runtime issue before continuing.",RecommendedNextStepAction: "Open Patrol provider settings",RecommendedNextStepActionHref: "/settings/system-ai",}); err != nil {@@ -669,6 +672,7 @@ func TestSessionStore_ListPrefersStructuredPatrolFindingNextStepMetadata(t *testsummary := sessions[0].HandoffSummaryif summary.RecommendedNextStep != "Open Patrol provider settings" ||+ summary.RecommendedNextStepDetail != "Fix the Patrol runtime issue before continuing." ||summary.RecommendedNextStepAction != "Open Patrol provider settings" ||summary.RecommendedNextStepActionHref != "/settings/system-ai" {t.Fatalf("next step summary = %#v, want structured safe Patrol next step", summary)@@ -729,6 +733,7 @@ func TestSessionStore_ListWithholdsUnsafePatrolAssessmentRecommendationSummary(t"[Patrol Assessment Context]","Source: Pulse Patrol current assessment","Recommended Next Step: Run sudo systemctl restart workload.service",+ "Recommended Next Step Detail: Use token abc123 before running curl against the host.","Recommended Next Step Action: sudo restart (run_patrol)",}, "\n")if err := store.SetModelHandoffEnvelope(session.ID, "", handoffContext, nil, nil, HandoffMetadata{@@ -747,6 +752,7 @@ func TestSessionStore_ListWithholdsUnsafePatrolAssessmentRecommendationSummary(tsummary := sessions[0].HandoffSummaryif summary.RecommendedNextStep != "" ||+ summary.RecommendedNextStepDetail != "" ||summary.RecommendedNextStepAction != "" ||summary.RecommendedNextStepActionKind != "" {t.Fatalf("unsafe recommendation summary = %#v, want withheld recommendation fields", summary)diff --git a/internal/ai/chat/types.go b/internal/ai/chat/types.goindex dab79291ed..128c1af56c 100644--- a/internal/ai/chat/types.go+++ b/internal/ai/chat/types.go@@ -40,6 +40,7 @@ type SessionHandoffSummary struct {LastKnownActionState string `json:"last_known_action_state,omitempty"`LastKnownActionRisk string `json:"last_known_action_risk,omitempty"`RecommendedNextStep string `json:"recommended_next_step,omitempty"`+ RecommendedNextStepDetail string `json:"recommended_next_step_detail,omitempty"`RecommendedNextStepAction string `json:"recommended_next_step_action,omitempty"`RecommendedNextStepActionKind string `json:"recommended_next_step_action_kind,omitempty"`RecommendedNextStepActionHref string `json:"recommended_next_step_action_href,omitempty"`@@ -171,6 +172,7 @@ type HandoffMetadata struct {RunStatus string `json:"run_status,omitempty"`RuntimeFailure bool `json:"runtime_failure,omitempty"`RecommendedNextStep string `json:"recommended_next_step,omitempty"`+ RecommendedNextStepDetail string `json:"recommended_next_step_detail,omitempty"`RecommendedNextStepAction string `json:"recommended_next_step_action,omitempty"`RecommendedNextStepActionKind string `json:"recommended_next_step_action_kind,omitempty"`RecommendedNextStepActionHref string `json:"recommended_next_step_action_href,omitempty"`