DAP Session Details Panel - Comprehensive Visibility for Artifacts, Credits, and LLM Usage

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Summary

DAP sessions currently lack comprehensive visibility in the UI side panel. Users cannot see what artifacts were created, how many LLM calls were made, which models were used, or how many GitLab Credits were consumed. External agent sessions show completely blank details pages.

This is critical for GA readiness - customers need visibility into consumption to manage costs and understand what DAP sessions actually accomplished.

Screenshots Flow side panel view

Screenshot_2025-12-21_at_10.08.18 Screenshot_2025-12-21_at_10.08.29

Screenshots external agent session view

Screenshot_2025-12-21_at_10.20.44 Screenshot_2025-12-21_at_10.20.48

Problem

Current State

  1. External agent session details are blank - Links lead to empty pages after agent completes (@drabinovitz field feedback)
  2. No artifact linkage - Session panel doesn't show what was created (Issues, MRs, MR notes, commits)
  3. No LLM call visibility - Users don't know how many AI model calls occurred per session
  4. No model information - Users can't see which model(s) were used (Claude, GPT, etc.)
  5. No credit consumption - Users flying blind on GitLab Credit usage per session

Customer Impact

  • Multiple customers: Must watch debug logs to understand session state
  • Field team: Cannot explain billing to customers without session-level credit visibility

Proposal

Enhance the DAP session details panel (UI sidebar) to include:

  • Issues created during session → Link to issue
  • Merge Requests created → Link to MR
  • MR notes/comments added → Link to specific note
  • Commits made → Link to commit
  • Files modified → List with links to diffs

2. LLM/AI Usage Details

  • Total LLM calls - Number of requests made to AI models
  • Model(s) used - e.g., "Claude 4.5 Sonnet", "Claude 4.5 Haiku"
  • Input/Output - LLM calls taken on which we bill
  • GitLab Credits consumed - Calculated credit usage for the session

3. Session Status & Timing

  • Duration - How long the session ran

4. Fix External Agent Sessions

  • External agent sessions must show complete details (currently blank)
  • All session types (foundational flows, agentic chat, custom agents) must populate the details panel

User Stories

As a developer, I want to see exactly what artifacts my DAP session created so I can review them without searching the codebase.

As a team lead, I want to see how many GitLab Credits each session consumed so I can understand and manage team AI usage.

As an enterprise customer, I want session-level audit trails showing which AI models were used and what changes were made for compliance purposes.

As an SA, I want to explain to customers exactly what credits a demo session consumed and why.

Design Mockup (Suggested)

┌─────────────────────────────────────────┐
│ Session Details                    [X]  │
├─────────────────────────────────────────┤
│ Status: ✅ Completed                    │
│ Duration: 2m 34s                        │
│ Started: Dec 16, 2025 10:23:45          │
├─────────────────────────────────────────┤
│ 📊 AI Usage                             │
│ ├─ LLM Calls: 17                        │
│ ├─ Model: Claude 4.5 Sonnet             │
│ └─ Credits Used: 8.5 GitLab Credits     │
├─────────────────────────────────────────┤
│ 📦 Artifacts Created                    │
│ ├─ MR: !1234 - Fix auth bug      [→]    │
│ ├─ Commit: abc123f - Update...   [→]    │
│ └─ Files: 3 modified             [→]    │
├─────────────────────────────────────────┤
│ 🔗 Related                              │
│ └─ Issue: #567 - Auth fails      [→]    │
└─────────────────────────────────────────┘

Technical Notes

  • Data for LLM calls/tokens exists in Snowflake (ref: #14304)
  • Session ID can be used to join workflow data
  • Need API to surface this data to the UI panel
  • Credit calculation requires integration with billing/consumption system

Acceptance Criteria

  • All session types show complete details (no blank pages)
  • Artifacts created are listed with clickable links
  • LLM call count and model(s) used are displayed
  • Token consumption (input/output) is visible
  • GitLab Credits consumed per session is calculated and displayed
  • Session status clearly indicates current state
  • Works for: Foundational Flows, Agentic Chat, Custom Agents, External Agents
Edited by 🤖 GitLab Bot 🤖