Skip to content

Fix MCP optimization sessions failing to load in the dashboard#586

Merged
saleh-mir merged 1 commit into
masterfrom
fix/mcp-optimization-session-shape
Jun 8, 2026
Merged

Fix MCP optimization sessions failing to load in the dashboard#586
saleh-mir merged 1 commit into
masterfrom
fix/mcp-optimization-session-shape

Conversation

@saleh-mir

Copy link
Copy Markdown
Member

The MCP optimization draft persisted an incomplete results state ({alert} only). The dashboard's loadSession $patches that state and then reads results.progressbar.current / results.exception.error directly → MCP-created sessions crashed with Failed to load session (dashboard-run ones work because the store is pre-filled). This persists the complete results shape (matching dashboard-v1 optimizationStore.ts state()).

Pairs with dashboard-v1 PR (the _ensureResultsShape guard, which also recovers already-saved broken sessions). The dashboard must be rebuilt into jesse/static at release.

🤖 Generated with Claude Code

create_optimization_draft_service persisted an incomplete session results state ({alert}
only). The dashboard's loadSession patches that state in and then reads
results.progressbar.current / results.exception.error directly, so MCP-created sessions
crashed with 'Failed to load session' (dashboard-run ones work because the store is
pre-filled). Persist the COMPLETE results shape, matching dashboard-v1 optimizationStore.ts.

Pairs with the dashboard-v1 guard PR (which also recovers already-saved broken sessions).
The dashboard must be rebuilt into jesse/static at release.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@saleh-mir saleh-mir merged commit 0987c30 into master Jun 8, 2026
15 checks passed
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