Skip to content

Commit b7334e3

Browse files
committed
tests: push_summary regression shapes; bump maya (paragraph-interruption fix)
md_shape_sweep gains push_summary_report — the real-world reply shape (paragraph + 'Summary:' lead-in + bold-lead-in bullets with multibyte →/— and inline code) that reproduced both reported artefacts: the leading paragraph vanishing during streaming (burst in later) and the composer bouncing once per bullet. md_shrink_debug gains push_summary / bold_bullet / para_then_list minimal repros. Fix itself is in maya 15bd1ef (paragraph-interruption block boundaries + nested half-marker hide).
1 parent 2528c70 commit b7334e3

3 files changed

Lines changed: 39 additions & 1 deletion

File tree

tests/md_shape_sweep.cpp

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,26 @@ static std::vector<Shape> corpus() {
6969
s.push_back({"table_alignment",
7070
"| L | C | R |\n|:--|:-:|--:|\n| a | b | c |\n\nafter\n"});
7171
s.push_back({"strikethrough", "~~struck~~ text and more\n\nafter\n"});
72+
// Real-world regression (user report): paragraph with inline code, a
73+
// "Summary:" lead-in, bold-lead-in bullets carrying multibyte chars
74+
// (→, —) and inline code, then a trailing paragraph + question. The
75+
// first paragraph stayed hidden during streaming and burst in later;
76+
// the composer bounced while the list streamed.
77+
s.push_back({"push_summary_report",
78+
"Master pushed cleanly (`0b34b32..2528c70`).\n"
79+
"\n"
80+
"Summary:\n"
81+
"- **Pulled**: rebased local master onto `origin/master`, picking "
82+
"up the remote's `0b34b32` (static-PIE build) commit.\n"
83+
"- **Pushed**: your 2 commits (checkpoints + always-allow grants, "
84+
"now `2539fb0`/`2528c70`) \xe2\x86\x92 `origin/master`. Fast-forward, no "
85+
"force needed.\n"
86+
"- **Review work** stays local-only on the `review` branch + "
87+
"`review-feature` tag \xe2\x80\x94 **not** on master, not pushed.\n"
88+
"\n"
89+
"You asked to push \"Master\" specifically, so I left the `review` "
90+
"branch/tag local. Want me to push those to the remote too (as a "
91+
"`review` branch you can pick up later), or keep them local?\n"});
7292
return s;
7393
}
7494

tests/md_shrink_debug.cpp

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,24 @@ int main(int argc, char** argv) {
4141
body = "<div>\nraw html body\n</div>\n\nafter\n";
4242
else if (!std::strcmp(which, "quote_code"))
4343
body = "> quoted\n> ```\n> code in quote\n> ```\n\nafter\n";
44+
else if (!std::strcmp(which, "push_summary"))
45+
body =
46+
"Master pushed cleanly (`0b34b32..2528c70`).\n"
47+
"\n"
48+
"Summary:\n"
49+
"- **Pulled**: rebased local master onto `origin/master`, picking "
50+
"up the remote's `0b34b32` (static-PIE build) commit.\n"
51+
"- **Pushed**: your 2 commits (checkpoints + always-allow grants, "
52+
"now `2539fb0`/`2528c70`) \xe2\x86\x92 `origin/master`. Fast-forward, no "
53+
"force needed.\n"
54+
"- **Review work** stays local-only on the `review` branch + "
55+
"`review-feature` tag \xe2\x80\x94 **not** on master, not pushed.\n"
56+
"\n"
57+
"You asked to push \"Master\" specifically.\n";
58+
else if (!std::strcmp(which, "bold_bullet"))
59+
body = "- **alpha**: one\n- **beta**: two\n\nafter\n";
60+
else if (!std::strcmp(which, "para_then_list"))
61+
body = "Summary:\n- item one\n- item two\n\nafter\n";
4462

4563
StreamingMarkdown md;
4664
md.set_reveal_fx(true);

0 commit comments

Comments
 (0)