Skip to content

fix(native-ui): explain why both capture sources are disabled - #7589

Closed
harshitethic wants to merge 2 commits into
morluto:mainfrom
harshitethic:fix/native-ui-capture-source-errors-7570
Closed

harshitethic wants to merge 2 commits into
morluto:mainfrom
harshitethic:fix/native-ui-capture-source-errors-7570

Conversation

@harshitethic

@harshitethic harshitethic commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fixes #7570. When callers disable both screenshot and accessibility, REA previously constructed an AnalysisInputError using only an Error cause, losing the actionable explanation after projection. Return explicit userMessage, remediationAction, and field-level issue entries for both offending inputs, in both observation and scenario workflows. Preserve the existing fail-closed no-helper-execution rule.

Verification

  • npx vitest run src/native/NativeUiObservation.test.ts: 35 passed, including two new regressions for both operations checking projected error and remediation, with helper invocation prohibited by the test fixture.
  • npm run typecheck, commit hooks oxlint and oxfmt, and git diff --check passed under Node v24.22.1.
  • No actual macOS native helper was launched; validation uses the existing in-process provider fixture.

Author readiness

  • Human owner reviewed complete diff and implications.
  • Human owner accepts validation limits.
  • Human owner requests maintainer review.

Draft awaiting human signoff under CONTRIBUTING.md.

Follow-up: capture source discovery

The shared input fields and both CLI schemas now explain that at least one capture source must be enabled. Both MCP tool descriptions also state the requirement because the compact catalog omits individual field descriptions. Public CLI and in-memory MCP regressions verify discovery and refusal for both commands; assertion wording checks the actual correction rather than an exact sentence.

Validation on macOS: 46 focused native UI, CLI and MCP tests passed; check:fast, docs:check and git diff --check passed. No native UI helper or real application was launched.

@greptile-apps

greptile-apps Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 4/5

[Medium impact] The PR affects the bounded native UI observation and scenario workflows.

The runtime change appears sound, but the outstanding requirement to avoid wording-dependent tests must be satisfied before merging.

Summary

The PR gives callers a clear correction when both native capture sources are disabled.

  • Native UI refusals explain which capture option to turn on.
  • CLI schemas and MCP listings explain the capture requirement.

Reviews (2) · Last reviewed commit: "fix(native-ui): advertise capture source..." · Reviewed by Greptile

Comment thread src/native/NativeUiObservation.test.ts Resolved
@N0zoM1z0

Copy link
Copy Markdown
Collaborator

Thank you for this fix. It landed in #10499 with your authorship kept on the commit (adapted where noted in the PR), so I'm closing this PR as superseded.

@N0zoM1z0 N0zoM1z0 closed this Nov 14, 2026
@morluto morluto added area: runtime Process capture and runtime observation bug Something isn't working labels Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: runtime Process capture and runtime observation bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Native UI commands hide the reason both capture sources are refused

3 participants