From f21b97b0c5e9a75c4db6fe8bb5d61e658c8b333c Mon Sep 17 00:00:00 2001 From: Danny Kopping Date: Thu, 2 Apr 2026 14:43:30 +0200 Subject: [PATCH] chore: link to audit docs and add prompt attribution tooltip on AI Bridge sessions page (#23969) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit *Disclaimer: implemented by a Coder Agent using Claude Opus 4.6* ## Summary Two changes on the AI Bridge sessions page (`/aibridge/sessions/`): 1. **Updated header subtitle and link** — replaced the generic "Centralized auditing for LLM usage across your organization. More about AI Governance" with auditing-specific copy and a link to the [AI Bridge audit docs](https://coder.com/docs/ai-coder/ai-bridge/audit). 2. **Added prompt attribution tooltip** — each user prompt now shows an info icon with a tooltip explaining that prompt origin cannot be reliably determined (human vs. agent), linking to the [attribution docs](https://coder.com/docs/ai-coder/ai-bridge/audit#human-vs-agent-attribution). ## Changes | File | What changed | |------|-------------| | `AIBridgeSessionsLayout.tsx` | Updated subtitle text and link target | | `SessionTimeline.tsx` | Added `InfoIcon` + `Tooltip` next to the "Prompt" label in `ThreadItem` | image --------- Signed-off-by: Danny Kopping --- .../AIBridgePage/AIBridgeSessionsLayout.tsx | 7 +++-- .../SessionTimeline/SessionTimeline.tsx | 29 +++++++++++++++++-- 2 files changed, 31 insertions(+), 5 deletions(-) diff --git a/site/src/pages/AIBridgePage/AIBridgeSessionsLayout.tsx b/site/src/pages/AIBridgePage/AIBridgeSessionsLayout.tsx index afea18ac17221..31b5f6641f157 100644 --- a/site/src/pages/AIBridgePage/AIBridgeSessionsLayout.tsx +++ b/site/src/pages/AIBridgePage/AIBridgeSessionsLayout.tsx @@ -19,13 +19,14 @@ const AIBridgeSessionsLayout: FC = () => { - Centralized auditing for LLM usage across your organization.{" "} + Review and audit AI activity, token usage, and prompt history across + sessions.{" "} - More about AI Governance + Learn how to audit AI sessions diff --git a/site/src/pages/AIBridgePage/SessionThreadsPage/SessionTimeline/SessionTimeline.tsx b/site/src/pages/AIBridgePage/SessionThreadsPage/SessionTimeline/SessionTimeline.tsx index 64db100c18524..46550a9b5e57e 100644 --- a/site/src/pages/AIBridgePage/SessionThreadsPage/SessionTimeline/SessionTimeline.tsx +++ b/site/src/pages/AIBridgePage/SessionThreadsPage/SessionTimeline/SessionTimeline.tsx @@ -323,8 +323,34 @@ const ThreadItem: FC = ({ thread, initiator }) => {
{thread.prompt && ( <> -
+
Prompt + + + + + + +

+ Prompt origin cannot be reliably determined. This may + have been authored by a human or generated by an agent.{" "} +

+ + Learn about human vs. agent attribution + +
+
+

{thread.prompt} @@ -332,7 +358,6 @@ const ThreadItem: FC = ({ thread, initiator }) => { )}

- {/* right column: details */}