Skip to content

Verify the fm CLI argv against the real binary when macOS 27 ships #366

Closed

Description

@currentbits

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).

Activity

  1. added
    plan:doing
    and removed
    plan:todo
    on Oct 24, 2026
  2. currentbits commented on Oct 24, 2026

    @currentbits
    OwnerAuthor

    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:

    1. fm respond --help: confirm the flag order and whether a prompt starting with - needs a -- terminator.
    2. 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.
    3. If 1 and 2 look clean, drop CODER_FM_ARGS.
  3. added
    plan:done
    and removed
    plan:doing
    on Oct 24, 2026
  4. currentbits commented on Oct 24, 2026

    @currentbits
    OwnerAuthor

    Landed from Solenta thread "Verify the fm CLI argv against the real binary when macOS 27" (PR #1706). Closed on merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    plan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions