Repository navigation
Surface agent messages near the top of completion comments - #80783
Conversation
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
|
✅ PR Code Quality Reviewer completed the code quality review. Agent messagesNo-op message PR #80783 review completed with no actionable findings; review submitted and review-history recorded. PR Code Quality ReviewerOutcome: The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken. The
|
|
✅ Test Quality Sentinel completed test quality analysis.
|
|
✅ PR Specification Reviewer completed successfully! Agent messagesNo-op message PR #80783 reviewed at head b1945d9: no directly applicable specification contract or actionable finding; no review publication needed. PR Specification ReviewerOutcome: The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken. The
|
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅
|
|
✅ Ponytail Reviewer completed successfully! Agent messagesNo-op message Lean already. Ship. Ponytail ReviewerOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. The
|
Comment MemoryPeek at saved memory (spec-review-history)History |
There was a problem hiding this comment.
Reviewed the changed lines in notify_comment_error.cjs and its tests. I found no actionable correctness, security, performance, or maintainability issues that should block merge. The expanded agent-message layout is validated through the existing report AST normalization and the new tests cover sanitization, redaction, alerts, ordering, and publication restrictions.
🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~3 AIC · ⌖ ~2 AIC · ⊞ 1.7K
Comment /review to run again
Comment MemoryPeek at saved memory (review-history)History |
🧪 Test Quality Sentinel Report✅ Test Quality Score: 85/100 — Excellent
📊 Metrics (13 tests)
|
There was a problem hiding this comment.
✅ Test Quality Sentinel: 85/100. 7.7% implementation tests (threshold: 30%).
🧪 Test quality analysis by Test Quality Sentinel · copilot · routed: haiku55 xhigh · ~5 AIC · ⌖ ~2 AIC · ⊞ 7.4K
Comment /review to run again
There was a problem hiding this comment.
🟡 Changes recommended
Protected labels can leave the report over the comment-size limit even after message redaction, causing rendering to throw before the completion status is published.
1 open issue
What changed in this PR
This PR makes agent explanations easier to find in gh-aw completion comments by displaying them near the top instead of inside collapsed sections.
Changes:
- Adds an expanded Agent messages section before links and outcome metadata.
- Labels explanations by type while retaining Markdown parsing and existing publication safeguards.
- Updates tests for message ordering, alerts, taint tracking, sanitization, and credential redaction.
| File | Description |
|---|---|
actions/setup/js/notify_comment_error.test.cjs |
Updates layout expectations and adds coverage for expanded agent messages. |
actions/setup/js/notify_comment_error.cjs |
Replaces collapsed explanations with labeled messages and moves them before links. |
Review effort: Balanced (adaptive)
| normalizeReport({ type: "report", title: "Workflow status", children: [details] }); | ||
| children.push(details); | ||
| normalizeReport({ type: "report", title: "Workflow status", children: blocks }); | ||
| reports.push({ type: "paragraph", children: [{ type: "strong", children: [{ type: "text", value: summary, agentTainted: false }], agentTainted: false }], agentTainted: false }, ...blocks); |
There was a problem hiding this comment.
Fixed in c196154: completion comments now cap valid explanations and indicate when additional messages are omitted. Regression tests cover oversized collections and size redaction.
There was a problem hiding this comment.
Summary
Agent explanations now render in one ## Agent messages section above the activation links, without <details> wrappers. Agent text stays tainted under framework-authored labels. I found no blocking issues in the changed lines.
Checked
- Depth validation: the old code validated
report → details → blocks. The new code validatesreport → blocks, which matches the rendered tree, so nesting checks are not weakened. - Ordering and taint: the new tests match the rendered order, and the bold labels are framework-authored (
agentTainted: false). - No-op duplication:
handle_noop_message.cjsemits only category and description text, so the explanation is not repeated in the no-op body. - Redaction: credential screening and shared report redaction still run before rendering.
Limitation
I could not run the JS test suite. npm ci in actions/setup/js fails on the package proxy self-signed TLS certificate, so the new exact-whitespace toContain assertions are unverified. Run the notify_comment_error tests before merging.
🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~8 AIC · ⌖ ~2 AIC · ⊞ 5.1K
Comment /matt to run again
|
🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:
Keeping the changes focused; human review and CI get the final taste test. No merging or CI triggering. Structured data{
"completed_task": 0,
"head": "b1945d9cc5f8fe1e04a82b0ba05991af852161eb",
"kind": "requested",
"schema_version": "1",
"state": "c1f1c9c64fbcbeb1f6b96175c093ee39f6ba88afc0e118c064e642419c300b5f",
"work": [
"0d2396e6eaf3f0a69d9aab1a7bdd9b3d91c26f012dc45322567169e9bd8e7e2f"
],
"workflow": "pr-sous-chef"
}
|
…-issue-comment-template Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Merged |

Agent explanations were buried beneath outcome boilerplate in collapsed sections. This change makes no-op and other agent messages readable at a glance.