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
Screenshots external agent session view
Problem
Current State
- External agent session details are blank - Links lead to empty pages after agent completes (@drabinovitz field feedback)
- No artifact linkage - Session panel doesn't show what was created (Issues, MRs, MR notes, commits)
- No LLM call visibility - Users don't know how many AI model calls occurred per session
- No model information - Users can't see which model(s) were used (Claude, GPT, etc.)
- 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:
1. Session Artifacts Created (with links) in Details pane
- 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
Related Issues
- Display Remaining Credits and Cycle Reset Info (#580863) - Display Remaining Credits (general, not session-specific)
- Implement todos for session failures (#580869) - Implement todos for session failures
- [SPIKE] Document data sources for DAP usage dashboard user actions
- AI Instrumentation: Track specific agent type (#580010) - AI Instrumentation: Track specific agent type
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



