Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Prime Electron accessibility for Slack - #976

Open
dbachelder wants to merge 1 commit into
FuJacob:mainfrom
dbachelder:fix/slack-electron-priming-upstream
Open

dbachelder wants to merge 1 commit into
FuJacob:mainfrom
dbachelder:fix/slack-electron-priming-upstream

Conversation

@dbachelder

@dbachelder dbachelder commented Dec 3, 2026 •

Copy link
Copy Markdown

Slack is an Electron app, so its accessibility tree stays asleep until something sets AXManualAccessibility. Cotabby never did, which left Slack stuck on "No focused Accessibility element" and produced no suggestions.

This adds Slack's bundle id (com.tinyspeck.slackmacgap) to the Electron priming allowlist, the same way #882 did for Claude and #892 did for Signal.

Tested locally: after installing a build with this change, Cotabby now completes in Slack.

Fixes #776
Refs #756, #822

Summary by CodeRabbit

  • New Features
    • Improved app and focus detection in Slack, so it is recognized as an editor rather than a browser.

Confidence Score: 5/5RetriggerView in Greptile

The PR appears safe to merge.

Summary

Adds Slack’s exact bundle identifier to the Electron accessibility allowlist.

  • Cotabby can now find Slack’s chat composer through accessibility.

Reviews (1) · Last reviewed commit: "Prime Slack's Electron accessibility tre..." · Reviewed by Greptile

@coderabbitai

coderabbitai Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Electron editor allowlist now includes Slack’s bundle ID. Documentation describes Slack’s accessibility behavior, and tests verify its classification, accessibility priming requirement, and exclusion from browser classification.

Changes: Slack Electron editor detection

Layer / File(s) Summary
Slack classification and priming
Cotabby/Support/Focus/Applications/BrowserAppDetector.swift, CotabbyTests/Support/Focus/Applications/BrowserAppDetectorTests.swift
The detector documentation describes Slack’s dormant accessibility tree. Slack’s bundle ID is added to the Electron editor allowlist. The test checks that Slack requires web accessibility priming and is not classified as a browser.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Bug fix · Severity of issue fixed: Low

Possibly related issues

Possibly related PRs

  • FuJacob/cotabby#892 — Adds Signal Desktop to the same Electron editor allowlist using the same accessibility-priming mechanism.
  • FuJacob/cotabby#882 — Adds Claude Desktop to the same Electron editor allowlist using the same accessibility-priming mechanism.

Suggested reviewers: 7hdmm9pp2w-code, fujacob

Merge Risk: Minimal · up to c5b0e

This adds Slack to the apps whose accessibility tree Cotabby primes, so suggestions should work there. No merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "Prime Electron accessibility for Slack" matches the main change. The PR adds Slack's bundle ID (com.tinyspeck.slackmacgap) to the Electron editor allowlist so Cotabby primes Slack's accessi…
Linked Issues check Passed [#776] The issue asks that Cotabby provide suggestions in Slack on macOS. The reviewed head adds "com.tinyspeck.slackmacgap" to electronEditorBundleIdentifiers in Cotabby/Support/Focus/Applications/Br…
Out of Scope Changes check Passed The PR changes are limited to the Electron editor allowlist in BrowserAppDetector.swift: one Slack bundle id entry, a doc comment that describes the Slack case and references #756, #776, and #822, and…
Full details: Title check

Explanation

The title "Prime Electron accessibility for Slack" matches the main change. The PR adds Slack's bundle ID (com.tinyspeck.slackmacgap) to the Electron editor allowlist so Cotabby primes Slack's accessibility tree. The summary and objectives both describe this change, and the test file adds matching Slack expectations. The title is short, specific, and free of noise.

Full details: Linked Issues check

Explanation

[#776] The issue asks that Cotabby provide suggestions in Slack on macOS. The reviewed head adds "com.tinyspeck.slackmacgap" to electronEditorBundleIdentifiers in Cotabby/Support/Focus/Applications/BrowserAppDetector.swift. isElectronEditor matches case-insensitively, and needsWebAccessibilityPriming returns true for that bundle id. This routes Slack into the existing Electron web-accessibility priming path, which is the mechanism the issue needs, because Slack's accessibility tree stays dormant until AXManualAccessibility is set. The PR summary reports that the test file adds Slack expectations (Electron editor, web priming required, not a browser). I did not read the test file directly because the diff tool was unavailable. The end-to-end result in Slack is reported by the author as a local manual test. It is not verified in the repository. No coding requirement from #776 is left unmet by this change.

Full details: Out of Scope Changes check

Explanation

The PR changes are limited to the Electron editor allowlist in BrowserAppDetector.swift: one Slack bundle id entry, a doc comment that describes the Slack case and references #756, #776, and #822, and a trailing comma added to the Signal entry. The PR summary also reports a test expectation for Slack in BrowserAppDetectorTests.swift. All of these support the Slack allowlist change. No unrelated behavior change was reported. The test file content was not read directly, so this verdict relies on the PR summary for that file.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 239fa980-3704-4d7d-b5be-ba73ce8f9ac7
Commits

Reviewing files that changed from the base of the PR and between 45f59ef and c5b0eab.

Files selected for processing: 2

  • Cotabby/Support/Focus/Applications/BrowserAppDetector.swift
  • CotabbyTests/Support/Focus/Applications/BrowserAppDetectorTests.swift

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

This branch has not been deployed

No deployments
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.

[Bug] Not seeing it appear on slack

1 participant