Skip to content

Preserve file targets by refusing unsafe process attachment - #69

Merged
ShadowNineX merged 1 commit into
mainfrom
codex/refuse-file-target-transition
Oct 19, 2026
Merged

ShadowNineX merged 1 commit into
mainfrom
codex/refuse-file-target-transition

Conversation

@ShadowNineX

Copy link
Copy Markdown
Contributor

Attaching a process after Cheat Engine opens a file can report success while leaving its memory backend unusable. Client now checks for a file target inside the existing selection dispatch and refuses before calling the selection port. The failure is Unsupported with NotStarted; it preserves the file and invalidates stale Client target leases. Callers can select a process in Cheat Engine or restart the host before attaching again.

Only a proven file-target preflight gets that mapping. Ordinary attach behavior remains intact, and a file-target result observed after selection still reports an unknown host effect. The implementation uses the existing published CheatEngine.SDK 2.0.0 surface without changing dependency pins or lock files.

Validation: the two new refusal tests fail against the old implementation, then all 65 focused tests pass with the fix. The Release solution build passed with zero warnings/errors; the full Core suite passed all 1,657 tests, and the Abstractions, DI, Fluent, Hosting, LivePlugin.Qualification, Repository and SourceGenerators suites passed. Local child-process packaging checks are blocked by this PC lacking the repository's exact .NET 10.0.401 SDK; CI must pass those checks before merge. No live Cheat Engine session was run for this Client patch.

@ShadowNineX
ShadowNineX requested a review from AriusII as a code owner October 19, 2026 18:29
@coderabbitai

coderabbitai Bot commented Oct 19, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Repository: CheatEngineNet/CheatEngine.Client/.coderabbit.yaml
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 1c8df839-3aab-4cb8-a63f-40a7883a1847
  • 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

Comment @coderabbitai help to get the list of available commands.

@sonarqubecloud

Copy link
Copy Markdown

@ShadowNineX
ShadowNineX merged commit 5c0d305 into main Oct 19, 2026
14 checks passed
@ShadowNineX
ShadowNineX deleted the codex/refuse-file-target-transition branch October 19, 2026 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant