Repository navigation
feat(alpha): warn on unfetched refs in agent exec prompts - #396
Merged
Merged
Conversation
Generated-by: LLM effort=high;harness=codex:0.171.0;model=openai:gpt-6.2-sol;session=sha-256-64:3821e841b874aee9;surface=exec
tbhb-dev-agent-pull-requests
Bot
requested a review
from tbhb
as a code owner
November 25, 2026 11:30
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.
Why
An agent run can finish without making progress when its prompt references a ref missing from its mirror. The launch gives the operator no warning when the prompt depends on a ref omitted from the fetch list (
PRB-TOOLS-EXEC-MISSING-REF-SILENT).Behavior change
Before launch,
agent execwarns on stderr for each branch ref or pull request head in the prompt that no--fetch-refoption covers. Each warning appears once in the order the prompt mentions the refs. The launch proceeds and returns its usual exit status.Verification
Pytest passed 340 tests and covered all 48 branches in the launch rules, including the prompt ref scan.
Generated-by: LLM effort=high;harness=codex:0.171.0;model=openai:gpt-6.2-sol;session=sha-256-64:3821e841b874aee9;surface=exec
Assisted-by: LLM effort=medium;harness=claude-code:2.1.331;model=anthropic:claude-sonnet-5-5;session=sha-256-64:24ed779d56b187de;surface=cli