fix: temporarily hide prompt column from table view (#21586)

This commit is contained in:
Jake Howell
2026-01-21 10:09:39 +11:00
committed by GitHub
parent 6346eb7af8
commit 0ac05b4144
2 changed files with 0 additions and 19 deletions
@@ -56,7 +56,6 @@ export const RequestLogsPageView: FC<RequestLogsPageViewProps> = ({
<TableRow className="text-xs">
<TableHead>Timestamp</TableHead>
<TableHead>Initiator</TableHead>
<TableHead>Prompt</TableHead>
<TableHead>Tokens</TableHead>
<TableHead>Model</TableHead>
<TableHead>Tool Calls</TableHead>
@@ -107,8 +107,6 @@ export function tokenUsageMetadataMerge(
export const RequestLogsRow: FC<RequestLogsRowProps> = ({ interception }) => {
const [isOpen, setIsOpen] = useState(false);
const [firstPrompt] = interception.user_prompts;
const inputTokens = interception.token_usages.reduce(
(acc, tokenUsage) => acc + tokenUsage.input_tokens,
0,
@@ -169,22 +167,6 @@ export const RequestLogsRow: FC<RequestLogsRowProps> = ({ interception }) => {
</div>
</div>
</TableCell>
<TableCell className="min-w-0">
{/*
This is ensuring that the prompt is truncated and won't escape its bounding
container with an `absolute`.
Alternatively we could use a `table-fixed` table, but that would break worse
on mobile with the `min-w-0` column required.
This is a bit of a hack, but it works.
*/}
<div className="w-full h-4 min-w-48 relative">
<div className="absolute inset-0 leading-none overflow-hidden truncate">
{firstPrompt?.prompt}
</div>
</div>
</TableCell>
<TableCell className="w-32">
<div className="flex items-center">
<TooltipProvider>