GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Build software better, together

fix(server): revoke the MCP credential when agent browser access is w…

browser-agent-access @juliusmarminge dcccb55
Web Preview on: pull_request
Deploy web preview
Mobile EAS Preview on: pull_request
EAS Preview
PR Size on: pull_request_target 2
Prepare PR size config
Sync PR size label definitions
Label PR size
Mobile Fingerprint Check on: pull_request 1
Native fingerprint diff
PR Vouch on: pull_request_target
Collect PR targets
Label PR 7083
CI on: pull_request 4
Check
Test
Mobile Native Static Analysis
Release Smoke
MacroscopeApp
Macroscope - UI Consistency
Macroscope - Approvability Check
Macroscope - Correctness Check
Macroscope - Effect Service Conventions
blacksmith.sh
[code]smith
Cursor
Cursor Bugbot
MacroscopeApp / Macroscope - UI Consistency failed Aug 17, 2026 in 6m 11s

UI Consistency: 1 issue found

apps/web/src/components/settings/IntegrationsSettings.tsx — the new Agent browser access row renders a SettingResetButton, but enableAgentBrowserAccess is not included in the page-level Restore defaults flow (getChangedBrowserSettingLabels in SettingsPanels.logic.ts and the restoreDefaults patch in SettingsPanels.tsx). The four browser client defaults in the same Browser section are covered there, so this toggle is the only reset-able row in the section that "Restore defaults" silently skips and omits from the confirmation dialog listing. Suggested fix posted inline: add the key to the changed-label list (and memo deps) plus the restore patch, or note the exception explicitly if bulk restore should not re-grant agent access.

No other findings: the new row composes the shared SettingsRow / SettingResetButton / Switch primitives exactly as the existing settings panels do, the search catalog entry and derived sidebar nav are consistent, and no raw controls, Tailwind ownership violations, or theme/variant issues were introduced.

Details

Note

Your check run agent prompt is: .macroscope/check-run-agents/ui-consistency.md
More information about how Check Run Agents work can be found in our Help Center.

Files examined in scope: apps/web/src/components/settings/IntegrationsSettings.tsx, apps/web/src/components/settings/settingsSearch.ts, apps/web/src/components/settings/SettingsPanels.tsx, apps/web/src/components/settings/SettingsPanels.logic.ts, apps/web/src/components/settings/settingsLayout.tsx, apps/web/src/components/settings/SettingsSidebarNav.tsx, apps/web/src/browser/ScreenRotationIcon.tsx, apps/web/src/browser/browserDefaults.ts, apps/web/src/components/preview/PreviewView.tsx, apps/web/src/hooks/useSettings.ts, plus the ui/button, ui/select, ui/switch, and ui/number-field primitives for contract comparison.

Checks performed:

  • Primitive usage: all controls use Button, Select, Switch, NumberField, Tooltip from components/ui; no raw elements recreating primitives.
  • Icon color indirection: ScreenRotationIcon carries no size-*/text-* class, so both call sites (Button variant="ghost" in the device toolbar, variant="ghost-muted" in settings) keep the --control-icon-color tone and variant-driven sizing — extraction is tone- and geometry-preserving.
  • Class overrides: no call-site strings override primitive height, radius, focus ring, cursor, or hit target; w-full sm:w-* width and layout classes stay contextual, matching the existing settings convention.
  • Accessibility/interaction: aria-labels present on every control, disabled routed through primitive props (which keep disabled:opacity-64 and pointer-events-none semantics), Base UI render prop used for tooltip-wrapped buttons.
  • State hooks: useClientSettings(toBrowserDefaults) uses a module-level selector, so the useMemo snapshot stays referentially stable — no useSyncExternalStore snapshot churn.
  • Route/search registration: /settings/integrations is present in SettingsPath, SETTINGS_SECTION_LABELS, SETTINGS_SECTION_ICONS, the generated route tree, and the search catalog; nav items are derived, so no additional list needed.

Noted but not reported as a finding: the viewport row uses SelectTrigger size="sm" while the adjacent zoom/appearance rows use the default trigger size. The compact size is internally consistent with the sm number fields and icon-sm rotate button packed into that row, so it reads as an intentional exception rather than a violation. That row also predates this PR in the stack.


🔍 Agent activity — 1 tool call

💭 I'm checking the new IntegrationsSettings.tsx file against the existing settings panels to make sure everything follows the same design patterns and structure. I'm noticing that SettingsRow expects a title prop, but in IntegrationsSettings.tsx the rows are being created with spread syntax from searchableSetting() that only includes description and no title. I need to check what searchableSetting actually returns to understand if the title is missing or being passed differently. I'm checking the IntegrationsSettings.tsx file for consistency and noticing some sizing inconsistencies—the SelectTrigger uses a small size for the viewport control, but the zoom and appearance selects use the default size, and there are also NumberField and Button elements with different size variants in the same section that I should align with how other settings panels handle this. I'm also looking at the DesktopOnlyBrowserDefaults component which uses opacity-64 as an arbitrary opacity value, and I need to verify whether Tailwind v4 actually supports bare numeric opacity values like that or if this is a potential issue. I should check the repo's Tailwind version and see if this pattern is used elsewhere in the codebase. There's also an inconsistency with the SelectItem hideIndicator prop — it's applied in the zoom and appearance selects but not in the viewport items, which means the viewport select shows check indicators while the others don't. I'm not sure if that's intentional or an oversight, so I should look at how this pattern is used elsewhere in the repo. I need to verify that text-warning actually exists in the theme, and I'm still investigating the opacity-64 usage to confirm it's valid. Looking at the SelectItem component in the viewport select, the hideIndicator prop is being destructured but never actually used—it's renamed to _hideIndicator and ignored, so passing it has no effect on the UI. The real inconsistency I'm noticing is that the viewport row's SelectTrigger uses size="sm" while the zoom and appearance rows in the same section use the default size, creating a visual mismatch. For the ScreenRotationIcon inside the icon-sm button, I need to check whether the button component applies sizing rules to child SVGs that don't have explicit size classes. I should also verify that opacity-64 is a valid theme value and confirm text-warning exists in the theme, then look at how the arbitrary variant selectors for dimming child elements work. The ScreenRotationIcon's stroke color resolves correctly through the button's text color variable, so that's consistent. Now I need to check how other settings panels handle Select component sizing to maintain consistency across the new panel. I'm noticing an inconsistency in the select component sizing across the settings panel—the viewport row uses a smaller size variant with different minimum heights compared to the zoom and appearance selects right below it, which creates a visual mismatch within the same section. I should also check how the number field handles the small size variant to ensure consistency there too. I'm checking whether the existing NumberField components in settings include increment/decrement buttons that the new one is missing, and verifying that the disabled prop is valid for NumberFieldPrimitive.Root. I also need to look at how the new NumberField uses onValueCommit. I need to verify that Base UI's NumberField component actually supports the onValueCommitted prop, since this is critical for the control to persist values properly. Let me check the package.json to see what version of Base UI is installed and whether that version includes this event handler. Looking at Base UI 1.4.1, the onValueCommitted callback should be available on NumberField.Root since it was added in version 1.1.0, so that's not a concern. Now I need to check how KeybindingsSettings and ProjectSettingsPanel currently handle the "desktop-only" messaging to ensure consistency with the new approach. The styling approach here uses different color tokens for visual hierarchy—the warning palette for the desktop notice versus a more neutral border and muted background for this variant. The real concern is that dimming the headings and descriptions with reduced opacity might make them harder to read without adding enough visual distinction. Looking at the disabled state handling, the Switch component needs to support the disabled prop, and I should verify that. The reset buttons already handle this correctly by rendering nothing when disabled. For the viewport controls, there's a sizing inconsistency between the SelectTrigger and other elements—the trigger uses w-full min-w-0 sm:w-44 which overrides the default min-w-36 through Tailwind's merge logic, allowing it to shrink on smaller screens. But there's also a height mismatch I need to investigate further. The viewport row deliberately uses size="sm" to match compact number fields inline, giving it roughly 28px height at the sm breakpoint, while the zoom and appearance rows use default-size selects at min-h-8. This creates a real visual inconsistency across adjacent rows in the same panel—either the viewport select should match the default size or the others should be sized down. The widths also differ: sm:w-44 versus sm:w-40. I should check if other panels like ThemeSettings or SourceControlSettings have similar size mismatches in their SettingsRows. I'm noticing the viewport row is the only place using size="sm" triggers while everything else defaults to standard size—that's worth flagging. Let me verify a few other things: whether the Switch primitive supports a disabled state, how the disabled settings behave on the web side with those hidden reset buttons, and checking the dimming approach in DesktopOnlyBrowserDefaults. The status text in SettingsRow is a div rather than p or h3, so it won't get caught by the opacity rules meant for those elements—but since only the browser access row uses status and it's outside that block anyway, it's fine. Accessibility-wise, the h3 title with aria-label-only controls is consistent with the existing pattern. One thing stands out though: the NumberField in the viewport row doesn't include Decrement/Increment buttons while other settings NumberFields do, which seems intentional for the compact inline layout. But there's a real issue with commitDimension—it silently ignores invalid values without resetting, so the NumberField can end up displaying stale input. Actually, looking at how Base UI's NumberField works with a controlled value prop, when the parent doesn't update on an invalid commit, the field should snap back to the controlled value on blur and reformat it. The min/max clamping on commit should handle it too, so it's probably fine. The Select component looks consistent with existing usage—no items prop but a custom label in the trigger, and the className placement on SelectPopup matches the BrowserDeviceToolbar pattern. For the disabled state, Base UI's Select supports it. The Tooltip with a disabled Button inside works correctly since pointer-events-none prevents the tooltip from showing when disabled. The icon sizing is consistent—ScreenRotationIcon at icon-sm matches the select height in the row, and since the SVG has no explicit width/height, it relies on the parent's size utility class which works fine with Button. Now checking a few more details: the viewport fallback constant placement in browserDefaults.ts is just a minor style thing, and PreviewView.tsx is behavior-preserving. I need to verify the Switch component supports the disabled prop, and confirm whether the new "/settings/integrations" route needs to be registered in SettingsSidebarNav—it maps over SETTINGS_SECTION_LABELS so the entry should render if the icon was added to that record. The browser default rows render on web even though they're disabled, so they don't need the desktopOnly flag. The search items with targetId: "browser" correctly jump to their sections. Now I need to check if the settings route or panel requires registration elsewhere. Looking at the mobile layout, the viewport controls render inside a flex container that wraps on small screens, forcing the select field to full width — that's working as expected. But there's a potential issue with useClientSettings: the toBrowserDefaults selector creates a new object on each call, which could trigger an infinite re-render loop if useClientSettings uses useSyncExternalStore with an uncached selector. I should check the implementation in useSettings.ts to verify this isn't a problem. The memoization in useClientSettings is stable since it depends on the selector and settings, and useBrowserDefaults returns a consistent reference to the module-level function, so there's no unnecessary re-rendering loop. Now I need to check whether PreviewView is properly including browserDefaults in its callback dependencies around line 250. The reset button visibility in BrowserViewportSetting only checks the _tag property against the default, which works fine since the default is fill, but it's a bit fragile if the default ever changes — it's relying on tag comparison rather than a more robust equality check. I notice there's actually an isSamePreviewViewport helper already written in SettingsPanels.logic.ts that could be used here for consistency with how the restore banner works, but it's a minor inconsistency and not worth flagging given the current behavior is correct. The zoom and appearance reset conditions use their respective default constants, which match the values in the unified settings, so that's consistent. Now looking at the disabled/web case more carefully — when previewDefaultsDisabled is true, the reset buttons hide properly, which is good. But getChangedBrowserSettingLabels gets added to the restore logic, which means browser settings will show up in the restore-defaults dialog even on web where they're actually disabled. There's also a minor a11y gap in DesktopOnlyBrowserDefaults where the disabled controls aren't programmatically linked to their explanation text, though this follows existing patterns. For the icon-color indirection, the extracted ScreenRotationIcon preserves its tone through the CSS variable routing, but I notice it doesn't accept a className prop like other lucide icons do, which could be an issue if it needs styling flexibility elsewhere. On the size mismatch question, I'm checking whether this is a concrete violation. The controls use variants rather than class overrides, so that's not the issue. But within the same settings section, there are three select controls at inconsistent heights and widths, which might warrant flagging as a repeated geometry pattern that should use a named primitive size. Let me verify the actual height differences across breakpoints. The default trigger is taller than the sm variant by about 4px on desktop, and the NumberField inputs appear to match the select sm heights when accounting for borders. So the inconsistency is real — some controls use the default size while others use sm, which diverges from how every other settings panel handles this. I should flag this as a row-level issue and suggest either bumping the number fields and select to default size, or making the zoom and appearance controls sm to match. Now let me check if the Switch component supports a disabled prop and whether it visually indicates the disabled state properly. The switch is properly disabled. The hideIndicator prop on SelectItem is being destructured but not used, so there's no visual impact there. Looking at browserDefaults.ts, I notice the FALLBACK_RESPONSIVE_VIEWPORT_SIZE export is positioned right after a JSDoc comment that's meant for a function, so the documentation is getting attached to the wrong declaration. Now I'm weighing whether the select size mismatch in the viewport settings row is a real consistency violation or an intentional design choice. The row packs multiple controls together, which might justify the compact sizing, but it does diverge from the w-full sm:w-40 pattern used everywhere else. I should check if there are any screenshots in the PR that show whether this was deliberate. I'm noticing a discrepancy between the PR head commit and what the API reports, and the diff I'm reviewing is against the merge base rather than the actual head. Since this PR is stacked on top of #7082, most of the UI components like IntegrationsSettings and ScreenRotationIcon are actually coming from the parent PR, but they're included in the diff I need to review. I need to clarify the scope here—the instructions say to review the diff between merge base and head, but I'm seeing changes that originated upstream. The core changes specific to this PR are the server gating logic and the new AgentBrowserAccessSetting row in IntegrationsSettings. The select-size styling difference appears to be from the parent PR, and while it's a minor aesthetic inconsistency, I don't think it warrants failing the check since it's likely intentional for a compact row layout. Let me focus on whether the actual PR-specific UI change has any stronger issues. Looking at AgentBrowserAccessSetting itself: it uses usePrimarySettings() without a selector, which means it subscribes to the entire settings object—but that's consistent with how other rows in SettingsPanels work. There's no disabled handling, which aligns with the PR description saying it should always be editable. The status message displays when the setting is off, and SettingsRow supports that pattern. I need to verify that the reset button and switch combination follows the same aria-label and structural pattern as other switch rows in SettingsPanels. I'm noticing that the AgentBrowserAccessSetting row follows the pattern correctly, but there's an inconsistency in the restore-defaults flow — useSettingsRestore handles changed labels and browser defaults, yet it doesn't include enableAgentBrowserAccess in either the changed labels or the restore patch, so the per-row reset from #7083 won't be covered by the global restore action. I'm noticing that PR #7083 adds the enableAgentBrowserAccess setting as a user-facing row with its own reset button, but it's missing from the getChangedBrowserSettingLabels and restoreDefaults logic — so when users hit "Restore defaults," agent browser access stays disabled instead of resetting properly. This is a legitimate UI consistency issue since every other toggle in Settings gets covered by the restore flow, and the affected files are in scope. The setting is a ServerSettings field that should be restorable, so I need to verify it's included in DEFAULT_UNIFIED_SETTINGS. Now I'm weighing whether to flag the select size mismatch as a second finding — it's a minor consistency issue since IntegrationsSettings appears to be new in this diff, but I'm concerned about adding noise with too many non-blocking comments. Let me also verify the PreviewView.tsx toggle behavior: enabling the device toolbar now jumps to the user's configured default viewport instead of fitting the panel, which aligns with the intended changes in PR #7082. I should confirm that browserDefaults.ts properly imports the viewport resolution function it needs, and check whether IntegrationsSettings has adequate test coverage. Now I need to verify if the settings route has a tabs list that needs updating, and search for any other references to "/settings/providers" in the routing configuration to catch anything else that might need the new path, like mobile navigation. I'm checking whether enableAgentBrowserAccess is intentionally excluded from the settings, and looking at other server settings to see if there's a pattern of certain options being left out of the restore defaults functionality. I'm noticing an inconsistency: the legacy toggles lack reset buttons and are intentionally excluded from the restore defaults flow, but enableAgentBrowserAccess has a per-row reset button that suggests it should participate in the defaults contract, yet the global restore won't touch it and the confirmation dialog won't mention it. I need to check whether every other row with a SettingResetButton follows the same pattern or if this is an outlier. I'm noticing that the reset buttons in SourceControl and Provider Project panels don't necessarily correspond to settings in the global restore function—for instance, SourceControl settings have their own reset buttons but aren't included in the restoreDefaults list. I should verify whether restoreDefaults actually covers all these settings or if there's a gap in the implementation. The Restore Defaults button only appears on the general settings page and resets a curated global set that the parent PR extended to include browser client defaults from the integrations page. So there's a precedent that integrations and browser settings should be included in the global restore, but this PR adds a fifth row in that same section with its own reset button while omitting it from the global restore list — which breaks that consistency. It's a valid concern and the fix would be straightforward, though I'm wondering if this inconsistency might actually be intentional. Re-granting agent browser access through a bulk restore could be a security consideration that shouldn't happen silently, but then again, the Restore Defaults action is explicit and shows a confirmation dialog listing what gets reset, so the user would see it. Other safety-related settings like confirmThreadDelete are included in the restore, which suggests this toggle should be too for consistency. Given the ambiguity, I should frame this as a question: either there's a good reason to exclude it from the restore (in which case a comment explaining the security rationale would help), or it should be added for consistency with the rest of the section. Now I'm weighing whether this finding is strong enough to fail the check. It's a real inconsistency in how the settings-defaults contract works, it's actionable, and it's relatively small. The check is about UI consistency in the web UI code, and the settings-panel defaults contract definitely fits that scope. I think it's legitimate but borderline—more behavioral than purely visual. I'm also reconsidering whether to flag the select-size inconsistency as a second finding, since the entire IntegrationsSettings file is new in this diff and having three selects at two different heights within one section is exactly the kind of UI consistency issue this check should catch. But I'm hesitant because a 4px height difference between adjacent controls could be dismissed as an optional aesthetic preference, which the rules say not to fail on. The risk of being wrong or noisy outweighs the benefit, so I'll keep the review focused on the one concrete finding I'm confident about. Let me also verify there's no accessibility regression — SettingsRow renders the title as an h3 with visible text, and the controls have aria-label attributes that duplicate the label, which is an existing pattern and fine. I'll post one inline comment about the missing enableAgentBrowserAccess in the restore-defaults logic, anchoring it to the changed line in SettingsPanels.tsx where the browser settings labels are being gathered. Now I need to verify the exact line numbers in the diff — the PR head is at a newer commit than what's in the context, so line numbers may have shifted. I should check the current patch for SettingsPanels.tsx to make sure I'm referencing the right location in the latest version. Looking at the PR scope, it only modifies eight files, and the web UI changes are confined to IntegrationsSettings.tsx and settingsSearch.ts — SettingsPanels.tsx and its logic file were already modified by the parent PR. This means my observation about enableAgentBrowserAccess not being added to the restore-defaults function is still valid. The issue is that this PR introduces a new settings row with a reset button, but the page-level "Restore defaults" flow in SettingsPanels doesn't include it. I can anchor this finding on the resetAction lines in IntegrationsSettings.tsx (which are in the diff) and note that the parent PR deliberately wired the other browser client settings into that restore flow, so this omission looks like an oversight. The real question is whether this UI consistency gap is significant enough to warrant failing the check — it's a mismatch between what the reset button promises and what the page-level restore actually covers. I'll post an inline comment on the resetAction lines (around 371-382 in the new file) pointing out that SettingsPanels' restore list needs to be updated to include this setting, since adding it to useSettingsRestore is straightforward. I'm drafting a comment about how the enableAgentBrowserAccess setting has its own reset action but isn't integrated into the page-level restore defaults flow that handles the other browser client settings, so bulk restores won't re-enable agent access or show it in the confirmation dialog — I should note whether this is intentional or if the setting needs to be added to that flow. Now I'm deciding on the review state. This is a moderate consistency issue, not a critical failure, but given the instructions to default to failure when there are findings, I'll mark it as failure and post the review.

1. modify_pr — UI consistency review of the settings changes. One finding: the new Agent browser access row advertises default semantics with a per-row reset button, but it is not wired into the page-level Restore defaults flow that the rest of this Browser section uses. Everything else (SettingsRow/SettingResetButton/Switch composition, search catalog entry, sidebar nav derivation, desktop-only framing) matches the existing settings primitives.


Agent Credits: 316 credits

View more details on MacroscopeApp
Loading

Re-running checks...

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.