fix: restore project note session state when resuming sessions#367
Merged
fix: restore project note session state when resuming sessions#367
Conversation
…essions When a user replies to a completed project note session, three things were broken: (1) the MCP server wasn't started so tools like add_project_repo and start_repo_session were unavailable, (2) the note row didn't show a spinner, and (3) the sidebar didn't indicate the project was active. Root cause: resume_session hardcoded mcp_project_id to None and the session-status-changed event for "running" wasn't handled by ProjectSection. Now resume_session looks up the project via the linked project note, starts the MCP server when appropriate, and the frontend re-adds resumed sessions to active tracking. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
… LoadSessionRequest The LoadSessionRequest supports an mcp_servers field, but setup_acp_session was not passing it — only NewSessionRequest included MCP servers. This meant resumed project-note sessions lost access to tools like add_project_repo and start_repo_session even though the MCP server was running locally. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Summary
LoadSessionRequestwhen loading existing ACP sessionsTest plan
🤖 Generated with Claude Code