Repository navigation
Make on-device fm housekeeping actually run on macOS 27 (#366) - #1706
Merged
Merged
Conversation
…ally runs (#366) macOS 27's fm takes one-shot prompts as `fm respond "<prompt>"` (WWDC26 session 334). We invoked `fm "<prompt>"`, which would exit non-zero on every call and silently fall back. CODER_FM_ARGS now sits between `respond` and the prompt (e.g. "--model pcc"); the prompt stays last. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
On macOS 27, Solenta never actually used
fm. Apple's CLI takes one-shot prompts asfm respond "<prompt>"(WWDC26 session 334), but we calledfm "<prompt>", so every call would exit non-zero. Commit subjects, titles, recaps, distill and Ask then fell back to the paid CLI path without saying so. Refs #366.Changes
fm respond [CODER_FM_ARGS…] <prompt>, with the prompt still last.--modelflag, so fm uses the on-devicesystemmodel (free, works offline, no quota). PCC is opt-in throughCODER_FM_ARGS="--model pcc".Verification
node --teston fm, fm-title, distill, commitmsg, recap and ask: 99/99 pass, run with inheritedCODER_*vars unset.fmbinary: the dev Mac is on macOS 26.6.2. The argv comes from Apple's docs.Notes for reviewers
--instructionson purpose. Callers want different output shapes (JSON for distill, two lines for recap, prose for Ask), and each prompt already asks for its shape.fm respond --help, error behaviour with Apple Intelligence off, offline or out of PCC quota, then dropCODER_FM_ARGSif nothing needs it.🤖 Generated with Claude Code