Repository navigation
Labels
enhancementNew feature or request
Description
What problem does this solve?
Driving tole acp from a GUI ACP host (Termul, Zed) today is all-or-nothing:
- Approval fatigue: every Write tool call surfaces a
session/request_permissionprompt offering onlyallow_once/reject_once. A multi-step task means approving the same tool a dozen times. The only escape hatches are process-start flags (--yes,--allow,--trust) or theTOLE_TRUSTenv — none of which the human in the editor can change mid-session. - No model choice: the model is whatever
TOLE_MODELwas in the agent process env. Hosts that render a model picker (Termul does) show nothing because tole never advertises one; switching model means editing the agent entry and restarting the session.
ACP ≥ 0.14 has a first-class mechanism for exactly this — session config options (configOptions on the session response, session/set_config_option, category model/mode/thought_level) — and Termul already renders it (model picker + mode selectors derive from configOptions).
Proposed solution
Two PRs, one issue:
PR 1 — model picker (config option model)
TOLE_MODELSenv (comma-separated model ids) makessession/new/session/loadreturn aconfigOptionsentry:{id: "model", name: "Model", category: "model", type: "select", currentValue, options[]}. Unset → nothing advertised (today's behavior, picker stays hidden).session/set_config_optionvalidates the value against the list and persists it as afact/modelregister write — the sanctioned append-only mutable state — sorun_session_turn(shared withtole serve) applies it when building the provider, andsession/loadin a fresh process restores the rightcurrentValue(resume parity).- The active model is always a member of the advertised list (prepended if
TOLE_MODELSomits it).
PR 2 — approval controls
- Permission requests gain an
allow_alwaysoption (Write-risk calls only; Destructive never offers it and is still structurally un-allowlistable). Choosing it appends the exact tool name to the session approver's pattern store — the same--allowmechanism, granted interactively instead of at startup. - A
mode-category select (ask/auto_write) flips the--yessemantics per session from the UI, via shared approver state. Session-scoped (not durable) by design: consent resets with the process. thought_level(reasoning effort) is explicitly out of scope here — it touches the provider request wire shape (a Tier-1 contract) and deserves its own issue.
Alternatives considered
- Multiple agent entries in the host (one per flag combination) — works today (the Termul wrapper forwards args/env) but the picker UX is strictly better and needs no per-host setup.
- Legacy
modesfield in addition toconfigOptions— the spec's transition advice; skipped for now since target hosts (Termul) readconfigOptionsandmodesis slated for removal. - Per-session durable approval memory — rejected: approval consent should not outlive the process that granted it.
Are you willing to contribute the implementation?
Yes, I can do it
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity
feat(acp): native model picker via ACP session config options (#176) (#…
feat(acp): per-session approval controls — allow_always + approval se…
chore(release): v0.6.0 (#192)
chore(release): v0.6.0 (#194)
chore(release): v0.7.0 (#225)
refactor(cli): one session provider for every face (#428, 1/3) (#430)