Skip to content

The open-source app everyone uses to manage agents at work

fix(ui): place run link in same row as feedback buttons, right-aligned

dotta993a3262f6aa
diff --git a/ui/src/components/CommentThread.tsx b/ui/src/components/CommentThread.tsx
index 88b01fcd10..b0b5c618e4 100644
--- a/ui/src/components/CommentThread.tsx
+++ b/ui/src/components/CommentThread.tsx
@@ -336,10 +336,24 @@ function CommentCard({
sharingPreference={feedbackDataSharingPreference}
termsUrl={feedbackTermsUrl}
onVote={onVote}
+ rightSlot={comment.runId && !isPending ? (
+ comment.runAgentId ? (
+ <Link
+ to={`/agents/${comment.runAgentId}/runs/${comment.runId}`}
+ className="inline-flex items-center rounded-md border border-border bg-accent/30 px-2 py-1 text-[10px] font-mono text-muted-foreground hover:text-foreground hover:bg-accent/50 transition-colors"
+ >
+ run {comment.runId.slice(0, 8)}
+ </Link>
+ ) : (
+ <span className="inline-flex items-center rounded-md border border-border bg-accent/30 px-2 py-1 text-[10px] font-mono text-muted-foreground">
+ run {comment.runId.slice(0, 8)}
+ </span>
+ )
+ ) : undefined}
/>
) : null}
- {comment.runId && !isPending ? (
- <div className="mt-2 pt-2 border-t border-border/60">
+ {comment.runId && !isPending && !(comment.authorAgentId && onVote && !isQueued) ? (
+ <div className="mt-3 pt-3 border-t border-border/60">
{comment.runAgentId ? (
<Link
to={`/agents/${comment.runAgentId}/runs/${comment.runId}`}
diff --git a/ui/src/components/OutputFeedbackButtons.tsx b/ui/src/components/OutputFeedbackButtons.tsx
index bafa9bccf5..efcf62eb06 100644
--- a/ui/src/components/OutputFeedbackButtons.tsx
+++ b/ui/src/components/OutputFeedbackButtons.tsx
@@ -19,12 +19,14 @@ export function OutputFeedbackButtons({
sharingPreference = "prompt",
termsUrl = null,
onVote,
+ rightSlot,
}: {
activeVote?: FeedbackVoteValue | null;
disabled?: boolean;
sharingPreference?: FeedbackDataSharingPreference;
termsUrl?: string | null;
onVote: (vote: FeedbackVoteValue, options?: { allowSharing?: boolean; reason?: string }) => Promise<void>;
+ rightSlot?: React.ReactNode;
}) {
const [pendingVote, setPendingVote] = useState<{
vote: FeedbackVoteValue;
@@ -130,6 +132,7 @@ export function OutputFeedbackButtons({
<ThumbsDown className="mr-1.5 h-3.5 w-3.5" />
Needs work
</Button>
+ {rightSlot ? <div className="ml-auto">{rightSlot}</div> : null}
</div>
{collectingDownvoteReason ? (
<div className="mt-2 rounded-md border border-border/60 bg-accent/20 p-3">