Skip to content

test(cli): cover literal Markdown heading output - #7779

Closed
ShuaixinHuang wants to merge 1 commit into
morluto:mainfrom
ShuaixinHuang:codex/resubmit-heading-regressions
Closed

ShuaixinHuang wants to merge 1 commit into
morluto:mainfrom
ShuaixinHuang:codex/resubmit-heading-regressions

Conversation

@ShuaixinHuang

Copy link
Copy Markdown
Contributor

Problem and result

Resubmits the remaining regression from #7062 at the author's request, on pinned main 18a8e71c. The original production correction is already upstream; this PR contains one test file only, rather than repeating that fix or carrying historical shared CI patches.

The registered CLI result-output path must retain source keys literally in Markdown headings, including HTML-like text, Markdown links/emphasis, backslashes, embedded line breaks and nested paths. The frozen input and JSON output remain unchanged. This existing regression is carried over without new runtime behavior.

Verification

Windows x64, Node 24.22.1 / npm 11.16.0, fresh locked dependencies and matching verified Windows native 6.8.0 artifact:

  • The complete markdownNestedFacts.test.ts file passed 3/3 through npm run test:focused, including the compiled archive-inventory Markdown/JSON case.
  • Normal pre-commit lint/format passed. Normal pre-push typecheck/lint passed 2/2, 36.645 seconds.
  • npm run check stopped at ordinary Knip's unchanged HexRecordRegionMetadata unused export (4/6 tasks completed). Restoring the changed test to exact clean 18a8e71c reproduces that sole Knip error. fix: remove unused hex record metadata type #7718 addresses this independent upstream issue; this aggregate check is not green and no unrelated cleanup is imported.
  • git diff --check passed. This is deterministic CLI formatting coverage, with no external provider execution claim.

The replacement is one file, 65 additions / 1 deletion. Older shared fixture repairs are already upstream or outside this test and are omitted. Hosted CI must validate this new head independently; previous #7062 results are historical.

Author readiness

Human owner: @ShuaixinHuang

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

The human owner explicitly confirmed review and responsibility for this PR and requested formal maintainer review in this session on 2026-10-25.

The existing initial human review declaration is retained from #7062 for this unchanged, narrowed regression and upstream refresh.

Before merge

  • Same contribution, one focused regression; no new capability, schema, dependency or generated artifact.
  • Original PR and executed validation limits linked.
  • Latest-head hosted checks complete.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-28T11:30:10.860967Z
We couldn’t complete this review. Comment @codex review to try again.
1a1dc1d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@greptile-apps

greptile-apps Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] This test-only PR appears safe to merge.

Summary

Adds one regression test for literal Markdown headings through registered CLI result output.

  • CLI tests now check literal keys in Markdown headings.

Reviews (1) · Last reviewed commit: "test(cli): cover literal Markdown headin..." · Reviewed by Greptile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: cli CLI adapter and one-shot commands

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants