Repository navigation
Conversation
Preserve queued job order and runtime session IDs across dashboard restarts, and expose configurable Test and UAT profile environments. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 3c577447-f029-4c4e-b269-3d718289eb1a
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The persistence limit can discard the twentieth queued job, and automatic startup lacks direct regression coverage.
Review effort: Balanced
Findings: 1
Open (2)
What changed in this PR
Restores persisted dashboard queues after restart and expands configurable non-production environments.
Changes:
- Rebuilds queued jobs while preserving order and session IDs.
- Automatically resumes eligible queues.
- Adds Test/UAT profile options and documentation.
| File | Description |
|---|---|
dashboard/server.js |
Restores and starts persisted queued jobs. |
test/dashboard-server.test.js |
Adds queue-restoration and environment tests. |
templates/repository-profile.json |
Adds Test and UAT environments. |
README.md |
Documents restart-safe queues. |
docs/repository-onboarding.md |
Clarifies profile-approved environments. |
docs/architecture.md |
Documents queue recovery and environment selection. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+2164
to
+2166
| const queuedSnapshots = persistedJobs | ||
| .filter((job) => job.status === "queued") | ||
| .slice(0, MAX_QUEUED_JOBS); |
| } | ||
| } | ||
|
|
||
| startNextJob(); |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Problem
Dashboard restarts restored the blocked/failed active job but left persisted waiting jobs in history instead of rebuilding the live queue. That lost automatic queue progression and could require users to recreate jobs with new session IDs. Repository onboarding also implied a narrow shared-environment set even though users may need Test or UAT when SIT is unavailable.
The authorized early-draft workflow—create/update a draft PR after focused checks, then continue independent builds—is already present on current
mainand remains unchanged.Change
testanduatto the repository-profile template while retaining profile-controlled non-production allowlisting.Validation
npm run validatepasses on Node 24.8.0npm pack --dry-runcontains the required filesRisk
Low orchestration risk. Restored queue entries contain only the existing privacy-safe persisted summaries and rebuild prompts through the same profile-aware path used for new jobs. Production aliases remain rejected. Full validation initially could not run on Node 18 because current
mainuses TypeScript 7; it passed completely with Node 24.8.0.