Skip to content

fix(project_mcp): gate note/commit artifact data on terminal session state - #600

Merged
matt2e merged 1 commit into
mainfrom
wrong-info-in-project-mcp
Apr 10, 2026
Merged

fix(project_mcp): gate note/commit artifact data on terminal session state#600
matt2e merged 1 commit into
mainfrom
wrong-info-in-project-mcp

Conversation

@matt2e

@matt2e matt2e commented Apr 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Moves note and commit artifact data loading inside the terminal session status check (Completed/Cancelled/Error), so in-progress sessions don't return potentially stale or incomplete artifact data in the MCP tool response.

Test plan

  • Verify that completed/cancelled/error sessions still include note and commit data in the response
  • Verify that in-progress sessions no longer include note/commit artifact data

🤖 Generated with Claude Code

…state

`repo_session_payload()` was unconditionally including note content and
commit sha in the response even when the session was still queued or
running. Move the artifact data block inside the existing terminal state
check so incomplete/in-progress data is not leaked to MCP consumers.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@matt2e
matt2e requested review from baxen and wesbillman as code owners April 10, 2026 03:50
@matt2e
matt2e merged commit ce16583 into main Apr 10, 2026
5 checks passed
@matt2e
matt2e deleted the wrong-info-in-project-mcp branch April 10, 2026 03:52
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