Skip to content

feat(ci): disclose AI-generated CLI diagnoses - #545

Merged
121watts merged 2 commits into
mainfrom
codex/dep-4954-cli-ai-disclosure
Jul 21, 2026
Merged

feat(ci): disclose AI-generated CLI diagnoses#545
121watts merged 2 commits into
mainfrom
codex/dep-4954-cli-ai-disclosure

Conversation

@121watts

@121watts 121watts commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a tiny honesty footer to CLI failure diagnoses, once and out of the way.

What was happening

The human-readable CLI output presented generated diagnoses and possible fixes without indicating that the guidance came from AI or could be wrong.

What happens now

Grouped and focused diagnosis output ends with “This diagnosis is AI-generated and can make mistakes.” when any diagnosis or possible fix was rendered. The footer appears once for the whole output, never once per failure, and stays absent when there is no AI guidance.

JSON output is unchanged.

Anything else

This complements the app disclosure PR and the Opus 4.7 API upgrade.


Note

Low Risk
CLI presentation-only change with no API or JSON behavior changes.

Overview
Human-readable depot ci diagnose output now ends with a single footer when any Diagnosis or Possible fix text was shown: "This diagnosis is AI-generated and can make mistakes."

The footer is printed once per command (after bounds/summary notes), including when multiple failure groups or representative attempts have AI guidance. It is omitted when neither field is present. JSON output is unchanged.

Tests cover grouped and focused paths, multi-group/attempt cases, diagnosis-only vs possible-fix-only, and the no-AI case.

Reviewed by Cursor Bugbot for commit fdcfd47. Bugbot is set up for automated code reviews on this repo. Configure here.

@linear-code

linear-code Bot commented Jul 21, 2026

Copy link
Copy Markdown

DEP-4954

@121watts
121watts marked this pull request as ready for review July 21, 2026 19:10
cursor[bot]
cursor Bot approved these changes Jul 21, 2026
@121watts
121watts enabled auto-merge July 21, 2026 19:29
@121watts
121watts merged commit 0ec5e01 into main Jul 21, 2026
12 checks passed
@121watts
121watts deleted the codex/dep-4954-cli-ai-disclosure branch July 21, 2026 19:30

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Approved: Cursor Bugbot and Cursor Security Agent both completed successfully with no findings requiring human review. No reviewers were assigned.

Open in Web View Automation 

Sent by Cursor Approval Agent: Pull Request Router and Approver

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