Skip to content

fix: restore project note session state when resuming sessions#367

Merged
matt2e merged 3 commits intomainfrom
project-note-session-doesnt-go-back-to-in-progress
Mar 11, 2026
Merged

fix: restore project note session state when resuming sessions#367
matt2e merged 3 commits intomainfrom
project-note-session-doesnt-go-back-to-in-progress

Conversation

@matt2e
Copy link
Contributor

@matt2e matt2e commented Mar 11, 2026

Summary

  • When resuming a project note session, the MCP server and action executor/registry are now passed to the agent so project tools remain available
  • The frontend now re-tracks resumed sessions as active, restoring the spinner and in-progress state in the sidebar and project section
  • MCP servers are passed via LoadSessionRequest when loading existing ACP sessions

Test plan

  • Resume a project note session and verify it shows as "in progress" in the sidebar
  • Verify project tools (MCP) are available during the resumed session
  • Verify the session completes normally and the note refreshes

🤖 Generated with Claude Code

matt2e and others added 3 commits March 11, 2026 10:22
…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>
@matt2e matt2e requested review from baxen and wesbillman as code owners March 11, 2026 02:07
@matt2e matt2e merged commit c618e0d into main Mar 11, 2026
6 checks passed
@matt2e matt2e deleted the project-note-session-doesnt-go-back-to-in-progress branch March 11, 2026 02:12
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