Repository navigation
fix(mecatui): simplify mode-specific CLI help - #1654
Merged
Merged
Conversation
jhrozek
approved these changes
Sep 17, 2026
jhrozek
left a comment
Contributor
There was a problem hiding this comment.
Reviewed the PR. The original wording is clear and appropriately scoped for this help-focused change. Approved.
5 tasks done
Merged
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
mecatuicommand and flag help concise, goal-oriented, and free of development-history commentary.sessions --help-all, so each command advertises only flags it accepts.Development stage
**Expected tasks:** 1, a non-placeholder**Combined rationale:**, and no runtime/public/operator/persistence/trust-boundary interface change (None — rationale; workflow-only meta-changes may review process docs/skills here)Contract linkage
Interface conformance
Issue relationship
Closes #1648
Type of change
Test plan
Baseline checks
task lint)task test)go run ./cmd/mecademo)task docs)task site:build)task api:check)task api:update+engine/CHANGELOG.mdtask ac-trace-strict)/panel-reviewAdditional checks:
go test ./cmd/mecatuitask buildgit diff --checktask testreached and passed the changedmecatuipackages, then failed in the unrelatedinternal/apptestTestCommandRunnerEnvironment_Scenario2_DefaultScrub. The test setsPATH=/binand invokesenv; on this macOS hostenvis under/usr/bin, so the command produces empty stdout. An isolated rerun reproduced the same host-specific failure, and this PR does not change that package.Changes
cmd/mecatui/command.go,provider_help.gocmd/mecatui/config.go,helpmeta.gocmd/mecatui/*_test.goUser-facing change
mecatui --helpand command-specific help are shorter and easier to scan. Embedded and connect help now list only flags accepted in that mode, while security and data-handling warnings remain explicit.Special notes for reviewers
The panel review found that local
sessions --help-allstill leaked remote-only flags through a duplicated filtering path. The final change centralizes exhaustive-help exclusions on the same applicability metadata used by parsing and adds local and remote sessions regressions.