fix: include project instructions in /review subagent (#8899)

Include project-level AGENTS.md and skills in /review sessions so the
review sub-agent uses the same instruction pipeline as standard runs,
keeping reviewer context aligned with normal sessions.
This commit is contained in:
Thibault Sottiaux 2026-01-08 05:31:01 -08:00 committed by GitHub
parent 5b022c2904
commit be212db0c8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -83,10 +83,6 @@ async fn start_review_conversation(
) -> Option<async_channel::Receiver<Event>> {
let config = ctx.client.config();
let mut sub_agent_config = config.as_ref().clone();
// Run with only reviewer rubric — drop outer user_instructions
sub_agent_config.user_instructions = None;
// Avoid loading project docs; reviewer only needs findings
sub_agent_config.project_doc_max_bytes = 0;
// Carry over review-only feature restrictions so the delegate cannot
// re-enable blocked tools (web search, view image).
sub_agent_config