Route MCP graph reads from hook workspace context#233
Conversation
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a47e6e82a5
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
a47e6e8 to
3b59ca3
Compare
29e29a2 to
447ed7b
Compare
Summary
cwdto the nearest registered project ancestor and injects that project selector into follow-up registered-project graph reader calls when the caller did not provide an explicit selector.tracedecay_filesaway from the active project.Verification
CARGO_TARGET_DIR=/home/zack/projects/tracedecay/target cargo test --features test-transport --test mcp_suite hook_event_workspace_context_routes_followup_graph_reads -- --nocaptureCARGO_TARGET_DIR=/home/zack/projects/tracedecay/target cargo test --features test-transport --test mcp_suite mcp_handler_test::always_loaded_graph_tool_schemas_advertise_project_selectorsgit diff --checkKnown unrelated failures
CARGO_TARGET_DIR=/home/zack/projects/tracedecay/target cargo test --features test-transport --test mcp_suite mcp_server_test::still has 2 failures unrelated to this change:test_tools_call_plain_text_failure_sets_is_errorexpects old changelog git failure text, andtest_error_trackingexpects status text to contain an errors field.