Skip to content

fix: add filesystem fallbacks for multiple trajectory loading#144

Merged
khaliqgant merged 1 commit intomainfrom
fix/trajectory-loading-multiple
Jan 11, 2026
Merged

fix: add filesystem fallbacks for multiple trajectory loading#144
khaliqgant merged 1 commit intomainfrom
fix/trajectory-loading-multiple

Conversation

@khaliqgant
Copy link
Copy Markdown
Member

Summary

  • Added filesystem fallbacks in trajectory integration to support multiple active trajectories
  • Merges active-dir files with index.json so all active trajectories display even if index is stale
  • Fixes issue where only single trajectory was loading in dashboard

Changes

  • Modified src/trajectory/integration.ts
  • Added helper functions: getCurrentPhaseFromTrajectory, listActiveTrajectoryFiles, findActiveTrajectoryPathById
  • Updated getTrajectoryStatus, listTrajectorySteps, getTrajectoryHistory to use filesystem fallbacks
  • Improves robustness when index.json is out of sync with active trajectories on disk

Related

  • Fixes: Dashboard showing only single trajectory instead of all active ones
  • Previous attempt: commit 56b1c82

Testing

  • Verify multiple active trajectories now display in dashboard
  • Confirm trajectory status, steps, and history are correctly merged from active-dir

@khaliqgant khaliqgant merged commit 42b017d into main Jan 11, 2026
6 checks passed
@khaliqgant khaliqgant deleted the fix/trajectory-loading-multiple branch January 11, 2026 19:04
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