Skip to content

fix(client-runtime): indented backticks no longer hide workflow reply summaries - #43593

Merged
juliusmarminge merged 3 commits into
pingdotgg:mainfrom
saphid:hunter/c-917301d961
Nov 26, 2026
Merged

juliusmarminge merged 3 commits into
pingdotgg:mainfrom
saphid:hunter/c-917301d961

Conversation

@saphid

@saphid saphid commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Problem

A four-space-indented literal backtick line makes the workflow reply summary empty. Inside a fenced block, an indented backtick line can also be mistaken for its closing fence, exposing code as the summary.

Deterministic repro on origin/main (712f51f0a67676bb4f4d8e9b3738a1a290b75c7c)

From the repository root after vp i, run these synthetic replies through the exported summary helpers used by both feeds (including the server’s whole-reply trim):

cd packages/client-runtime
node --input-type=module <<'NODE'
import { workflowAgentSummary, workflowOneLine } from './src/workflows.ts';
for (const input of ['## Report\n\n    ```\n\nDeployment succeeded.', '````\ncode\n    ````\nmore\n````\nDeployment succeeded.']) {
  console.log(JSON.stringify({ input, actual: workflowOneLine(workflowAgentSummary({ said: input.trim(), result: null }).said ?? ''), expected: 'Deployment succeeded.' }));
}
NODE

Observed: "" and "more". Expected: "Deployment succeeded." for both inputs.

Change

Recognize fence markers on raw lines with at most three leading spaces, prefer prose over indented code, and trim the selected summary. Preserve indented-only errors and text as a fallback. The shared formatter covers the web feed, the desktop web client, and the mobile timeline. The existing test also checks three-space fences with CRLF and trailing whitespace.

Scope

Small fix for an obvious bug; no issue needed under CONTRIBUTING.md.

Verification

  • The added regression failed on unmodified base source: expected '' to be 'Deployment succeeded.'.
  • vp test run packages/client-runtime/src/workflows.test.ts: 29 tests passed in each of 3 consecutive runs.
  • vp run check:changed: exit 0.
  • Before/after direct Node runtime transcript and exact base assertion failure.
  • Not shown: rendered web/desktop/mobile UI, live provider replies, remote/relay/tunnel sessions. This change affects Markdown summary parsing; it changes no layout, wire contracts, provider adapters, or translated copy.

Authored by GPT-6.1 Sol (Codex); reviewed by Gemini 4 Neon (Antigravity).

@github-actions github-actions Bot added the vouch:trusted Author is trusted by repo permissions or the VOUCHED list. label Nov 26, 2026
@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Updated workflowOneLine to recognize indented fenced code blocks and prefer non-indented prose, with an indented fallback. Added tests for fence indentation, CRLF input, and nested list items.

Changes: Workflow summary selection

Layer / File(s) Summary
Select prose around fenced code
packages/client-runtime/src/workflows.ts, packages/client-runtime/src/workflows.test.ts
workflowOneLine recognizes fences, headings, and table rows with up to three leading spaces. It selects non-indented prose first, then falls back to an indented line. Tests cover indented fences, CRLF input, and nested list items.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Possibly related issues

  • pingdotgg/t3code issue 43424: The change addresses summary selection around fenced code. It does not clearly add tilde fence tracking or closing-fence handling.

Suggested reviewers: juliusmarminge, aymankhan9

Merge Risk: Minimal · up to ed551

This fixes workflow reply summaries that were hidden or showed code because of indented backticks. It affects only Markdown summary parsing, is easy to revert, and no merge-blocking risk is evident.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title describes the main change: indented backticks no longer hide workflow reply summaries in the client-runtime package. The raw summary and objectives confirm that workflowOneLine now recognize…
Description check Passed The description follows the template's main sections: Problem, Change, Scope, and Verification. The Problem section gives a clear reproduction with expected and observed results. The Change section ex…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title describes the main change: indented backticks no longer hide workflow reply summaries in the client-runtime package. The raw summary and objectives confirm that workflowOneLine now recognizes fence markers with at most three leading spaces and prefers prose over indented code, which matches the title. The title is a single conventional-commit sentence, though at 79 characters it is slightly long.

Full details: Description check

Explanation

The description follows the template's main sections: Problem, Change, Scope, and Verification. The Problem section gives a clear reproduction with expected and observed results. The Change section explains the fix and the fallback behavior. Scope states it is a small bug fix and why no issue is needed. Verification lists the regression test, the test runs, the check command, and a gist transcript, and it states what was not checked. The description does not include the template's optional agent model line in the required form, but it names the model and harness at the end, so the template requirement is met.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 0b8a69e and ed55126.

Files selected for processing: 1

  • packages/client-runtime/src/workflows.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.

@github-actions github-actions Bot added the size:S 10-29 changed lines (additions + deletions). label Nov 26, 2026
@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Nov 26, 2026
@juliusmarminge

Copy link
Copy Markdown
Member

Evidence

Replayed both exact reported replies through a real deploy-report workflow on fresh state, opened the completed run, and selected each step. Chromium on Linux, 1440×900, light theme on both sides. Base shows a blank first summary and “more” for the second; head shows “Deployment succeeded.” for both. Indented-only fallback remains visible.

Case Before — 694c1be67f After — ed55126edb
Heading followed by indented backticks Before: missing heading reply summary After: heading reply summary is Deployment succeeded.
Indented backticks inside fence Before: fence reply summary incorrectly reads more After: fence reply summary is Deployment succeeded.

Scenario source · Before recording · After recording

scenarios:prove exited 0: fails on base, passes on head.

@juliusmarminge juliusmarminge added takeover:ready Takeover done; auto-lands when gates pass and removed takeover:in-progress A takeover lead is working on this PR labels Nov 26, 2026
@juliusmarminge
juliusmarminge merged commit 52d8029 into pingdotgg:main Nov 26, 2026
60 checks passed
@juliusmarminge juliusmarminge removed the takeover:ready Takeover done; auto-lands when gates pass label Nov 26, 2026
github-actions Bot pushed a commit to Ryoku-dev/hyakki that referenced this pull request Nov 26, 2026
… summaries (pingdotgg#43593)

Co-authored-by: SAPHID <saphid@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
(cherry picked from commit 52d8029)
github-actions Bot pushed a commit to Ryoku-dev/hyakki that referenced this pull request Nov 26, 2026
… summaries (pingdotgg#43593)

Co-authored-by: SAPHID <saphid@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
(cherry picked from commit 52d8029)
github-actions Bot pushed a commit to Ryoku-dev/hyakki that referenced this pull request Nov 26, 2026
… summaries (pingdotgg#43593)

Co-authored-by: SAPHID <saphid@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
(cherry picked from commit 52d8029)
github-actions Bot pushed a commit to Ryoku-dev/hyakki that referenced this pull request Nov 26, 2026
… summaries (pingdotgg#43593)

Co-authored-by: SAPHID <saphid@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
(cherry picked from commit 52d8029)
github-actions Bot pushed a commit to Ryoku-dev/hyakki that referenced this pull request Nov 26, 2026
… summaries (pingdotgg#43593)

Co-authored-by: SAPHID <saphid@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
(cherry picked from commit 52d8029)
github-actions Bot pushed a commit to Ryoku-dev/hyakki that referenced this pull request Nov 26, 2026
… summaries (pingdotgg#43593)

Co-authored-by: SAPHID <saphid@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
(cherry picked from commit 52d8029)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S 10-29 changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants