feat(host-service): seed pdev like any other agent preset
Summary
Cloud workspaces ship the pdev binary (since #8700), but no host ever offers pdev: hosts seed agent presets only when their table is empty, and the seed list skipped presets gated by a feature flag, because a host cannot read flags. pdev could only be added by hand in Settings → Agents, which talks to the local host only, so a cloud box never got a pdev row.
This seeds pdev like any other preset. Clients already hide flagged rows while the flag is off: useV2AgentConfigs on desktop and useHostAgentConfigs on mobile, both since #8538 (desktop v1.39.0).
Who sees what
- New hosts and every cloud box forked from the next golden get a pdev row.
- Users without
pdev-agenton desktop ≥ 1.39 or current mobile: no change, the row stays hidden. - Existing hosts with a populated table: unchanged, since seeding only runs on an empty table (or on reset).
- Not filtered: CLI
agents listand the MCPagents listtool show the row, and desktop builds older than 1.39 would list it as a plain agent.
Testing
packages/shared: 1378 tests pass, including the updated pdev seeding test.packages/host-servicesettings router tests pass, with the old "does not seed pdev" test inverted.- Verified the box side before this change: a cloud workspace created on 2026-10-22 has
/usr/local/bin/pdev→ 0.2.1 on bundle4f413d5a21aa.
Rollout
New boxes pick this up once the sandbox release rebuilds the golden with this host-service (on merge or nightly).
Summary by cubic
Seeds the pdev agent preset like any other host agent preset, so cloud boxes can offer the pdev binary they already ship. Previously hosts skipped flag-gated presets because they can't read feature flags, so pdev never appeared in a cloud host's agent list and had to be added by hand.
Clients already hide the pdev row while the pdev-agent flag is off, so desktop ≥ 1.39 and current mobile users see no change. The CLI and MCP agents list tools will show the row, and desktop builds older than 1.39 would list it as a plain agent. Existing hosts with a populated table are unchanged, since seeding only runs when the table is empty.
Summary by CodeRabbit
- New Features
- Host environments now include feature-flagged agent presets, including pdev, in their default preset list. These presets remain hidden in clients when their feature flag is off.
- Bug Fixes
- Updated preset behavior so pdev is seeded for hosts while remaining excluded from the default terminal preset list.