Skip to content

Fix trajectory viewer to show all trajectories in list#159

Merged
khaliqgant merged 1 commit intomainfrom
fix/trajectory-viewer-multiple-trajectories
Jan 12, 2026
Merged

Fix trajectory viewer to show all trajectories in list#159
khaliqgant merged 1 commit intomainfrom
fix/trajectory-viewer-multiple-trajectories

Conversation

@khaliqgant
Copy link
Copy Markdown
Member

Summary

  • Fixed trajectory viewer to show the full list of trajectories when opening the panel
  • Previously, users could only see history when there were no active trajectory steps
  • Now the history list is shown by default when no trajectory is selected

Test plan

  • Open the trajectory panel while an agent is working (has active trajectory)
  • Verify you can see all trajectories in the list (not just the active one)
  • Click on a trajectory to view its steps
  • Click the "List" button to return to the full list
  • Active trajectories should be highlighted with blue background

🤖 Generated with Claude Code

Previously, the trajectory viewer only showed the history list when there
were no active trajectory steps. This prevented users from browsing past
trajectories while work was ongoing.

Changes:
- Modified isHistoryView condition from checking steps.length to checking
  selectedTrajectoryId. Now shows history list when no trajectory is
  selected, regardless of whether there are active steps.
- Active trajectories are highlighted with a blue background in the list
- Simplified render logic by moving history view check to top level

This allows users to:
- Always see the full list of trajectories when opening the panel
- Click on any trajectory (active or completed) to view its steps
- Use the "List" button to return to the full trajectory list

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@my-senior-dev-pr-review
Copy link
Copy Markdown

🤖 My Senior Dev — Analysis Complete

👤 For @khaliqgant

📁 Expert in src/dashboard/react-components/ (3 edits) • ⚡ 17th PR this month

View your contributor analytics →


📊 1 file reviewed • 5 high risk • 6 need attention

🚨 High Risk:

  • src/dashboard/react-components/TrajectoryViewer.tsx — Critical impact on application state and user interactions where several critical issues must be addressed.

⚠️ Needs Attention:

  • src/dashboard/react-components/TrajectoryViewer.tsx — Key logic and performance concerns need to be verified to ensure reliability under various states and circumstances.

🚀 Open Interactive Review →

The full interface unlocks features not available in GitHub:

  • 💬 AI Chat — Ask questions on any file, get context-aware answers
  • 🔍 Smart Hovers — See symbol definitions and usage without leaving the diff
  • 📚 Code Archeology — Understand how files evolved over time (/archeology)
  • 🎯 Learning Insights — See how this PR compares to similar changes

💬 Chat here: @my-senior-dev explain this change — or try @chaos-monkey @security-auditor @optimizer @skeptic @junior-dev

📖 View all 12 personas & slash commands

You can interact with me by mentioning @my-senior-dev in any comment:

In PR comments or on any line of code:

  • Ask questions about the code or PR
  • Request explanations of specific changes
  • Get suggestions for improvements

Slash commands:

  • /help — Show all available commands
  • /archeology — See the history and evolution of changed files
  • /profile — Performance analysis and suggestions
  • /expertise — Find who knows this code best
  • /personas — List all available AI personas

AI Personas (mention to get their perspective):

Persona Focus
@chaos-monkey 🐵 Edge cases & failure scenarios
@skeptic 🤨 Challenge assumptions
@optimizer Performance & efficiency
@security-auditor 🔒 Security vulnerabilities
@accessibility-advocate Inclusive design
@junior-dev 🌱 Simple explanations
@tech-debt-collector 💳 Code quality & shortcuts
@ux-champion 🎨 User experience
@devops-engineer 🚀 Deployment & scaling
@documentation-nazi 📚 Documentation gaps
@legacy-whisperer 🏛️ Working with existing code
@test-driven-purist Testing & TDD

For the best experience, view this PR on myseniordev.com — includes AI chat, file annotations, and interactive reviews.

@khaliqgant khaliqgant merged commit de8c29d into main Jan 12, 2026
6 checks passed
@khaliqgant khaliqgant deleted the fix/trajectory-viewer-multiple-trajectories branch January 12, 2026 08:44
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.

1 participant