惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

SecWiki News
SecWiki News
量子位
The Cloudflare Blog
美团技术团队
T
The Exploit Database - CXSecurity.com
博客园 - 【当耐特】
Spread Privacy
Spread Privacy
P
Proofpoint News Feed
C
CXSECURITY Database RSS Feed - CXSecurity.com
博客园 - 三生石上(FineUI控件)
T
Tor Project blog
博客园 - 司徒正美
宝玉的分享
宝玉的分享
T
Threatpost
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
S
Secure Thoughts
T
Threat Research - Cisco Blogs
Hacker News: Ask HN
Hacker News: Ask HN
Jina AI
Jina AI
博客园 - 聂微东
A
Arctic Wolf
I
Intezer
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Know Your Adversary
Know Your Adversary
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
爱范儿
爱范儿
Hugging Face - Blog
Hugging Face - Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
小众软件
小众软件
T
Tailwind CSS Blog
The Hacker News
The Hacker News
L
LINUX DO - 最新话题
Hacker News - Newest:
Hacker News - Newest: "LLM"
WordPress大学
WordPress大学
S
SegmentFault 最新的问题
TaoSecurity Blog
TaoSecurity Blog
Project Zero
Project Zero
博客园 - 叶小钗
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Cloudbric
Cloudbric
雷峰网
雷峰网
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
大猫的无限游戏
大猫的无限游戏
D
Darknet – Hacking Tools, Hacker News & Cyber Security
T
Troy Hunt's Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
V2EX - 技术
V2EX - 技术
The GitHub Blog
The GitHub Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
P
Privacy & Cybersecurity Law Blog

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4 test: trim doctor command hotspots · openclaw/openclaw@c66f16a test: isolate agent auth and spawn hotspots · openclaw/openclaw@9285935 test: stabilize MCP startup disposal race · openclaw/openclaw@dd9d2eb test: merge browser contract server suites · openclaw/openclaw@5817a76 test: narrow ollama provider discovery setup · openclaw/openclaw@a0d9598 build: declare qa-lab aimock runtime dependency · openclaw/openclaw@24431e5 test: speed up safe-bins exec harness · openclaw/openclaw@ee856ab test: preserve tool helpers in embedded runner mocks · openclaw/openclaw@acd86a0 refactor: move memory embeddings into provider plugins · openclaw/openclaw@77e6e4c test: reuse system-run temp fixtures · openclaw/openclaw@7e9ff0f test: trim hotspot wait overhead · openclaw/openclaw@12a59b0 Check: avoid duplicate boundary prep · openclaw/openclaw@baf11b8 test: reduce hotspot fixture overhead · openclaw/openclaw@3a59edd feat(ui): overhaul settings and slash command UX (#67819) thanks @Bun… · openclaw/openclaw@2cfb660 QA Matrix: exit cleanly on failure · openclaw/openclaw@42805d2 QA Matrix: isolate scenario coverage · openclaw/openclaw@7e659e1 Matrix: refresh crypto bootstrap state · openclaw/openclaw@94081d8 QA Lab: add provider registry · openclaw/openclaw@bb7e982 Matrix: add plugin changelog · openclaw/openclaw@4acab55 test: trim more hotspot overhead · openclaw/openclaw@f485311 test: trim remaining hotspot tests · openclaw/openclaw@6ba8626 test: narrow hotspot mocks · openclaw/openclaw@dbc8179 test: isolate gemini embedding request helpers · openclaw/openclaw@cd330f5 test: trim memory and mcp hotspots · openclaw/openclaw@fd48dfa test: slim provider registry mocks · openclaw/openclaw@2e08c77 test: harden Parallels update smoke · openclaw/openclaw@1a98090 feat: default Anthropic to Opus 4.7 · openclaw/openclaw@628b454 fix: harden node-host shell payload mutability checks · openclaw/openclaw@75c551e fix: land node-host approval binding for native binaries (#66731) (th… · openclaw/openclaw@29919bb CI: add daily schedule to CodeQL workflow (#67645) · openclaw/openclaw@69d25f5 fix(gateway): capture config hash after plugin auto-enable to prevent… · openclaw/openclaw@8c11210 fix: repair sanitized replay tool results before send (#67620) (thank… · openclaw/openclaw@c3c7a99 fix: restrict HTML timeout short-circuit to transient statuses · openclaw/openclaw@de129a6 fix: keep TUI watchdog bound to active run (#67401) (thanks @xantorres) · openclaw/openclaw@3525273 Gateway/skills: dedupe skills prefix-match + drop dead fallback on log · openclaw/openclaw@d7f489f Extensions/lmstudio: back off inference preload after consecutive fai… · openclaw/openclaw@b555214 TUI/streaming: add watchdog that resets the activity indicator after … · openclaw/openclaw@f44ab20 Agents/tool-loop: enable unknown-tool stream guard by default · openclaw/openclaw@36ed367 Gateway/skills: invalidate session skills snapshot on config write · openclaw/openclaw@b23d59a fix: classify HTML provider error pages correctly (#67642) (thanks @s… · openclaw/openclaw@e588e90 fix(skills): remove unused model-usage import (#67641) · openclaw/openclaw@55f05df docs(changelog): credit codex fix superseded PRs · openclaw/openclaw@e485f24 fix(openai-codex): normalize stale transport metadata in resolution a… · openclaw/openclaw@90801ba CI: pin Docker-related GitHub Actions (#67632) · openclaw/openclaw@f697b01 Android: modernize WebView and discovery API usage (#67627) · openclaw/openclaw@44a6e50 fix(deps): bump hono to 4.12.14 and @hono/node-server to 1.19.14 (GHS… · openclaw/openclaw@fbccc18 fix(deps): bump dompurify to 3.4.0 (#67614) · openclaw/openclaw@2c2dc00 CI: add explicit permissions to all workflow jobs (fixes code-scannin… · openclaw/openclaw@01b7516 fix: register bundled TTS providers and route overrides correctly (#6… · openclaw/openclaw@6ea3cdd fix: align host tilde paths with OS home (#62804) (thanks @stainlu) · openclaw/openclaw@ecfaf64 fix: flush creds queue before reconnect socket open (#67464) (thanks … · openclaw/openclaw@405c63f fix: strip standalone <function> tool call tags from visible text (#6… · openclaw/openclaw@78df859 fix(agents): preserve cli session metadata before transcript persist … · openclaw/openclaw@898fd04 docs(changelog): move cli transcript entry · openclaw/openclaw@c1817c6 fix(agents): normalize cli transcript api field · openclaw/openclaw@3a3fae0 docs(changelog): note cli transcript persistence · openclaw/openclaw@6c343f1 fix(agents): persist cli transcript turns · openclaw/openclaw@b8ef507 fix(msteams): harden security-sensitive flows (#65841) · openclaw/openclaw@c56b56e [Dashboard] Fix exec approval modal overflow for long command content… · openclaw/openclaw@053c5b0 Docs: remove QA changelog entry · openclaw/openclaw@7fd5771 QA: fix private runtime source loading (#67428) · openclaw/openclaw@d5933af docs(gateway): correct protocol.md schema path, hello-ok example, aut… · openclaw/openclaw@489404d CI: pin Node 22 runners to 22.18.0 · openclaw/openclaw@4ffa621 models.authStatus: normalize provider ids + tighten env-backed escape… · openclaw/openclaw@f2fdb9d Update CHANGELOG.md · openclaw/openclaw@7694a92 test(parallels): clean up npm update guard jobs · openclaw/openclaw@045ea7b Plugins: prefer scanDir override paths · openclaw/openclaw@b2974da fix(dreaming): default storage.mode to "separate" so phase blocks sto… · openclaw/openclaw@8c392f0 fix(memory-core): skip dreaming transcript ingestion via session stor… · openclaw/openclaw@a1b01f0 fix: dedupe replayed exec.finished node events (#67281) · openclaw/openclaw@5dcf526
feat: add reusable Mantis evidence publishing · openclaw/openclaw@f3d5314
steipete · 2026-05-05 · via Recent Commits to openclaw:main

@@ -474,6 +474,40 @@ jobs:

474474

echo "- Candidate desktop video: \`candidate/discord-status-reactions-tool-only-desktop.mp4\`"

475475

} > "$root/mantis-report.md"

476476477+

jq -n \

478+

--arg baseline_status "$baseline_status" \

479+

--arg candidate_status "$candidate_status" \

480+

--arg baseline_sha "${{ needs.validate_refs.outputs.baseline_revision }}" \

481+

--arg candidate_sha "${{ needs.validate_refs.outputs.candidate_revision }}" \

482+

'{

483+

schemaVersion: 1,

484+

id: "discord-status-reactions",

485+

title: "Mantis Discord Status Reactions QA",

486+

summary: "Mantis reran Discord status reactions against the known queued-only baseline and the candidate ref. The baseline reproduced the bug, while the candidate showed the expected queued -> thinking -> done reaction sequence.",

487+

scenario: "discord-status-reactions-tool-only",

488+

comparison: {

489+

baseline: { sha: $baseline_sha, expected: "queued-only", status: $baseline_status, reproduced: ($baseline_status == "fail") },

490+

candidate: { sha: $candidate_sha, expected: "queued -> thinking -> done", status: $candidate_status, fixed: ($candidate_status == "pass") },

491+

pass: (($baseline_status == "fail") and ($candidate_status == "pass"))

492+

},

493+

artifacts: [

494+

{ kind: "timeline", lane: "baseline", label: "Baseline queued-only", path: "baseline/discord-status-reactions-tool-only-timeline.png", targetPath: "baseline.png", alt: "Baseline Discord status reaction timeline", width: 420 },

495+

{ kind: "timeline", lane: "candidate", label: "Candidate queued -> thinking -> done", path: "candidate/discord-status-reactions-tool-only-timeline.png", targetPath: "candidate.png", alt: "Candidate Discord status reaction timeline", width: 420 },

496+

{ kind: "desktopScreenshot", lane: "baseline", label: "Baseline desktop/VNC browser", path: "baseline/discord-status-reactions-tool-only-desktop.png", targetPath: "baseline-desktop.png", alt: "Baseline Mantis desktop browser screenshot", width: 420 },

497+

{ kind: "desktopScreenshot", lane: "candidate", label: "Candidate desktop/VNC browser", path: "candidate/discord-status-reactions-tool-only-desktop.png", targetPath: "candidate-desktop.png", alt: "Candidate Mantis desktop browser screenshot", width: 420 },

498+

{ kind: "motionPreview", lane: "baseline", label: "Baseline motion preview", path: "baseline/discord-status-reactions-tool-only-desktop-preview.gif", targetPath: "baseline-desktop-preview.gif", alt: "Animated baseline desktop preview", width: 420, required: false },

499+

{ kind: "motionPreview", lane: "candidate", label: "Candidate motion preview", path: "candidate/discord-status-reactions-tool-only-desktop-preview.gif", targetPath: "candidate-desktop-preview.gif", alt: "Animated candidate desktop preview", width: 420, required: false },

500+

{ kind: "motionClip", lane: "baseline", label: "Baseline change MP4", path: "baseline/discord-status-reactions-tool-only-desktop-change.mp4", targetPath: "baseline-desktop-change.mp4", required: false },

501+

{ kind: "motionClip", lane: "candidate", label: "Candidate change MP4", path: "candidate/discord-status-reactions-tool-only-desktop-change.mp4", targetPath: "candidate-desktop-change.mp4", required: false },

502+

{ kind: "fullVideo", lane: "baseline", label: "Baseline desktop MP4", path: "baseline/discord-status-reactions-tool-only-desktop.mp4", targetPath: "baseline-desktop.mp4" },

503+

{ kind: "fullVideo", lane: "candidate", label: "Candidate desktop MP4", path: "candidate/discord-status-reactions-tool-only-desktop.mp4", targetPath: "candidate-desktop.mp4" },

504+

{ kind: "metadata", lane: "baseline", label: "Baseline preview metadata", path: "baseline/discord-status-reactions-tool-only-desktop-preview.json", targetPath: "baseline-desktop-preview.json", required: false },

505+

{ kind: "metadata", lane: "candidate", label: "Candidate preview metadata", path: "candidate/discord-status-reactions-tool-only-desktop-preview.json", targetPath: "candidate-desktop-preview.json", required: false },

506+

{ kind: "metadata", lane: "run", label: "Comparison JSON", path: "comparison.json", targetPath: "comparison.json" },

507+

{ kind: "report", lane: "run", label: "Mantis report", path: "mantis-report.md", targetPath: "mantis-report.md" }

508+

]

509+

}' > "$root/mantis-evidence.json"

510+477511

cat "$root/mantis-report.md" >> "$GITHUB_STEP_SUMMARY"

478512479513

if [[ "$baseline_status" != "fail" ]]; then

@@ -514,155 +548,17 @@ jobs:

514548

GH_TOKEN: ${{ steps.mantis_app_token.outputs.token }}

515549

TARGET_PR: ${{ needs.resolve_request.outputs.pr_number }}

516550

ARTIFACT_URL: ${{ steps.upload_artifact.outputs.artifact-url }}

517-

BASELINE_SHA: ${{ needs.validate_refs.outputs.baseline_revision }}

518-

CANDIDATE_SHA: ${{ needs.validate_refs.outputs.candidate_revision }}

519551

REQUEST_SOURCE: ${{ needs.resolve_request.outputs.request_source }}

520552

shell: bash

521553

run: |

522554

set -euo pipefail

523555524-

if [[ ! "$TARGET_PR" =~ ^[0-9]+$ ]]; then

525-

echo "pr_number must be numeric, got '${TARGET_PR}'." >&2

526-

exit 1

527-

fi

528-529556

root=".artifacts/qa-e2e/mantis/discord-status-reactions"

530-

for required in \

531-

"$root/comparison.json" \

532-

"$root/baseline/discord-status-reactions-tool-only-timeline.png" \

533-

"$root/candidate/discord-status-reactions-tool-only-timeline.png" \

534-

"$root/baseline/discord-status-reactions-tool-only-desktop.png" \

535-

"$root/candidate/discord-status-reactions-tool-only-desktop.png" \

536-

"$root/baseline/discord-status-reactions-tool-only-desktop.mp4" \

537-

"$root/candidate/discord-status-reactions-tool-only-desktop.mp4"

538-

do

539-

if [[ ! -f "$required" ]]; then

540-

echo "Missing required QA evidence file: $required" >&2

541-

exit 1

542-

fi

543-

done

544-545-

gh api "repos/${GITHUB_REPOSITORY}/pulls/${TARGET_PR}" --jq '.number' >/dev/null

546-547-

artifact_root="mantis/discord-status-reactions/pr-${TARGET_PR}/run-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"

548-

artifacts_worktree="$(mktemp -d)"

549-

git init --quiet "$artifacts_worktree"

550-

git -C "$artifacts_worktree" config user.name "github-actions[bot]"

551-

git -C "$artifacts_worktree" config user.email "41898282+github-actions[bot]@users.noreply.github.com"

552-

git -C "$artifacts_worktree" remote add origin "https://x-access-token:${GH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"

553-554-

if git -C "$artifacts_worktree" fetch --quiet origin qa-artifacts; then

555-

git -C "$artifacts_worktree" checkout --quiet -B qa-artifacts FETCH_HEAD

556-

else

557-

git -C "$artifacts_worktree" checkout --quiet --orphan qa-artifacts

558-

fi

559-560-

mkdir -p "$artifacts_worktree/$artifact_root"

561-

cp "$root/baseline/discord-status-reactions-tool-only-timeline.png" "$artifacts_worktree/$artifact_root/baseline.png"

562-

cp "$root/candidate/discord-status-reactions-tool-only-timeline.png" "$artifacts_worktree/$artifact_root/candidate.png"

563-

cp "$root/baseline/discord-status-reactions-tool-only-desktop.png" "$artifacts_worktree/$artifact_root/baseline-desktop.png"

564-

cp "$root/candidate/discord-status-reactions-tool-only-desktop.png" "$artifacts_worktree/$artifact_root/candidate-desktop.png"

565-

has_desktop_previews="false"

566-

if [[ -f "$root/baseline/discord-status-reactions-tool-only-desktop-preview.gif" && -f "$root/candidate/discord-status-reactions-tool-only-desktop-preview.gif" ]]; then

567-

cp "$root/baseline/discord-status-reactions-tool-only-desktop-preview.gif" "$artifacts_worktree/$artifact_root/baseline-desktop-preview.gif"

568-

cp "$root/candidate/discord-status-reactions-tool-only-desktop-preview.gif" "$artifacts_worktree/$artifact_root/candidate-desktop-preview.gif"

569-

cp "$root/baseline/discord-status-reactions-tool-only-desktop-preview.json" "$artifacts_worktree/$artifact_root/baseline-desktop-preview.json"

570-

cp "$root/candidate/discord-status-reactions-tool-only-desktop-preview.json" "$artifacts_worktree/$artifact_root/candidate-desktop-preview.json"

571-

has_desktop_previews="true"

572-

fi

573-

has_change_clips="false"

574-

if [[ -f "$root/baseline/discord-status-reactions-tool-only-desktop-change.mp4" && -f "$root/candidate/discord-status-reactions-tool-only-desktop-change.mp4" ]]; then

575-

cp "$root/baseline/discord-status-reactions-tool-only-desktop-change.mp4" "$artifacts_worktree/$artifact_root/baseline-desktop-change.mp4"

576-

cp "$root/candidate/discord-status-reactions-tool-only-desktop-change.mp4" "$artifacts_worktree/$artifact_root/candidate-desktop-change.mp4"

577-

has_change_clips="true"

578-

fi

579-

cp "$root/baseline/discord-status-reactions-tool-only-desktop.mp4" "$artifacts_worktree/$artifact_root/baseline-desktop.mp4"

580-

cp "$root/candidate/discord-status-reactions-tool-only-desktop.mp4" "$artifacts_worktree/$artifact_root/candidate-desktop.mp4"

581-

cp "$root/comparison.json" "$artifacts_worktree/$artifact_root/comparison.json"

582-

cp "$root/mantis-report.md" "$artifacts_worktree/$artifact_root/mantis-report.md"

583-584-

git -C "$artifacts_worktree" add "$artifact_root"

585-

if git -C "$artifacts_worktree" diff --cached --quiet; then

586-

echo "No QA screenshot/video artifact changes to publish."

587-

else

588-

git -C "$artifacts_worktree" commit --quiet -m "qa: publish Mantis Discord evidence for PR ${TARGET_PR}"

589-

git -C "$artifacts_worktree" push --quiet origin HEAD:qa-artifacts

590-

fi

591-592-

encoded_artifact_root="${artifact_root// /%20}"

593-

raw_base="https://raw.githubusercontent.com/${GITHUB_REPOSITORY}/qa-artifacts/${encoded_artifact_root}"

594-

baseline_status="$(jq -r '.baseline.status' "$root/comparison.json")"

595-

candidate_status="$(jq -r '.candidate.status' "$root/comparison.json")"

596-

pass="$(jq -r '.pass' "$root/comparison.json")"

597-

preview_section=""

598-

if [[ "$has_desktop_previews" == "true" ]]; then

599-

preview_section="$(cat <<EOF

600-601-

| Baseline motion preview | Candidate motion preview |

602-

| --- | --- |

603-

| <img src="${raw_base}/baseline-desktop-preview.gif" width="420" alt="Animated baseline desktop preview"> | <img src="${raw_base}/candidate-desktop-preview.gif" width="420" alt="Animated candidate desktop preview"> |

604-

EOF

605-

)"

606-

fi

607-

change_clip_section=""

608-

if [[ "$has_change_clips" == "true" ]]; then

609-

change_clip_section="$(cat <<EOF

610-611-

Motion-trimmed clips:

612-

- [Baseline change MP4](${raw_base}/baseline-desktop-change.mp4)

613-

- [Candidate change MP4](${raw_base}/candidate-desktop-change.mp4)

614-

EOF

615-

)"

616-

fi

617-

comment_file="$(mktemp)"

618-

cat > "$comment_file" <<EOF

619-

<!-- mantis-discord-status-reactions -->

620-

## Mantis Discord Status Reactions QA

621-622-

Summary: Mantis reran Discord status reactions against the known queued-only baseline and the candidate ref. The baseline reproduced the bug, while the candidate showed the expected queued -> thinking -> done reaction sequence.

623-624-

- Scenario: \`discord-status-reactions-tool-only\`

625-

- Trigger: \`${REQUEST_SOURCE}\`

626-

- Run: https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}

627-

- Artifact: ${ARTIFACT_URL}

628-

- Baseline: \`${baseline_status}\` at \`${BASELINE_SHA}\`

629-

- Candidate: \`${candidate_status}\` at \`${CANDIDATE_SHA}\`

630-

- Overall: \`${pass}\`

631-632-

| Baseline queued-only | Candidate queued -> thinking -> done |

633-

| --- | --- |

634-

| <img src="${raw_base}/baseline.png" width="420" alt="Baseline Discord status reaction timeline"> | <img src="${raw_base}/candidate.png" width="420" alt="Candidate Discord status reaction timeline"> |

635-636-

| Baseline desktop/VNC browser | Candidate desktop/VNC browser |

637-

| --- | --- |

638-

| <img src="${raw_base}/baseline-desktop.png" width="420" alt="Baseline Mantis desktop browser screenshot"> | <img src="${raw_base}/candidate-desktop.png" width="420" alt="Candidate Mantis desktop browser screenshot"> |

639-

${preview_section}

640-

${change_clip_section}

641-642-

Full videos:

643-

- [Baseline desktop MP4](${raw_base}/baseline-desktop.mp4)

644-

- [Candidate desktop MP4](${raw_base}/candidate-desktop.mp4)

645-646-

Raw QA files: https://github.com/${GITHUB_REPOSITORY}/tree/qa-artifacts/${artifact_root}

647-

EOF

648-649-

comment_id="$(

650-

gh api --paginate "repos/${GITHUB_REPOSITORY}/issues/${TARGET_PR}/comments" \

651-

--jq '.[] | select(.body | contains("<!-- mantis-discord-status-reactions -->")) | .id' \

652-

| tail -n 1

653-

)"

654-655-

if [[ -n "$comment_id" ]]; then

656-

comment_payload="$(mktemp)"

657-

jq -n --rawfile body "$comment_file" '{ body: $body }' > "$comment_payload"

658-

if gh api --method PATCH "repos/${GITHUB_REPOSITORY}/issues/comments/${comment_id}" --input "$comment_payload" >/dev/null; then

659-

echo "Updated Mantis QA evidence comment on PR #${TARGET_PR}."

660-

else

661-

echo "::warning::Could not update existing Mantis QA evidence comment ${comment_id}; creating a new one."

662-

gh pr comment "$TARGET_PR" --body-file "$comment_file"

663-

echo "Created Mantis QA evidence comment on PR #${TARGET_PR}."

664-

fi

665-

else

666-

gh pr comment "$TARGET_PR" --body-file "$comment_file"

667-

echo "Created Mantis QA evidence comment on PR #${TARGET_PR}."

668-

fi

557+

node scripts/mantis/publish-pr-evidence.mjs \

558+

--manifest "$root/mantis-evidence.json" \

559+

--target-pr "$TARGET_PR" \

560+

--artifact-root "mantis/discord-status-reactions/pr-${TARGET_PR}/run-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}" \

561+

--marker "<!-- mantis-discord-status-reactions -->" \

562+

--artifact-url "$ARTIFACT_URL" \

563+

--run-url "https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}" \

564+

--request-source "$REQUEST_SOURCE"