Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export type TurnOutputOpenRequest =
title: string;
turnId: string;
artifactId: string;
managedId?: string;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[suggestion] Consider adding a focused assertion in App.test.tsx (which already covers onRightPanelOpen): render an artifact with managedId, click Open, and verify request.managedId equals artifact.managedId; also verify that when managedId is absent, the key is not present on the request object. This protects the new public contract from being silently dropped by a future refactor.

artifact: DaemonSessionArtifact;
workspaceActions?: DaemonWorkspaceActions;
previewContent?: string;
Expand Down Expand Up @@ -154,6 +155,7 @@ function TurnOutputsComponent({
title: artifact.title ?? 'Artifact',
turnId,
artifactId: artifact.id,
...(artifact.managedId ? { managedId: artifact.managedId } : {}),

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nit] This uses a truthy check while previewContent on the next line uses !== undefined. An empty-string managedId would be silently dropped from the request. If filtering out empty strings is intentional for ids, that seems reasonable - but consider a short comment noting it, so a future consistency refactor to !== undefined does not accidentally change behavior.

artifact,
...(previewContent !== undefined ? { previewContent } : {}),
});
Expand Down
Loading