Files
PaperClipAI/ui/src/components
DottaandPaperclip 8f542b3c9b fix(ui): show Antigravity and Copilot as first-class harnesses in agent runtime settings (#23042)
## Thinking Path

> - Paperclip is the open source app people use to manage AI agents for
work
> - The Harness / Runtime settings page (`/agents/:id/runtime`) lets
people choose or change an agent's harness, model, AI connection, and
execution environment
> - Qualified native ACPX harnesses (`antigravity_runtime` and
`copilot_runtime`) appeared in the New Agent wizard, but
`AdapterTypeDropdown` in `AgentConfigForm` only listed top-level UI
adapters plus `openai_dot` and `muse`
> - People configuring an agent on `/agents/:id/runtime` could not find
Google Antigravity or GitHub Copilot in the Harness dropdown, and
existing Antigravity agents displayed as `Paperclip Runner` instead of
their own harness and logo
> - This pull request exposes qualified `antigravity_runtime` and
`copilot_runtime` entries directly in `AdapterTypeDropdown`, hides the
redundant inner Runner/ACP pickers when selected, and persists the
native `paperclip_runner` ACPX configuration cleanly
> - The benefit is that people can configure and switch agents to
Antigravity or Copilot directly from `/agents/:id/runtime` across local,
Daytona, and Unikraft environments

## Linked Issues or Issue Description

**What existing behavior does this improve?**
Harness selection and display on the agent Harness / Runtime settings
page (`/agents/:id/runtime`).

**Subsystem affected**
UI: `AgentConfigForm` (`AdapterTypeDropdown`) and `AdapterMark`
(`ui/src/components/`).

**Current behavior**
The Harness dropdown on `/agents/:id/runtime` omits Google Antigravity
(`antigravity_runtime`) and GitHub Copilot (`copilot_runtime`). Existing
Antigravity agents show `Paperclip Runner` with nested `ACP agents`
pickers instead of `Google Antigravity` with its logo.

**Proposed behavior**
Qualified native ACPX harnesses (`Google Antigravity` and `GitHub
Copilot`) appear directly in the Harness dropdown with their logos,
gated by qualification, server adapter disablement, and Cloud
`availableHarnesses` policy. Selecting one persists `adapterType:
"paperclip_runner"` with `{ provider: "acpx", acpxAgent: "antigravity" |
"copilot", lifecycleMode: "per_turn" }`, exposes all supported
environments (including Daytona and Unikraft plugin computers), and
hides redundant inner Runner/ACP pickers.

**Reason and benefit**
Matches the New Agent picker so users configuring an agent from
`/agents/:id/runtime` see consistent harness choices, logos, model
pickers, and environment options without needing the experimental
`enableNativeRunner` flag.

**Breaking changes**
None. Existing `paperclip_runner` agent records keep the same schema and
stored `adapterConfig`.

## What Changed

- Added qualified `antigravity_runtime` and `copilot_runtime` options to
`AdapterTypeDropdown` in `ui/src/components/AgentConfigForm.tsx`,
respecting server `disabledTypes` and Cloud `availableHarnesses` policy
without requiring `enableNativeRunner`.
- Mapped saved `antigravity_runtime` and `copilot_runtime`
`paperclip_runner` agents to display as their dedicated harness in
`AdapterTypeDropdown`, hid redundant inner Runner/ACP pickers
(`hideRunnerHarness`), and guarded against no-op re-selection clearing
the current model.
- Handled selecting `antigravity_runtime` or `copilot_runtime` in create
and edit modes by setting `adapterType: "paperclip_runner"` and `{
provider: "acpx", acpxAgent, lifecycleMode: "per_turn" }`.
- Fixed a latent bug in `adapterPickerDisabledTypes` where
`disabledTypes` (an array from `useDisabledAdaptersSync`) was checked
with `.has(...)` instead of a `Set`.
- Added `copilot_runtime` light/dark brand icons to
`ui/src/components/AdapterMark.tsx`.
- Added render tests in
`ui/src/components/AgentConfigForm.render.test.tsx` covering Antigravity
selection, logo rendering, Daytona/Unikraft environment availability,
native ACPX save payload, and display of existing Antigravity agents.

## Verification

- `pnpm exec vitest run
ui/src/components/AgentConfigForm.render.test.tsx
ui/src/components/AgentConfigForm.test.ts
ui/src/adapters/codex-local/config-fields.test.tsx` — 58/58 passed.
- `pnpm exec vitest run ui/src/` — 578 test files (7,191 tests) passed.
- `pnpm --filter @paperclipai/ui typecheck` — passed (including
Storybook catalog check).

## Risks

- Low risk. UI-only harness selection change; server-side validation,
Cloud `availableHarnesses` enforcement, and stored `adapterConfig`
format remain unchanged.

## Model Used

- Google Gemini (Antigravity agent with tool use and code execution).

## Checklist

- [x] I have included a thinking path that traces from project context
to this change
- [x] I have specified the model used (with version and capability
details)
- [x] I have checked ROADMAP.md and confirmed this PR does not duplicate
planned core work
- [x] I have searched GitHub for duplicate or related PRs and linked
them above
- [x] I have either (a) linked existing issues with `Fixes: #` / `Closes
#` / `Refs #` OR (b) described the issue in-PR following the relevant
issue template
- [x] I have not referenced internal/instance-local Paperclip issues or
links (only public GitHub `#NNN` / `github.com/paperclipai/paperclip`
URLs)
- [x] My branch name describes the change (e.g. `docs/...`, `fix/...`)
and contains no internal Paperclip ticket id or instance-derived details
- [x] I have run tests locally and they pass
- [x] I have added or updated tests where applicable
- [x] I have updated relevant documentation to reflect my changes
- [x] I have considered and documented any risks above
- [ ] All Paperclip CI gates are green
- [ ] Greptile is 5/5 with no open P2s, recommendations, or follow-ups
- [x] I will address all Greptile and reviewer comments before
requesting merge

---------

Co-authored-by: Paperclip <noreply@paperclip.ing>
2026-11-26 13:12:44 +00:00
..