Skip to content

Complete the Missing Subagent Model Diagnostic - #4292

Merged
ptr727 merged 2 commits into
developfrom
fix-subagent-model-diagnostic
Nov 19, 2026
Merged

ptr727 merged 2 commits into
developfrom
fix-subagent-model-diagnostic

Conversation

@ptr727

@ptr727 ptr727 commented Nov 19, 2026

Copy link
Copy Markdown
Owner

Summary

The note for an unset CLAUDE_CODE_SUBAGENT_MODEL ended at "the frontier tier's", so install and report output named no model. It now ends "tier's model.", the same wording foreign_subagent_note uses.

Raised by the promotion review on #4290 as a P2 [real] finding.

Verification

test_install.py runs 237 tests, all passing. One local-strict-review pass at the frontier tier found nothing.

🤖 Generated with Claude Code

The note for an unset CLAUDE_CODE_SUBAGENT_MODEL ended at the tier's, so the install and report output named no model. It now ends with the word model.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI lite review requested due to automatic review settings November 19, 2026 18:58
@coderabbitai

coderabbitai Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@ptr727

ptr727 commented Nov 19, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head dc5020a3c30c3e57c63d05b86706a850703a2fea, the content this pull request carries at that commit against develop, and it recorded 8 findings.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

An active nit remains because the regression test does not verify the complete diagnostic message, allowing the truncated wording to regress undetected.

1 open issue
What changed in this PR

Completes the Claude Code installer diagnostic for an unset CLAUDE_CODE_SUBAGENT_MODEL, ensuring reports identify the default tier's model.

Changes:

  • Completes the truncated diagnostic message in install.py.
  • Aligns the wording with the existing foreign-model diagnostic.
File Description
host-setup/​agent-safety/​claude/​install.py Completes the missing model wording in the unset subagent diagnostic.

Review effort: Lite

The report test asserted only the prefix, so the truncated wording would have passed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@codecov

codecov Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.95%. Comparing base (c0cfe26) to head (8ccd1ed).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #4292   +/-   ##
========================================
  Coverage    78.95%   78.95%           
========================================
  Files           42       42           
  Lines        15625    15625           
========================================
  Hits         12337    12337           
  Misses        3288     3288           
Flag Coverage Δ
python-3.13 78.95% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ptr727

ptr727 commented Nov 19, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head 8ccd1ed4ccf45d6c72164cdcac3ee5f3a047b004, the content this pull request carries at that commit against develop, and it recorded 1 finding.

@ptr727
ptr727 merged commit 8a1441e into develop Nov 19, 2026
13 checks passed
@ptr727
ptr727 deleted the fix-subagent-model-diagnostic branch November 19, 2026 19:25
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.

2 participants