Skip to content

Clarify macOS access prompt guidance - #11807

Merged
brennanb2025 merged 2 commits into
mainfrom
brennanb2025/clarify-macos-access-prompt-toast
Jul 31, 2026
Merged

brennanb2025 merged 2 commits into
mainfrom
brennanb2025/clarify-macos-access-prompt-toast

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Jul 31, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • tie the guidance toast directly to the macOS “Orca would like to access…” message
  • explain why macOS names Orca and which apps need Full Disk Access
  • open Settings at Full Disk Access, scroll it into view, and highlight the row for three seconds

Follow-up to #11716.

Copy before and after

Copy Before After
Title Reduce repeated macOS file-access prompts Seeing “Orca would like to access…”?
Description macOS attributes file access by your agents and terminal tools to Orca. Granting Full Disk Access reduces these prompts. That macOS message appears when an agent or terminal tool accesses protected files. macOS names Orca because Orca launched the tool. Grant Full Disk Access to Orca and Orca Helper to reduce future prompts.

Validation

  • targeted Vitest: 2 files, 5 tests
  • web typecheck
  • changed-code quality gate
  • max-lines ratchet
  • formatting and whitespace checks
  • localization extraction, catalog, and coverage gates
  • same-model correctness, regression, accessibility, and performance review: CLEAN
  • visible Electron validation in an isolated macOS profile

Screenshots

Clarified toast message

Toast connecting the guidance to the macOS Orca access message

Full Disk Access target and highlight

Settings scrolled to Full Disk Access with the row highlighted

@greptile-apps

greptile-apps Bot commented Jul 31, 2026 •

Copy link
Copy Markdown

Greptile Summary

This PR refines the macOS TCC consent-dialog guidance toast: the title and description now reference the exact system message users see ("Orca would like to access…"), and clicking "Open Settings" now deep-links directly to the Full Disk Access row in the Developer Permissions pane — scrolling it into view and applying a 3-second highlight ring.

  • Updated toast copy in useMacosTccPromptNotice.ts and en.json to tie the notice directly to the macOS prompt wording, and added sectionId: FULL_DISK_ACCESS_SETTINGS_TARGET_ID to the settings navigation target so the row is both scrolled into view and highlighted.
  • Added highlightedSettingId prop to DeveloperPermissionsPane, using data-settings-section / data-highlighted attributes with Tailwind data-attribute variants to render the ring; a 3-second setTimeout in Settings.tsx drives the auto-clear.
  • Exported FULL_DISK_ACCESS_SETTINGS_TARGET_ID from settings-navigation-types.ts as the single source of truth for the constructed developer-permissions-full-disk-access ID, shared by the hook, the pane renderer, and both test files.

Confidence Score: 5/5

Safe to merge — changes are purely UI copy and a highlight/scroll deep-link with no data or permission logic touched.

The change updates toast copy and adds a transient 3-second highlight ring on the Full Disk Access row when the user arrives via the notice. All paths are well-covered by the new tests: the correct toast title and description are asserted, the navigation target's sectionId is verified, and the highlight data-attribute lifecycle is tested directly. No existing permission-request or state-management logic was modified.

Files Needing Attention: No files require special attention.

Important Files Changed

Filename Overview
src/renderer/src/hooks/useMacosTccPromptNotice.ts Updates toast title/description to mirror the macOS prompt wording and adds sectionId to the navigation target for direct deep-linking to the Full Disk Access row.
src/renderer/src/components/settings/DeveloperPermissionsPane.tsx Adds highlightedSettingId prop and data-settings-section/data-highlighted attributes to each permission row for scroll targeting and highlight styling; settingId is derived with the same prefix formula as FULL_DISK_ACCESS_SETTINGS_TARGET_ID.
src/renderer/src/components/settings/Settings.tsx Adds highlightedSettingsTargetId state, sets it from sectionId on developer-permissions navigation, auto-clears after 3 s, and passes it down to DeveloperPermissionsPane.
src/renderer/src/lib/settings-navigation-types.ts Exports FULL_DISK_ACCESS_SETTINGS_TARGET_ID as the shared constant for the full-disk-access permission row ID.
src/renderer/src/hooks/useMacosTccPromptNotice.test.tsx Extends tests to assert the new toast copy and that opening Settings sets the navigation target with the correct sectionId.
src/renderer/src/components/settings/DeveloperPermissionsPane.test.tsx New test file verifying that the Full Disk Access row receives data-highlighted="true" when the matching highlightedSettingId prop is passed, and the attribute is absent when the prop is null.
src/renderer/src/i18n/locales/en.json Updates the English catalog strings for the TCC notice to match the new copy in the hook.

Reviews (2): Last reviewed commit: "Make settings target highlight visible" | Re-trigger Greptile

@coderabbitai

coderabbitai Bot commented Jul 31, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The macOS TCC notice now explains the protected-file access prompt and directs navigation to Full Disk Access. Settings tracks the selected developer-permissions target and clears its highlight after three seconds. Developer Permissions assigns stable identifiers to permission rows and applies temporary highlight styling to the selected row. Tests cover notice content, navigation arguments, row highlighting, and highlight removal.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description includes the summary and screenshots, but it omits the required Testing, AI Review Report, Security Audit, and Notes sections. Add the required Testing, AI Review Report, Security Audit, and Notes sections, including explicit cross-platform compatibility review details.
✅ Passed checks (4 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly describes the macOS access-prompt guidance update, which is the primary user-visible change.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 1ada204c-4c35-4e0a-9d94-b2c465281698

📥 Commits

Reviewing files that changed from the base of the PR and between 129d8b3 and e57cd64.

📒 Files selected for processing (7)
  • src/renderer/src/components/settings/DeveloperPermissionsPane.test.tsx
  • src/renderer/src/components/settings/DeveloperPermissionsPane.tsx
  • src/renderer/src/components/settings/Settings.tsx
  • src/renderer/src/hooks/useMacosTccPromptNotice.test.tsx
  • src/renderer/src/hooks/useMacosTccPromptNotice.ts
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/lib/settings-navigation-types.ts

Comment on lines +679 to +683
setHighlightedSettingsTargetId(
settingsNavigationTarget.pane === 'developer-permissions'
? (settingsNavigationTarget.sectionId ?? null)
: null
)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== Locate Settings.tsx =="
fd -a 'Settings\.tsx$' . || true

echo "== Relevant settings highlight snippets =="
file="$(fd 'Settings\.tsx$' . | head -n 1)"
if [ -n "${file:-}" ]; then
  wc -l "$file"
  echo "-- lines 420-475 --"
  sed -n '420,475p' "$file" | nl -ba -v420
  echo "-- lines 650-690 --"
  sed -n '650,690p' "$file" | nl -ba -v650
  echo "-- DeveloperPermissionsPane highlightedSettingId usages around --"
  rg -n "highlightedSettingId|highlightedSettingsTargetId|DEV|SETTINGS_TARGET_HIGHLIGHT_MS|developer-permissions" "$file" -C 2
fi

Repository: stablyai/orca

Length of output: 477


🏁 Script executed:

#!/bin/bash
set -euo pipefail

file="src/renderer/src/components/settings/Settings.tsx"
echo "== file size =="
wc -l "$file"

echo "-- lines 420-475 --"
sed -n '420,475p' "$file"

echo "-- lines 650-695 --"
sed -n '650,695p' "$file"

echo "-- focused usages in Settings.tsx --"
rg -n "highlightedSettingId|highlightedSettingsTargetId|SETTINGS_TARGET_HIGHLIGHT_MS|developer-permissions|settingsNavigationTarget|setHighlightedSettingsTarget" "$file" -C 2

Repository: stablyai/orca

Length of output: 8193


🌐 Web query:

React documentation updates with the same state value effect not rerun set state

💡 Result:

When you update a React state hook with a value that is identical to the current state, as determined by an Object.is comparison, React will bail out of the update process [1][2]. This is a performance optimization designed to avoid unnecessary work [1][3]. In this scenario: - React will skip re-rendering the component and its children [1][4]. - React will not fire any effects (e.g., those managed by useEffect) [5][2]. It is important to note a technical nuance: while React attempts to skip re-rendering, it may still need to invoke your component function in certain cases (for example, to verify the state or handle concurrency) [1][6]. However, even if the component function is called, React will detect that the state has not changed and will not proceed to update the DOM, recurse to children, or execute side effects [1][5][3]. This behavior is consistent across both modern and legacy React documentation [2][4]. If you are using mutable objects or arrays, ensure you are creating a new reference when updating state; if you provide a new reference that is deeply equal to the previous one, React will still trigger a re-render because Object.is performs a shallow comparison [7][4].

Citations:


🌐 Web query:

React documentation updates with the same state value effect not rerun set state developer.perms

💡 Result:

When you call a React state setter function with a value identical to the current state (as determined by an Object.is comparison), React will "bail out" of the update [1][2]. This means React will skip re-rendering the component and its children, and will not fire effects [1][2]. However, there is an important nuance regarding component function execution: React may still invoke your component function one additional time to confirm that the state update truly results in no changes before it fully bails out [1][2][3]. This typically happens if the state was previously changed to a new value and then set to that same value again [4]. Once React confirms the values are identical, subsequent calls to the state setter with that same value will not trigger further component function invocations [5][4]. To prevent unnecessary work, if you know the value hasn't changed, you can add a conditional check before calling the setter [6]: if (value!== currentState) { setValue(value); } In summary, while React optimizes performance by skipping the re-render of children and the firing of effects when the state value remains unchanged, you may occasionally observe the component function running again to verify the state before the bail-out occurs [1][5][3].

Citations:


Restart the highlight timer for repeated navigation.

A second navigation to the same developer-permissions sectionId can pass the same value to setHighlightedSettingsTargetId and skip state/effects updates. The original highlight timeout may then clear the row before the full 3 seconds.

Reset the highlight timeout or store a new navigation token when the target repeats.

@brennanb2025
brennanb2025 merged commit 7d24dad into main Jul 31, 2026
42 checks passed
brennanb2025 added a commit that referenced this pull request Jul 31, 2026
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
* Clarify macOS access prompt guidance

* Make settings target highlight visible
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
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