Skip to content

Make on-device fm housekeeping actually run on macOS 27 (#366) - #1706

Merged
currentbits merged 1 commit into
mainfrom
fm-respond-subcommand
Oct 24, 2026
Merged

currentbits merged 1 commit into
mainfrom
fm-respond-subcommand

Conversation

@currentbits

Copy link
Copy Markdown
Owner

On macOS 27, Solenta never actually used fm. Apple's CLI takes one-shot prompts as fm respond "<prompt>" (WWDC26 session 334), but we called fm "<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 is now invoked as fm respond [CODER_FM_ARGS…] <prompt>, with the prompt still last.
  • There is still no --model flag, so fm uses the on-device system model (free, works offline, no quota). PCC is opt-in through CODER_FM_ARGS="--model pcc".

Verification

  • node --test on fm, fm-title, distill, commitmsg, recap and ask: 99/99 pass, run with inherited CODER_* vars unset.
  • Not tested against a real fm binary: the dev Mac is on macOS 26.6.2. The argv comes from Apple's docs.

Notes for reviewers

  • I didn't add --instructions on purpose. Callers want different output shapes (JSON for distill, two lines for recap, prose for Ask), and each prompt already asks for its shape.
  • Verify the fm CLI argv against the real binary when macOS 27 ships #366 stays open for a real-binary pass on macOS 27: fm respond --help, error behaviour with Apple Intelligence off, offline or out of PCC quota, then drop CODER_FM_ARGS if nothing needs it.

🤖 Generated with Claude Code

…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]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-24T10:03:23.626688Z 47bd551 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@currentbits
currentbits merged commit 810872a into main Oct 24, 2026
6 checks passed
@currentbits
currentbits deleted the fm-respond-subcommand branch October 24, 2026 10:12
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