Repository navigation
Conversation
- Introduced AcpModelEffortFields component for model and effort selection in agent detail and creation dialogs. - Updated agent detail and create agent dialog to manage model and effort state. - Enhanced agent API to support acp_model and acp_effort fields. - Modified database schema to include acp_model and acp_effort columns in agents table. - Added necessary translations for model and effort labels in multiple languages. - Updated relevant services and repositories to handle new fields.
There was a problem hiding this comment.
ℹ️ No critical issues — one minor UI note inline, plus a docs gap below.
Reviewed changes
- ACP bridge plumbing —
acpclientnow exposesSessionInfo/ConfigOption,SetConfigOption, and the unstableSetModel;SpawntakesextraEnv;provider.ModelEnvinjectsANTHROPIC_MODELforclaude-code; the runner applies model/effort aftersession/new, best-effort. - API and persistence —
acp_model/acp_effortadded to theagentstable (migration000079) and threaded through domain, DTO, handler, repository, and the agent-runner dispatch payload. - Web UI — new
AcpModelEffortFieldswired into agent detail and the create dialog, with dirty-tracking, payload updates, and translations in all locales. - Docs —
docs/architecture/database-schema.mdupdated.
ℹ️ Sibling agent docs left stale
docs/ai-agent/database-schema.md states it "reflects the actual current schema", but its agents DBML still omits acp_model/acp_effort, and docs/ai-agent/api-design.md's agent request/response examples do not mention them. Since this PR updated docs/architecture/database-schema.md, the duplicated ai-agent copy now diverges from it.
Technical details
# Stale sibling docs
## Affected sites
- `docs/ai-agent/database-schema.md:69-70` — `agents` DBML lists `acp_provider`/`acp_command` only.
- `docs/ai-agent/api-design.md:37,79` — agent response/create examples omit the new optional fields.
## Required outcome
- The `ai-agent` copies describe the same `agents` columns and API fields as `docs/architecture/database-schema.md`.deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Corrected the
EFFORT_LEVELScomment so it no longer claims the hard-coded list is a superset, and documented that agent-defined effort values may fall outside it. - Appended a stored
acp_effortthat is missing fromEFFORT_LEVELSas an extraSelectItem, so a value set via the API now renders in the selector instead of appearing blank. - Documented
acp_model/acp_effortin theagentsDBML ofdocs/ai-agent/database-schema.mdand in the ACP create/update notes ofdocs/ai-agent/api-design.md, bringing the sibling docs in line withdocs/architecture/database-schema.md.
Both points from the previous review are addressed: the selector now represents any stored effort value at its minimum bar, and the duplicated ai-agent docs no longer diverge on the new fields.
deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
ℹ️ No critical issues — one API-docs sentence is now stale after this commit's new validation.
Reviewed changes
- Added API-side normalization/validation for
acp_model/acp_effort(trim, ≤200 bytes, reject control characters) with a newAGENT_ACP_MODEL_INVALIDerror, code, and unit test. - Made
ConfigOptionForprefer the spec'scategorymatch over the id fallback, so a colliding id can no longer win, plus a regression test. - Refreshed the agent's model/effort on the conversation's retained state every turn, so an idle-respawned session picks up edits, plus a test.
- Passed
provider.ModelEnv(ANTHROPIC_MODEL) intoSpawn, so the Claude model override is actually applied instead of only logged. - Dropped the duplicated
thought_levelid in the effort lookup and associated the effortLabelwith its select trigger viaid/htmlFor.
deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏
…dation for ACP agents
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Corrected the
acp_model/acp_effortnote indocs/ai-agent/api-design.md: it now states that Paca trims both values and rejects ones over 200 bytes or containing control characters with400 AGENT_ACP_MODEL_INVALID, while provider-specific acceptance remains the agent's job — matchingnormalizeACPModelEffort.
The docs thread from the previous review is addressed and resolved.
deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏

Summary
Lets a user set an optional model and reasoning effort on an ACP agent. Both are stored on the agent and applied by
paca-acp-bridgewhen it starts a session. Leaving either empty keeps the provider's own default.Changes
Database / API
000079_add_acp_model_effort.sqladdsacp_modelandacp_effort(TEXT NOT NULL DEFAULT '') toagents; documented indocs/architecture/database-schema.md.acp_model/acp_effortare accepted on create and update (project and global agents) and returned on the agent. On update,nilmeans unchanged and""clears the value; values are trimmed.Agent-runner
start_turnmessage sent to the bridge (acp_model,acp_effort).paca-acp-bridgethought_level/effortconfig option, passed as entered.claude-codeprovider: passed asANTHROPIC_MODELin the adapter's environment (provider.ModelEnv). The Claude adapter only accepts models from its own list through ACP (Invalid value for config option modelotherwise), whereas the Claude CLI accepts any model name from this variable. This is what makes custom names work with a non-AnthropicANTHROPIC_BASE_URL, and it takes precedence overmodelin~/.claude/settings.json.session/set_model, with the value passed as entered.acpclient.Spawntakes extra environment entries; newNewSessionInfo,SetConfigOptionandSetModel.NewSessionis unchanged.Web
AcpModelEffortFields, used by the create-agent dialog and the agent detail page: a free-text Model input and an Effort select (Provider default, Low, Medium, High, Extra high, Max).Notes for reviewers
ANTHROPIC_BASE_URL/ANTHROPIC_AUTH_TOKENfrom its shell.Testing
go testforapps/acp-bridge,services/apiandservices/agent-runner; webtsc -b,biomeandvitest(i18n and agents)."model": "claude-sonnet-5-5"and"output_config": {"effort": "medium"}(andlowwhen set to low).