feat(plugins): a model settings field — any model or agent preset — plus machine pickers, units, groups and a readable Status #64
Closed
gabrielvidal
wants to merge 0 commits from
model-field into main
pull from: model-field
merge into: gabrielvidal:main
gabrielvidal:main
gabrielvidal:unfinished-conversations
gabrielvidal:conversation-chain
gabrielvidal:llm-proxy-harbor
gabrielvidal:llm-proxy
gabrielvidal:worker-macos-app
gabrielvidal:macos-app-hub
gabrielvidal:macos-app-signin
gabrielvidal:promote-child-conversation
gabrielvidal:unsend-message
gabrielvidal:fix/link-rotation-race
gabrielvidal:bots-plugin-exploration
gabrielvidal:live-group-current-action
gabrielvidal:mobile-drawer-toast
gabrielvidal:pi-steer
gabrielvidal:pi-on-workers
gabrielvidal:preset-machine-split
gabrielvidal:tasks-plugin
gabrielvidal:conversation-titles
gabrielvidal:card-icon-beside-title
gabrielvidal:worktrees-cli
gabrielvidal:worktrees-plugin
gabrielvidal:agent-presets
gabrielvidal:no-plugin-white-flash
gabrielvidal:agy-tasks
gabrielvidal:home-declutter
gabrielvidal:perf-plugin-batching
gabrielvidal:fresh-context-plugin
gabrielvidal:remove-hooks-page
gabrielvidal:palette-plugins
gabrielvidal:linear-projects
gabrielvidal:agent-messaging
gabrielvidal:model-router
gabrielvidal:conv-card-layout
gabrielvidal:ask-more-options
gabrielvidal:agent-limits
gabrielvidal:generic-ui-strings
gabrielvidal:android-push-bridge
gabrielvidal:auto-translate
gabrielvidal:filter-chips
gabrielvidal:plugin-catalog
gabrielvidal:file-viewers
gabrielvidal:plugins-page-rework
gabrielvidal:hub-mcp-plugin
gabrielvidal:translation-plugin
gabrielvidal:scheduled-doors
gabrielvidal:cron-jobs-plugin
gabrielvidal:context-skills-plugin
gabrielvidal:files-plugins
gabrielvidal:worker-names
gabrielvidal:details-panel-perf
gabrielvidal:services-plugin-only
gabrielvidal:fix-test-env-leaks
gabrielvidal:bg-shells-plugin
gabrielvidal:feat-commits-plugins
gabrielvidal:fix-branch-line-tag-rows
gabrielvidal:retire-dead-leftovers
gabrielvidal:runner-into-harness-pi
gabrielvidal:retire-tool-proxy
gabrielvidal:new-project-policy-plugin-only
gabrielvidal:guest-jobs-sonnet
gabrielvidal:push-buttons-everywhere
gabrielvidal:mail-send-plugin
gabrielvidal:ui-polish-batch
gabrielvidal:command-palette-plugin
gabrielvidal:keyboard-shortcuts-plugin
gabrielvidal:prompt-shortcuts-plugin
gabrielvidal:matomo-site-grants
gabrielvidal:lab-chrome-plugin
gabrielvidal:performance-plugin
gabrielvidal:whats-new-plugin
gabrielvidal:skills-agents-plugin
gabrielvidal:goals-plugin-only
gabrielvidal:storage-server-side
gabrielvidal:plugin-scheduled-conversations
gabrielvidal:plugin-fences
gabrielvidal:handoff-plugin
gabrielvidal:plugin-commands
gabrielvidal:plugin-speed
gabrielvidal:cleanup-provider-harness
gabrielvidal:plugin-conversation-labels
gabrielvidal:plugin-plan-usage
gabrielvidal:fix-worker-harness-sync
gabrielvidal:plugin-gcloud-reauth
gabrielvidal:feat/plugin-cards-in-thread
gabrielvidal:feat/plugin-proxy-wake
gabrielvidal:unify-subagents-children
gabrielvidal:wave3d-frontend-typed-plugins
gabrielvidal:wave3c-sidecar-strict-plugins
gabrielvidal:wave3a-catalog-accounts-profiles
gabrielvidal:wave3b-pricing-usage-cutover
gabrielvidal:wave1a-typed-plugins
gabrielvidal:wave1b-sidecar-runtime
gabrielvidal:fix-ios-overlay-scroll
gabrielvidal:batch2-work-resources-core
gabrielvidal:batch2-apikeys
gabrielvidal:plugin-blue-green-deploy
gabrielvidal:plugin-ship
gabrielvidal:plugin-project-env
gabrielvidal:plugin-memories
gabrielvidal:plugin-activity
gabrielvidal:plugin-templates
gabrielvidal:plugin-desk-phone
gabrielvidal:batch1-platform
gabrielvidal:plugins-list-view
gabrielvidal:dash-plugins
gabrielvidal:pets-plugin
gabrielvidal:ha-push-channel
gabrielvidal:mail-agents
gabrielvidal:graph-fix
gabrielvidal:graph-plugin
gabrielvidal:services-plugin
gabrielvidal:left-to-do-plugin
gabrielvidal:plugins-gallery
gabrielvidal:home-conv-menu
gabrielvidal:meta-business
gabrielvidal:agy-rdrand
gabrielvidal:bg-lag
gabrielvidal:conv-load-perf
gabrielvidal:askform-instant
gabrielvidal:fix/drawer-menu-done-chip
gabrielvidal:pi-midrun-compaction
gabrielvidal:interrupt-menu-btn
gabrielvidal:authz
gabrielvidal:inkling
gabrielvidal:repo-plugins
gabrielvidal:work-sync
gabrielvidal:leftovers
gabrielvidal:fix/agy-guest-guard
gabrielvidal:feat/model-presets
gabrielvidal:scroll-back
gabrielvidal:feedback-bell
gabrielvidal:feat/movies-tool
gabrielvidal:feat/running-thread-padding
gabrielvidal:feat/drawer-filter-button-card-chat
gabrielvidal:burn-rate
gabrielvidal:guest-install
gabrielvidal:guest-usage
gabrielvidal:guest-palette
gabrielvidal:guest-form-links
gabrielvidal:form-open-buttons
gabrielvidal:clarifier-lean
gabrielvidal:auto-archive
gabrielvidal:guests-profile
gabrielvidal:conv-motion
gabrielvidal:share-target
gabrielvidal:terminal-sync
gabrielvidal:work-context-past
gabrielvidal:work-context-brief
gabrielvidal:enroll-codes
gabrielvidal:open-image-file
gabrielvidal:worker-uploads
gabrielvidal:conv-drawer-search
gabrielvidal:stack-motion-v3
gabrielvidal:notif-stack-fixes
gabrielvidal:home-motion
gabrielvidal:i18n-fr
gabrielvidal:local-electricity-cost
gabrielvidal:cache-pill-thread
gabrielvidal:cache-scenarios
gabrielvidal:fresh-start
gabrielvidal:msg-select
gabrielvidal:shortcuts-setup
gabrielvidal:ui-0-40-3
gabrielvidal:outbox-landing
gabrielvidal:resume-scope
gabrielvidal:conv-filter-range
gabrielvidal:fix-subagent-form-session
gabrielvidal:ask-form-integration
gabrielvidal:form-visual-options
gabrielvidal:watcher-perf
gabrielvidal:last-msg-summary
gabrielvidal:secret-fields
gabrielvidal:commit-review
gabrielvidal:summary-mode-fixes
gabrielvidal:service-tag-parser
gabrielvidal:clarifier
gabrielvidal:fetch-diet-2
gabrielvidal:fetch-diet
gabrielvidal:conv-look
gabrielvidal:pwa-links
gabrielvidal:tool-widgets
gabrielvidal:worker-autoupdate
gabrielvidal:usage-rings
gabrielvidal:opencode-harness
gabrielvidal:notif-diet
gabrielvidal:conv-resources
gabrielvidal:scheduled-tasks
gabrielvidal:profiles
gabrielvidal:notify-exact-cost
gabrielvidal:usage-measuring
gabrielvidal:guest-projects
gabrielvidal:usage-calibration
gabrielvidal:account-switch
gabrielvidal:multiuser-improve
gabrielvidal:form-groups
gabrielvidal:multiuser
gabrielvidal:motion-reel
gabrielvidal:dashboards-fixes
gabrielvidal:split-big-files
gabrielvidal:held-regex
gabrielvidal:subagent-interrupts
gabrielvidal:form-html
gabrielvidal:tokunia-video
gabrielvidal:settings-uniform
gabrielvidal:worker-ask-fix
gabrielvidal:worker-generic-mac
gabrielvidal:runner-shortcuts
gabrielvidal:notify-unify
gabrielvidal:perf-list-cache
gabrielvidal:mac-worker
gabrielvidal:model-switch
gabrielvidal:pipeline-paths
gabrielvidal:multi-account
gabrielvidal:feature-flags
gabrielvidal:qwen38-support
gabrielvidal:url-prompt
gabrielvidal:running-pages
gabrielvidal:homelab-tag
gabrielvidal:root-project
gabrielvidal:or-models
gabrielvidal:deploying-loader
gabrielvidal:worktree-diff
gabrielvidal:conv-tags
gabrielvidal:tags-page
gabrielvidal:agents-page
gabrielvidal:icon-picker-shortcuts
gabrielvidal:conv-cta
gabrielvidal:stamp-refine
gabrielvidal:post-task-cache
gabrielvidal:post-tidy-completed
gabrielvidal:form-badge
gabrielvidal:hooks-delay-seconds
gabrielvidal:cost-dashboard
gabrielvidal:plan-forms
gabrielvidal:form-mobile
gabrielvidal:guidelines-dag
gabrielvidal:skills-view
gabrielvidal:navbar-hold
gabrielvidal:spawnbox-status
gabrielvidal:hold-editable-expand
gabrielvidal:drawer-transparent
gabrielvidal:hold-fix
gabrielvidal:hold-editable
gabrielvidal:charroll-bump
No Reviewers
Labels
No items
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Assignees
gabrielvidal (Gabriel Vidal)
Clear assignees
No Assignees
gabrielvidal
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gabrielvidal/ai-agent#64
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
A plugin that uses a model now gets one generic settings field for it:
"type": "model"takes any model or agent preset as one value (preset:<id>or a Settings → Models key), drawn with the composer's picker. Before, plugins asked for a free-text model (sonnet) and Agent presets kept a separate per-plugin preset that never applied: auto-ship, auto-translate and approvals always send a harness, so their source default was dead. The same PR improves the declarative settings page for every plugin: machines picked by name, number units, section headings, and a readable Status card instead of raw JSON. It also lets anapp.modalopt into the command palette (auto-ship's Ship now).Ship it in the same batch as #62 (conversation-titles, which merges cleanly on its own; this branch contains it, so merging this one lands #62 too — either order works) — built on it (
complete.runpresets,run_router.sources()). It pairs with ai-agent-plugins #62, which needs this core first (its manifests use the new field types).Key changes
backend/plugins/manifest.py: field typesmodel(uses: runs|complete,effortKey),worker,workers;unit,group,placeholderextras (written only when set);ui.settingsHtmlFirst;app.modalslots'palette.check_config()validates the typed values on save (PUT /api/plugins/{id}→ 400 naming the field).backend/models/presets.py:route_key(value): a model key or listed id →{key, harness, model, effort}, as the composer's pick runs it (an exact pair id such asevox2/qwen…wins).backend/plugins/hubruns.py:with_model_route(): aruns.startbody with a model and no harness gets the key's harness and preset effort. Presets, unlisted models and bodies naming a harness are unchanged.backend/plugins/hubcomplete.py:model_value():model: "preset:<id>"is that preset; a bare key gets its harness.backend/plugins/run_router.py:model_fields();sources()carries each plugin's model fields with their current value. Acomplete.runplugin with a model field is a source.PluginModelField(Presets / Models tabs, a Default reset, effort chips for a plain model),PluginWorkersField(machine chips by name; an unknown id stays visible, struck through),PluginStatusCard, andPluginSettingsPagedrawing groups, units and the custom view first when asked.business/keyboard/commands.tslistspalette: truemodals.docs/plugins.md: new Settings fields section.backend/core/i18n_keys/ui.jsonregenerated.Key decisions
runs.start/complete.run, so every plugin gets the same "the model decides its harness" behaviour as the composer.Changelog
Test notes
test_plugin_model_field.py(20 tests: manifest types and refusals,check_config,route_key,with_model_route,model_value, sources). The touched modules' suites pass (test_hubcomplete,test_run_router,test_i18n, everytest_plugin*/test_hub*), run per module under bwrap with a throwaway/data.test_typed_pluginsfails with the same git-clone error onmain.tscclean. Full vitest: 190 files, 1244 tests pass afterUPDATE_I18N_KEYS=1. The newPluginModelField.test.tsxcovers value labels, the Status card and palette modals.ai-agent-deploy), then reload the plugins from the paired PR.🤖 Generated with Claude Code
Screenshots
- settings.fields[].type model (uses runs|complete, effortKey), worker, workers; unit on numbers, group headings, placeholder; a save checks the typed values (manifest.check_config, PUT /api/plugins/{id} → 400) - runs.start: a model key without harness runs where Settings → Models puts it (hubruns.with_model_route → models.presets.route_key); complete.run takes model: "preset:<id>" and a bare key the same way (hubcomplete.model_value) - run_router.sources(): each plugin's model fields with their value, for Agent presets' Plugins that use a model - settings page: PluginModelField (Presets / Models tabs, effort chips), PluginWorkersField, PluginStatusCard (message + count chips, JSON behind Details), ui.settingsHtmlFirst - an app.modal slot with palette: true is listed by the command palette - docs/plugins.md: Settings fields section; tests Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>Merged into
mainas82ed859bby the auto-ship batch https://ai-agent.lab.gabvdl.xyz/conversation/01a2390d-9150-7154-a571-1e75ba9e953f.Pull request closed