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

Prime Signal Desktop's Electron accessibility tree so its composer resolves - #892

Merged
FuJacob merged 2 commits into
FuJacob:mainfrom
7hdmm9pp2w-code:signal-desktop-priming
Nov 22, 2026
Merged

FuJacob merged 2 commits into
FuJacob:mainfrom
7hdmm9pp2w-code:signal-desktop-priming

Conversation

@7hdmm9pp2w-code

@7hdmm9pp2w-code 7hdmm9pp2w-code commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Signal Desktop (org.whispersystems.signal-desktop) is a stock Electron app. Its message composer is a contenteditable that stays hidden from Accessibility until a client sets AXManualAccessibility on the app, so no focused field ever resolved there and Cotabby showed no suggestions in Signal. This adds Signal to BrowserAppDetector's Electron editor allowlist, the same treatment Obsidian (#825) and the Claude desktop app (#882) get.

Validation

  • xcodebuild test against the Cotabby scheme, run the same way as tests.yml (Xcode 27.2, macOS 27.2): 2,782 tests executed. All BrowserAppDetectorTests pass, including the new assertions. The only two failures, in SuggestionCoordinatorWordCompletionTests, fail identically on unmodified main on this machine (system language German; see Is a new release planned? (26 unreleased commits since 0.6.2-beta, 37 open PRs) #891).
  • Manual check: a Release build of Cotabby Dev with this change shows and accepts suggestions in Signal Desktop 8.35 (Electron 45). Without it, nothing appears in Signal.
  • SwiftLint was not run locally. The new lines are under the 140-character warning limit.

Linked issues

Refs #882 (same fix for the Claude desktop app). The two PRs touch adjacent lines in the allowlist, so whichever merges second needs a trivial rebase.

Risk / rollout notes

Low risk. The match is exact, so Signal's .helper processes are not primed.

Summary by CodeRabbit

  • Bug Fixes
    • Signal Desktop is now recognized as an editor rather than a browser during application detection. Its classification now matches other supported Electron-based editors, so it is identified consistently when the app determines which kind of application is open. This update applies specifically to Signal Desktop and does not change how browser applications are classified.

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge.

Summary

Adds Signal Desktop to the Electron accessibility allowlist so Cotabby can resolve its composer.

  • Cotabby can now resolve Signal's message composer.

Reviews (2) · Last reviewed commit: "Merge origin/main into signal-desktop-pr..." · Reviewed by Greptile

@coderabbitai

coderabbitai Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Electron editor allowlist now includes Signal Desktop. The documentation describes its dormant Electron composer, and the test checks editor detection and browser classification.

Changes: Signal Desktop editor detection

Layer / File(s) Summary
Signal Desktop Electron allowlist
Cotabby/Support/Focus/Applications/BrowserAppDetector.swift, CotabbyTests/Support/Focus/Applications/BrowserAppDetectorTests.swift
The Electron editor allowlist includes Signal Desktop. Its documentation describes the dormant composer surface and its need for priming. The test checks that Signal Desktop qualifies as an Electron editor and is not classified as a browser.

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

Change: Bug fix

Suggested reviewers: francescorinaudo

Merge Risk: Minimal · up to a0fe1

This change lets Cotabby resolve Signal Desktop's message composer by adding it to the list of supported Electron editors. The change is small and easy to revert, and it affects only Signal. Merge risk is minimal.

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 names the primary change: adding Signal Desktop to the Electron editor allowlist so its composer resolves. The raw summary and PR objectives both describe this allowlist addition and its acc…
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.
Full details: Title check

Explanation

The title names the primary change: adding Signal Desktop to the Electron editor allowlist so its composer resolves. The raw summary and PR objectives both describe this allowlist addition and its accessibility-priming purpose, so the title is directly related to the changeset. It is a single sentence of 10 words and avoids file lists and vague terms.

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: d89834e8-cc38-4f81-9a32-adf425d0a553
Commits

Reviewing files that changed from the base of the PR and between 4124689 and a0fe169.

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.

Keep both the Claude desktop (FuJacob#882) and Signal Desktop allowlist entries,
doc-comment paragraphs, and test assertions.

@FuJacob FuJacob left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Signal Desktop allowlist entry; conflict with #882 resolved by keeping both entries and doc paragraphs. BrowserAppDetectorTests pass locally.

@FuJacob
FuJacob merged commit b3a8198 into FuJacob:main Nov 22, 2026
6 checks passed
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.

2 participants