Skip to content

feat: create a dump file for the selected process - #35

Merged
JamesLinYJ merged 2 commits into
mainfrom
cursor/create-dump-file-ddb0
Oct 20, 2026
Merged

JamesLinYJ merged 2 commits into
mainfrom
cursor/create-dump-file-ddb0

Conversation

@JamesLinYJ

Copy link
Copy Markdown
Owner

Summary

Adds Create Dump File to the Processes context menu.

  • The command is IDM_PROC_DUMP (40140), with routing, status help, and strings in every locale. It stays disabled unless the selected row has a verified ProcIdentity.
  • The save dialog runs on the UI thread. MiniDumpWriteDump runs on a persistent worker and opens the process with open_process_for_identity using only PROCESS_QUERY_INFORMATION | PROCESS_VM_READ. A pid-only identity is rejected before OpenProcess.
  • If the process is gone, the path cannot be used, or the dump fails, the UI shows an error immediately and does not report success. Options is unchanged.

Verification

  • cargo fmt --all
  • cargo check --all-targets --locked for x86_64-pc-windows-msvc
  • cargo clippy --all-targets --locked -- -D warnings for the same target

cargo test and cargo build --release did not link here: this environment has no link.exe. That cross typecheck is not a Windows device test. CI should run Quality (x86_64) and Architecture (i686, aarch64).

Open in Web Open in Cursor 

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 20, 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 ✅ Completed 2026-10-20T03:54:39.358997Z 3435c5a 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3435c5a5bd

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/pages/processes/dump.rs
Comment thread src/pages/processes/dump.rs Outdated
Comment thread src/pages/processes/dump.rs Outdated
Comment thread src/pages/processes/dump.rs
Comment thread src/pages/processes/dump.rs Outdated
cursoragent and others added 2 commits October 20, 2026 04:07
The process context menu writes a full-memory dump only after
open_process_for_identity confirms the pid and creation time.
The save dialog stays on the UI thread; MiniDumpWriteDump runs
on a persistent worker, and failure is reported immediately.

Co-authored-by: jameslincn <jameslincn@outlook.sg>
Shutdown no longer joins the dump thread. Failed partial files are deleted
and a cleanup error is reported. MiniDumpWriteDump shares one nonblocking
gate with the crash handler, and partial names are created with CREATE_NEW.

Co-authored-by: jameslincn <jameslincn@outlook.sg>
@cursor
cursor Bot force-pushed the cursor/create-dump-file-ddb0 branch from 299934b to ddfd2f0 Compare October 20, 2026 04:07
@JamesLinYJ
JamesLinYJ merged commit e6c0275 into main Oct 20, 2026
3 checks passed
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.

2 participants