Skip to content

[codex] Add default app open target#51

Draft
brsbl wants to merge 1 commit into
ymichael:mainfrom
brsbl:codex/default-app-open-target
Draft

[codex] Add default app open target#51
brsbl wants to merge 1 commit into
ymichael:mainfrom
brsbl:codex/default-app-open-target

Conversation

@brsbl
Copy link
Copy Markdown

@brsbl brsbl commented May 26, 2026

Summary

Adds a generic macOS Default App workspace open target that delegates file opening to LaunchServices with open -- <path>. This lets Markdown files open in the user's configured default editor, such as Moss, instead of falling back to Finder when no allowlisted editor is installed.

Separates file-preview "Open in editor" behavior from workspace-opening preferences so a stored Finder workspace target does not control file editor opens when an editor-like target is available.

Root Cause

bb only offered explicit allowlisted open targets from the host daemon. On machines without one of those editors installed, the fallback target could be Finder, so file-preview editor buttons could focus Finder instead of opening Markdown in the configured default editor.

Update Notes

  • Rebased onto latest origin/main (8ca421ae).
  • Bumped HOST_DAEMON_PROTOCOL_VERSION to 25 so dev restart/stale-daemon detection notices the local contract enum change.

Validation

  • pnpm exec turbo run typecheck --filter=@bb/host-daemon-contract --filter=@bb/host-daemon --filter=@bb/app — passed, 3/3 packages.
  • pnpm exec turbo run test --filter=@bb/host-daemon-contract — passed, 32 tests.
  • pnpm exec turbo run test --filter=@bb/app — passed, 619 tests.
  • pnpm exec turbo run test --filter=@bb/host-daemon -- src/workspace-open-targets.test.ts — passed, 12 tests.

Note: full @bb/host-daemon package test was also attempted and hit unrelated integration timeout flakes; the touched host-daemon path is covered by the targeted workspace-open-target test above.

@brsbl brsbl force-pushed the codex/default-app-open-target branch from eac151c to 7c92fc3 Compare May 27, 2026 21:35
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