Skip to content

fix: render unified session summary at top level - #68820

Merged
pelikhan merged 2 commits into
mainfrom
pelikhan-agent-conversion-summary
Oct 14, 2026
Merged

pelikhan merged 2 commits into
mainfrom
pelikhan-agent-conversion-summary

Conversation

@pelikhan

@pelikhan pelikhan commented Oct 14, 2026 •

Copy link
Copy Markdown
Collaborator

The agent conversation step summary nests Unified session inside an extra Agentic Conversation disclosure, adding an unnecessary layer to inspect the run.

Keep Unified session as a collapsed <details> section at the document's top level. Skip the extra Agentic Conversation wrapper for unified traces while preserving legacy log rendering, the nested Session overview and Full timeline sections, and separate Safe Outputs previews. Update the rendering specification and add regressions that check top-level placement with and without safe outputs.

Validation: 146 focused summary, publication, bootstrap, and session CLI tests passed; JavaScript type checking, formatting/linting, and make agent-report-progress passed.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@pelikhan
pelikhan marked this pull request as ready for review October 14, 2026 20:26
Copilot AI max review requested due to automatic review settings October 14, 2026 20:26
@github-actions

github-actions Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer

@github-actions

github-actions Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft.

Design Decision Gate 🏗️

Outcome: reported_no_action

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.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Design Decision Gate 🏗️ · opus50 · 14.1 AIC · ⌖ 46.2 AIC · ◇ 30.3 AIC · ⊞ 1.9K · ◷

🏗️ ADR gate enforced by Design Decision Gate 🏗️

@github-actions

github-actions Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

✅ Ponytail Reviewer completed successfully!

Ponytail Reviewer

Outcome: reported_no_action

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.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Ponytail Reviewer · gpt56 · 5.12 AIC · ⌖ 5.18 AIC · ⊞ 14.2K · ◷

Generated by Ponytail Reviewer for #68820

@github-actions

github-actions Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Code Quality Reviewer completed the code quality review.

🔎 Code quality review by PR Code Quality Reviewer

@github-actions

github-actions Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

✅ Test Quality Sentinel completed test quality analysis.

Test Quality Sentinel

Outcome: reported_no_action

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.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Test Quality Sentinel · haiku45 · 4.16 AIC · ⌖ 6.38 AIC · ◇ 2.57 AIC · ⊞ 8.2K · ◷

🧪 Test quality analysis by Test Quality Sentinel

@github-actions github-actions Bot 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.

Overall verdict: no blocking issues found.

Reviewed the provided diff and found no actionable blocking issues in the changed lines.

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt54 · 26.5 AIC · ⌖ 5.42 AIC · ⊞ 21.4K
Comment /review to run again

Remove the Agentic Conversation wrapper for unified traces while preserving the Unified session details section and legacy log rendering.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

@github-actions github-actions Bot 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.

Skills-Based Review

Applied /diagnosing-bugs (root-cause verification) and /grill-with-docs (spec alignment). No actionable issues found - approving.

Review notes

The fix correctly replaces the <details><summary>Unified session</summary>...</details> wrapper with a top-level ### Unified session heading in unified_session_render.cjs. I traced the byte-budget accounting path (shellBytes computation, the remaining < 512 fallback, and the priority-ordered section trimming) and confirmed the removal of the preamble/tail pair was propagated consistently - no size-accounting regression.

Test coverage is strong: the new disclosure-depth-tracking test in unified_session_render.test.cjs (counting <details>/</details> balance alongside ### Conversation) directly encodes the regression this PR prevents - a nested Conversation disclosure could silently reappear. The heading-regex assertions (/^### Unified session\n\n/, .not.toContain("<summary>Unified session</summary>")) across generate_usage_artifacts.test.cjs, session_cli.test.cjs, and unified_session_render.test.cjs are specific and would not pass on a partial revert.

The spec update in unified-agent-session-specification.md accurately reflects the new behavior (top-level heading, no enclosing disclosure) and keeps the per-source statistics/timeline disclosures collapsed as before.

Note: I could not execute vitest locally (registry blocked in this sandbox with a TLS error), so correctness was verified by manual trace of the budget-accounting logic rather than running the suite; the PR description states 79 tests passed.

Positive highlights

  • Minimal, surgical diff (30+/16-) focused exactly on the stated bug
  • New test directly encodes the no-nested-disclosure invariant, not just the literal string change
  • Documentation and implementation updated together

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · sonnet50 · 123.8 AIC · ⌖ 15.5 AIC · ⊞ 11.1K
Comment /matt to run again

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.

🔵 Needs a closer look

Four Go CLI test assertions still expect the removed disclosure markup and fail when Node.js is available.

0 open findings

What changed in this PR

Makes gh-aw’s unified session conversation immediately visible in Actions step summaries.

Changes:

  • Replaces the outer disclosure with a heading.
  • Keeps overview and timeline collapsible while preserving byte accounting and safe rendering.
  • Updates JavaScript assertions and the rendering specification.
File Description
docs/​src/​content/​docs/​specs/​unified-agent-session-specification.md Documents the flat summary layout.
actions/​setup/​js/​unified_session_render.test.cjs Checks headings and disclosure structure.
actions/​setup/​js/​unified_session_render.cjs Removes the wrapper and adjusts byte accounting.
actions/​setup/​js/​session_cli.test.cjs Updates CLI heading expectations.
actions/​setup/​js/​generate_usage_artifacts.test.cjs Checks publication of a single heading.

🧠 Review effort: Max


💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@pelikhan
pelikhan merged commit 097c6c7 into main Oct 14, 2026
17 checks passed
@pelikhan
pelikhan deleted the pelikhan-agent-conversion-summary branch October 14, 2026 21:15
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.92.0

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