You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Verify the fm CLI argv against the real binary when macOS 27 ships #366
electron/fm.js (#340) was written before macOS 27 existed, so buildFmArgs could not be run against the real fm. It currently passes the prompt as a single positional argument, last, matching the convention every provider in providers.js follows.
The guess is isolated: CODER_FM_ARGS prepends flags, so a wrong guess is an env var rather than a release. But it needs one real pass:
run fm --help and fold the actual invocation into buildFmArgs
confirm how it reports being offline / falling back to Private Cloud Compute, and that those paths still exit non-zero or print nothing rather than emitting an error string we would mistake for a commit subject
check whether the on-device model needs a system-prompt flag to stop it explaining itself, since both callers take only the first line
drop CODER_FM_ARGS if it turns out to be unnecessary
Blocked until macOS 27 is installable (Sept 2026).
Partial pass. The dev Mac is still on macOS 26.6.2 with no fm, so this is checked against Apple's docs (WWDC26 session 334), not against the real binary.
The old guess was wrong. One-shot use is fm respond "<prompt>". We called fm "<prompt>" with no subcommand, so every call would have exited non-zero and silently fallen back. Fixed on branch coder/verify-the-fm-cli-argv-against-the-real--4e56f0: argv is now ["respond", ...CODER_FM_ARGS, prompt], with the prompt still last.
What the docs show:
--model pcc is opt-in. The default is the on-device system model (free, works offline, no quota), so we never fall back to PCC silently.
--instructions "<text>" exists. I didn't add it: callers now want different output shapes (JSON for distill, two lines for recap, free prose for Ask), and each prompt already says what it wants.
There's also fm serve, an OpenAI-compatible server on 127.0.0.1:1976. That's not needed here.
Still needs someone on macOS 27:
fm respond --help: confirm the flag order and whether a prompt starting with - needs a -- terminator.
Run with Apple Intelligence off, offline with --model pcc, and with the PCC quota used up. Each should exit non-zero (or print nothing) and must not put an error on stdout with exit 0.
Activity
currentbits commentedon Oct 24, 2026
Partial pass. The dev Mac is still on macOS 26.6.2 with no
fm, so this is checked against Apple's docs (WWDC26 session 334), not against the real binary.The old guess was wrong. One-shot use is
fm respond "<prompt>". We calledfm "<prompt>"with no subcommand, so every call would have exited non-zero and silently fallen back. Fixed on branchcoder/verify-the-fm-cli-argv-against-the-real--4e56f0: argv is now["respond", ...CODER_FM_ARGS, prompt], with the prompt still last.What the docs show:
--model pccis opt-in. The default is the on-devicesystemmodel (free, works offline, no quota), so we never fall back to PCC silently.--instructions "<text>"exists. I didn't add it: callers now want different output shapes (JSON for distill, two lines for recap, free prose for Ask), and each prompt already says what it wants.fm serve, an OpenAI-compatible server on 127.0.0.1:1976. That's not needed here.Still needs someone on macOS 27:
fm respond --help: confirm the flag order and whether a prompt starting with-needs a--terminator.--model pcc, and with the PCC quota used up. Each should exit non-zero (or print nothing) and must not put an error on stdout with exit 0.CODER_FM_ARGS.Call fm through its respond subcommand so on-device housekeeping actu…
currentbits commentedon Oct 24, 2026
Landed from Solenta thread "Verify the fm CLI argv against the real binary when macOS 27" (PR #1706). Closed on merge.