diff --git a/packages/client/ui-trajectory/src/client/TrajectoryTable.tsx b/packages/client/ui-trajectory/src/client/TrajectoryTable.tsx
index 9cef2dccfb..90d3ccd3f1 100644
--- a/packages/client/ui-trajectory/src/client/TrajectoryTable.tsx
+++ b/packages/client/ui-trajectory/src/client/TrajectoryTable.tsx
@@ -155,8 +155,8 @@ type DetailTab =
| 'tools'
| 'overview'
| 'rendered'
+ | 'raw'
| 'source'
- | 'origin'
| 'input'
| 'output'
| 'schema'
@@ -782,7 +782,7 @@ function RequestOptions({
)
}
-function messageOriginLabel(source: unknown): string {
+function messageSourceLabel(source: unknown): string {
if (typeof source !== 'object' || source === null || Array.isArray(source)) {
return 'Unknown'
}
@@ -805,16 +805,16 @@ function messageOriginLabel(source: unknown): string {
return `${kind[0]?.toUpperCase() ?? ''}${kind.slice(1)}`
}
-function MessageOrigin({ record }: { record: TableRecord }) {
+function MessageSource({ record }: { record: TableRecord }) {
const source = record.cell.messageSource
- if (source === undefined) return
Origin not recorded
+ if (source === undefined) return Source not recorded
const data = typeof source === 'object' && source !== null
? source
: { value: source }
return (
)
@@ -879,17 +879,17 @@ function detailTabs(record: TableRecord): readonly DetailTabItem[] {
if (record.cell.kind === 'compacted') {
return [
{ id: 'overview', label: 'Summary' },
- { id: 'source', label: 'Raw Output' },
+ { id: 'raw', label: 'Raw Output' },
]
}
if (isMarkdownRecord(record)) {
return [
{ id: 'overview', label: 'Summary' },
{ id: 'rendered', label: 'Preview' },
- { id: 'source', label: 'Source' },
+ { id: 'raw', label: 'Raw' },
...(record.cell.messageSource === undefined
? []
- : [{ id: 'origin', label: 'Origin' } as const]),
+ : [{ id: 'source', label: 'Source' } as const]),
]
}
return [
@@ -2772,14 +2772,14 @@ export function TrajectoryTable({
>
{selected.cell.messageSource !== undefined && (
-
Origin
+ Source