Skip to content

test(desktop): follow the stop message through described() after #8560 (dev-red) - #8565

Merged
lidge-jun merged 1 commit into
devfrom
fix/desktop-contract-described
Nov 11, 2026
Merged

lidge-jun merged 1 commit into
devfrom
fix/desktop-contract-described

Conversation

@lidge-jun

Copy link
Copy Markdown
Owner

Summary

Fixes a dev failure introduced by #8560 (#7771 slice 3, Desktop). tests/clients/desktop-cli-contracts.test.ts reads desktop/src-tauri/src/runtime_stop.rs as text and required the literal summary.message. #8560 now routes the CLI's message through StopSummary::described(), which starts with that message (self.message) and only appends the additive stop-reason notes. The contract still holds: Desktop carries the CLI's own words and never re-derives the outcome. The check now follows the new path: summary.described() is used, and described() is built from self.message, either with the notes appended or alone.

Seen in PR CI for #8564 (test 2/5, run 43056625902): the full shards run there, and test changed on #8560 could not see a test that reads Rust source as data.

Verification

  • Fail-first: on current dev the file fails (8 pass, 1 fail: "the outcomes the shell can be handed are the outcomes the CLI can emit"); with this change it passes (9 pass).
  • Every test file that reads the Desktop Rust sources (rg -l 'src-tauri/src|runtime_stop|exit.rs|startup.rs' tests, 17 files): 306 pass, 0 fail.

NOT RUN: full bun run test (a test-only change to one source-oracle assertion).

Checklist

  • Scope stays focused and avoids unrelated cleanup.
  • Docs or release notes were updated when needed.
  • Security-sensitive changes were reviewed for secrets, auth, and unsafe defaults.

@lidge-jun
lidge-jun requested a review from Ingwannu as a code owner November 11, 2026 16:23
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-11T16:24:57.879642Z d27d910 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.

@coderabbitai

coderabbitai Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@lidge-jun

Copy link
Copy Markdown
Owner Author

Maintainer judgment (dev-red: desktop contract test after #8560)

@lidge-jun
lidge-jun merged commit ccf2c3f into dev Nov 11, 2026
20 of 21 checks passed
@lidge-jun
lidge-jun deleted the fix/desktop-contract-described branch November 11, 2026 16:25
@github-actions

Copy link
Copy Markdown
Contributor

✅ Deterministic PR hygiene checks passed.

@github-actions github-actions Bot added the chore Maintenance, CI, tests, refactors, or build changes (not a user-facing bug or feature). label Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Maintenance, CI, tests, refactors, or build changes (not a user-facing bug or feature).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant