Skip to content

feat(computer-use): remove macOS Swift floating window - #1079

Merged
edenreich merged 1 commit into
mainfrom
feat/issue-1077
Aug 19, 2026
Merged

edenreich merged 1 commit into
mainfrom
feat/issue-1077

Conversation

@edenreich

@edenreich edenreich commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

Resolves #1077

Summary

Removes the macOS-only Swift floating window outright (no deprecation cycle). The desktop app's computer-use monitor, screen overlay, and approval surface (inference-gateway/desktop#135) are the visualization layer, consuming the headless control surface from #1074/#1075.

Changes

  • Deleted: internal/display/macos/ComputerUse/ (Swift app), the //go:embed + FloatingWindowManager lifecycle (manager.go, manager_stub.go, types.go), and the cmd wiring (floating_window_darwin.go, floating_window_stub.go)
  • Config: floating_window section removed from computer_use.yaml schema, defaults, and INFER_COMPUTER_USE_FLOATING_WINDOW_* env overrides. Existing config files with the old keys still load (yaml unmarshal is lenient; covered by a test fixture that keeps the removed keys)
  • Chat: control-event forwarding to Bubble Tea now gates on an EventBridge being present instead of the floating window; EventBridge itself stays (extension bridge / control surface use it)
  • Release workflow: Swift build step removed
  • CI: new build-macos job (macos-latest, plain go build) so darwin cgo code compiles in CI — the previous ubuntu-only matrix masked darwin breakage (see feat(computer-use): cross-platform AppProvider replacing macOS-only FocusManager #1078). Now trivial since the Swift embed is gone
  • README: points at the desktop app for visualization

Acceptance criteria

  • ComputerUse/ and cmd/chat.go wiring removed
  • floating_window dropped; unknown keys don't break config load (test-covered)
  • infer chat computer-use session verified against the mock gateway (model select, prompt, reply; 42 tools registered, no floating-window errors)
  • README no longer references the Swift window

Impacted repos

Docs

Filed: inference-gateway/docs#578

@edenreich
edenreich requested a review from a team as a code owner August 19, 2026 16:37
The desktop app's monitor, screen overlay, and approval surface
(inference-gateway/desktop#135) replace the CLI's macOS-only Swift
floating window, consuming the headless control surface from #1074/#1075.

- delete internal/display/macos/ComputerUse/ (Swift app), the embed and
  FloatingWindowManager lifecycle (manager.go, manager_stub.go, types.go),
  and the cmd wiring (floating_window_darwin.go, floating_window_stub.go)
- drop floating_window from computer_use config, env overrides, and
  defaults; unknown keys stay tolerated on load (covered by test fixture)
- chat: control-event forwarding to Bubble Tea now gates on an EventBridge
  being present instead of the floating window
- release workflow: remove the Swift build step
- CI: add a macos-latest build job so darwin cgo code compiles in CI
  (was ubuntu-only, which previously masked darwin breakage)
- README: point at the desktop app for visualization
@edenreich edenreich changed the title feat(computer-use)!: remove macOS Swift floating window feat(computer-use): remove macOS Swift floating window Aug 19, 2026
@edenreich
edenreich merged commit d0389fd into main Aug 19, 2026
1 check passed
@edenreich
edenreich deleted the feat/issue-1077 branch August 19, 2026 17:05
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.176.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@inference-gateway-releaser inference-gateway-releaser Bot added the released Shipped in a release label Aug 19, 2026
edenreich added a commit that referenced this pull request Aug 19, 2026
…#1080)

## Summary

Building the CLI via the nix flake on macOS has been broken since #1079:
the darwin `preBuild` still ran `build.sh` inside
`internal/display/macos/ComputerUse`, a directory that PR removed, so
`nix build` fails with `pushd: internal/display/macos/ComputerUse: No
such file or directory`. This breaks every consumer pinning the flake -
the desktop repo's flox dev environment cannot move past v0.175.0 until
this lands in a release.

## Changes

- Remove the darwin-only Swift build step (`pushd .../ComputerUse &&
bash ./build.sh`) and the `pkgs.swift` native build input.
- Remove the dead source-filter entry for
`internal/display/macos/ComputerUse/build`.
- Keep `pkgs.apple-sdk` and the `SDKROOT` export: the computer-use cgo
code still links AppKit (`client_darwin.go`) and ApplicationServices
(`controller_darwin.go`), and hermetic nix builds cannot see the system
Xcode SDK.

Verified with a hermetic `nix build .#` on aarch64-darwin at this
commit: `result/bin/infer` reports `infer version 0.176.0`.

no docs ticket: internal-only build fix

## Cross-repo impact

- `inference-gateway/desktop`: unblocks bumping the flox pin
(`.flox/env/manifest.toml`) past v0.175.0 once this ships in the next
release.
edenreich added a commit that referenced this pull request Nov 3, 2026
… handshake (#1685)

## Summary

The daemon binding's handshake carried a `protocol_version` on the
`hello` and echoed `2` in the ack, but the CLI never enforced it: any
hello with a valid token was accepted, a missing field was only logged.
This drops it from the hello every CLI client sends (TUI, daemon
subcommands, subagents, peer daemons), from the ack, from the
missing-field warning and the connect/disconnect log fields, and from
`docs/browser-extension-protocol.md` and `docs/ag-ui-output.md`.

The `protocol_version: 1` inside `browser_extension_status` is that
frame's own schema version and stays.

Closes #1684

## Cross-repo

- inference-gateway/opentask#248: the extension stops sending and
reading the handshake version. Until it lands, an extension that treats
a missing ack version as unsupported shows its update state against this
CLI.
- inference-gateway/docs#1079: the opentask page drops the handshake
examples' `protocol_version`.

no docs ticket beyond #1079: internal-only refactor of the handshake.

## Tests

`TestBindingAcksAHelloOfAnyClientKind` checks the ack is the type alone,
the hello-attr test now reads `extension_version`, and the e2e daemon
test no longer asserts the ack version.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[TASK] Remove the macOS Swift floating window - desktop app is the visualization layer

1 participant