Repository navigation
Conversation
SonneFish
marked this pull request as draft
October 28, 2026 13:29
…w appearance - compute new-file workspace icons in the background when the menu config arrives and merge them into FileTypeIconProvider on the main thread - pre-warm app symbol-name lookups (Info.plist reads) and the SF Symbol rendering pipeline via AppPresets.prewarm - unify menu symbol icon construction in MenuSymbolIcon: a fresh image per build with theme-explicit colors, so icons track the system appearance instead of going stale after dark/light switches - measured first menu build after extension start: ~55ms down to ~12ms; steady state unchanged (~0.5ms)
- add opensContainingDir per-app toggle on AppMenuItem (nil = follow the preset terminal classification) - mark the nine preset terminal apps with isTerminal and expose terminalBundleIDs plus shared resolveOpenTargets in AppPresets - host ActionService.openApp resolves targets via the shared helper so terminal apps receive the file's containing directory, while editors and Git clients keep opening the file itself
- restore offline graying for app items: a sandboxed extension calling NSWorkspace.open with a file URL triggers a TCC prompt, so launching the host from the fast path stays reserved for the bare no-document case - make the offline hint two-liner clickable to relaunch the host app quietly via OpenConfiguration.environment RC_QUIET_LAUNCH=1 - suppress the SwiftUI Window scene auto-open at launch (.defaultLaunchBehavior(.suppressed), restorationBehavior disabled, applicationShouldRestoreWindowState=false) - open the settings window on manual opens (no RC_QUIET_LAUNCH and not a login-item boot launch, i.e. LaunchAtLogin.isEnabled && uptime < 180s) and on re-opens of an already running app via applicationShouldHandleReopen; the request rides a notification handled by a MenuBarExtra label relay view, which exists from launch unlike the lazily built menu content
…ing app The offline hint can stay visible while the host app is already running (quit teardown takes ~1s; menu refresh lags startup by 1-2s). In that window LaunchServices ignores OpenConfiguration.environment and only dispatches a reopen event, so the app opened the settings page. - FinderSyncExt touches a marker file in the shared App Group container before launching the host (HintClickLaunch.mark) - the host checks marker recency on both launch paths: fresh launch treats it like RC_QUIET_LAUNCH, and applicationShouldHandleReopen skips posting openSettingsRequested - use a container file rather than a UserDefaults suite: the suite maps to different files for the sandboxed extension and the unsandboxed host, while the group container is the one space both sides share
SonneFish
marked this pull request as ready for review
October 29, 2026 06:47
…label color hudWindow rendered light in light mode while the label was fixed white, making the hint unreadable. Switch to the appearance-following popover material with dynamic labelColor so background and text track the same effective appearance in both modes.
… names Long app names (e.g. Visual Studio Code) squeezed the trailing checkboxes, wrapping "Open Containing Folder" onto a second line. Give the toggles .fixedSize() so they keep their ideal width, and let the name/summary texts truncate with an ellipsis instead.
…dit sheet The app row no longer carries the third toggle, keeping the "Show In" section purely about visibility; the behavior option lives in the edit sheet where all config is one screen. The sheet keeps its fixed height, with a persistent scrollbar added so users can tell more options exist below the fold.
Owner
|
Unit tests failed ,please update unit tests |
Owner
结论:Request changes感谢这个 PR。根因分析(心跳 → 但有几处必须先修;另外 CI 目前是 阻塞
应修
流程
我做的验证
|
Owner
流程建议
|
# Conflicts: # .gitignore # RClick/Localizable.xcstrings
This was referenced Nov 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
已拆分提交
按维护者建议,本 PR 的内容已拆分为四个直接面向
dev的独立 PR:四个分支均已独立构建和测试;按上述顺序组合无冲突,组合后的构建和 68 项测试通过。新 PR 暂为 Draft,GitHub Actions 等待维护者 Approve and run;签名 App 的手工验证项列于各 PR。
本 PR 由上述四个 PR 替代,关闭并保留原评审历史。
摘要
优化 Finder 菜单图标缓存与心跳通信,新增应用预设、按应用控制工具栏/右键菜单可见性、图标样式及终端应用打开所在目录选项;同时修正权限页和主程序启动/重开行为。
已同步上游
dev,沿用 #163 合入的永久删除确认流程(默认开启)。此 PR 不改变签名、Sandbox 或 CI 配置。验收标准
applicationShouldRestoreWindowState回调,窗口恢复由 SwiftUI scene 配置控制。验证计划
xcodebuild build-for-testing编译应用、Finder 扩展和全部测试目标成功(arm64,关闭签名)。python3 scripts/check-localization.py --languages es fr ja zh-Hans:两个 catalog 全部通过。git diff --check通过。e8f75dc上完成构建与测试:run 41401393859 为action_required,等待上游维护者 Approve and run,尚未执行测试。风险
本机 Xcode 的测试宿主在执行测试前退出(early unexpected exit),所以本地测试通过证据来自临时 library 宿主,不能替代签名 App 的端到端验证。登录启动仍使用“已启用登录项且系统 uptime < 180 秒”的启发式;启动窗口与 TCC/Finder 的实际行为需要上述手工检查。原 PR 的性能测量未在本次修复后重测。
致谢
应用预设目录、none/simple/original 图标样式和终端打开所在目录行为参考 OpenInTerminal。感谢维护者的逐项评审。