Skip to content

Add sessions webpage to ApprovalService with activity log display#82

Merged
johnkord merged 2 commits intomainfrom
copilot/fix-81
Jun 26, 2025
Merged

Add sessions webpage to ApprovalService with activity log display#82
johnkord merged 2 commits intomainfrom
copilot/fix-81

Conversation

Copy link
Copy Markdown

Copilot AI commented Jun 26, 2025

This PR adds a new webpage to the ApprovalService that displays all agent sessions and their activity logs in a user-friendly format for human overview and analysis.

New Features

API Endpoints

  • GET /api/sessions - Lists all sessions with metadata (name, status, timestamps, activity count)
  • GET /api/sessions/{id} - Gets detailed session information with complete activity log

Web Interface

  • New Sessions Dashboard (/sessions.html) - Interactive webpage showing all sessions
  • Navigation - Added navigation links between Tool Approvals and Sessions pages
  • Session Details - Click any session to expand and view its complete activity log
  • Activity Log Presentation - User-friendly display of activities with:
    • Color-coded status indicators (green for success, red for errors)
    • Formatted timestamps and durations
    • Expandable JSON data sections
    • Activity type badges and descriptions

Implementation Details

  • Added AgentAlpha project reference to ApprovalService for session data access
  • Created SessionsController that integrates with existing ISessionManager
  • Reused existing session management infrastructure without modification
  • Added dependency injection configuration for session management services
  • Responsive web design matching existing ApprovalService styling

Screenshots

The sessions page displays:

  • Session list with metadata (name, ID, status, timestamps, activity count)
  • Expandable session details showing chronological activity logs
  • Formatted activity data with syntax highlighting for JSON
  • Error activities highlighted in red for easy identification
  • Auto-refresh functionality (every 30 seconds)

Testing

  • Verified API endpoints return correct session data
  • Tested web interface with sample session data
  • Confirmed navigation between approval and sessions pages works
  • Validated build process and dependency integration

Fixes #81.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: johnkord <16021727+johnkord@users.noreply.github.com>
Copilot AI changed the title [WIP] Add a webpage to the ApprovalService that shows all sessions and ActivityLogs Add sessions webpage to ApprovalService with activity log display Jun 26, 2025
Copilot AI requested a review from johnkord June 26, 2025 14:41
@johnkord johnkord marked this pull request as ready for review June 26, 2025 15:22
@johnkord johnkord merged commit 6ede4c5 into main Jun 26, 2025
@johnkord johnkord deleted the copilot/fix-81 branch June 26, 2025 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a webpage to the ApprovalService that shows all sessions and ActivityLogs

2 participants