zmuxuny opened a new pull request, #7381: URL: https://github.com/apache/rocketmq-dashboard/pull/7381
### Which Issue(s) This PR Fixes Fixes #6740. Replaces stale-closed #6741 with its original implementation and authorship, refreshed onto the current rocketmq-studio baseline. ### Brief Description Pass the already-resolved target.Server into interactive confirmation rather than reading configuration a second time. The prompt, automatic preview and mutation now use the same destination snapshot even if another process changes or removes the configuration file. Remove the unused second-read helper. No confirmation bypass, dependency, API or workflow changes. The command-level regression covers unchanged, replaced and removed configuration with automatic-preview and explicit-token flows, plus rejection preventing any HTTP requests. This is distinct from #6205 runtime unit coverage and #6021 topic preview configuration. ### How Did You Test This Change? Fresh validation on 2026-11-04 at head 7715f04f347276eaec4d6f2e46e483d7ed7169f6, using the official Go 1.27.1 toolchain required by go.mod: - cd rmqctl && go test ./...: PASS, including cmd, internal packages and scripts. - go test -race ./...: PASS. - go vet ./...: PASS. - gofmt -l on the changed Go files: no output; git diff --check: PASS. - Negative control with unchanged trunk production and candidate regressions: four replaced/removed configuration cases fail as expected. Restoring this exact head makes all seven focused regression/control cases pass. These are new local results, not the old PR CI. Hosted CI will run for this replacement head. No live-cluster or unrelated frontend/backend testing claimed. ### Checklist - [x] One coherent change with regression coverage - [x] Original implementation and commit authorship retained - [x] Changed Go files formatted and ASF header present - [x] No new UI text, API, dependencies or workflow changes AI assistance was used for review and validation; the diff and results were checked before submission. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
