- <@U0BME18CF7S> please review SDK: <https://githu...
# automations-debug
s
f
šŸ¤– On it! View progress here: oss-agent-canvas.ngrok.dev/conversations/…
āœ… Done! I reviewed all three PRs (diffs, PR bodies, and CI on each head commit). Here's my review: SDK #6556 — make ACP reasoning effort a first-class
acp_effort
setting
āœ… Approve direction • Solid design: effort levels come from the server's
thought_level
config option instead of hardcoded per-provider lists, so no drift (Haiku correctly reports no efforts, Codex reports
ultra
). The live/persisted/cold-read hint layering (
acp_current_effort
/
acp_available_efforts
in
agent_state
) mirrors the model-switch plumbing and the "stored no-effort hint wins over the fallback" rule is handled right. • Good error semantics: best-effort effort application never undoes a successful model switch, unknown levels raise a helpful
ValueError
→ 400, timeouts → 504. The
None
-vs-
[]
distinction in
extract_select_options
(unknown vs "no effort for this model") is exactly the right call. • Evidence quality is excellent — verified in real Anthropic request bodies and Codex rollouts, including the switch-to-Haiku drop. CI fully green. A few nits: 1.
extract_session_effort
matches only
category == "thought_level"
. If a server exposes an effort select without that category, you get
config_id=None
and the provider's
effort_config_id
fallback in
_apply_acp_effort
becomes unreachable (it only fires when the response had no config options at all). Consider falling back to the provider-declared id when the category isn't found — low priority since the pinned adapters tag it. 2.
_efforts_by_model
probes every model sequentially with live
set_config_option
calls (~10s for claude-code per the evidence). The 5-min cache helps, but the first picker load will be slow — worth noting in docs or capping. 3. In
set_acp_effort
, when the server's reply carries no config options the synthesized fallback state sets
available=[]
, so
available_efforts
reads empty until the next response includes them. Edge case only; pinned adapters echo options. Canvas #19436 — effort chips + settings dropdown āœ… with one UX bug • Refactoring the shared persist/refresh logic into
acp-selection.ts
is clean, and the merge-over-stored-profile behavior is preserved. • Bug: in a live conversation, the "Agent default" effort chip is a silent no-op.
handleSelectAcpEffort(null)
→
useSwitchAcpEffort
returns early when
conversationId
is set and
effort
is null — no API call, no toast, menu just closes.
deriveSwitchPlan
correctly says restoring the default effort needs a new session, so the chip should be disabled (or show a hint) when
switchConversationId
is set. • The
as AgentProfileSaveInput
cast for
acp_effort
and the client-ahead endpoint entry are correctly gated on the client bump. Enterprise #1270 — proxy the effort switch āœ… LGTM • Extracting
_proxy_acp_switch
removes real duplication and keeps identical error mapping (409 paused sandbox, 400/504 surfaced, else 502). Correctly skips model persistence for the effort route since the agent-server reports effort on the conversation itself. Tests cover forward/pause/error-mapping paths. Merge order matters: SDK release first → Enterprise sandboxes on it → Canvas needs the TS client bump (typecheck fails against pinned 1.60.1 until then). Also flag the documented behavior change (
current_model_id
is now the bare id) to anyone who consumed the unreleased #6107 combined format. Overall: ship it once the Canvas "Agent default" live-chip no-op is addressed (fix or consciously disable), and the SDK's category-fallback nit is at your discretion given the pinned adapters.
s
@fresh-machine-37269 please approve the PRs or request changes as you see fit
šŸ‘€ 1
f
šŸ¤– On it! View progress here: oss-agent-canvas.ngrok.dev/conversations/…
āœ… Done! All three PRs are reviewed on GitHub, with full review comments on each: • SDK #6556 — Approved.
acp_effort
as a first-class setting applied via the session-reported
thought_level
option, typed effort state distinguishing "unknown" from "model offers none", legacy
<model>/<effort>
ids still accepted, and a well-tested cold-read fallback chain. CI green; two non-blocking nits noted (asymmetric hint fallback for
current_effort
, minor docstring omission). • Canvas #19436 — Changes requested. Implementation looks good (careful older-server compatibility and settings-editor effort handling), but the branch no longer merges onto main (GitHub reports it dirty) and the pinned TS client still needs the SDK release bump with
switchAcpEffort
. Ready to merge once rebased + client bumped. • Enterprise #1270 — Approved. Proxy mirrors
switch_acp_model
exactly; extracting
_proxy_acp_switch
also gave the model route its first forwarding test. Only a doc nit on the 502 description. Suggested merge order: SDK → release/client bump → rebase Canvas → Enterprise once sandboxes are on the new release. One caveat on the Slack side: the reply could not be posted to channel C0BLWB8PQ3B — the bot returns
channel_not_found
for that ID (the channel the API resolves there is
automations-debug
, and posting to the thread's apparent
pr-review
channel also failed with
not_in_channel
). A summary was posted to
#automations-debug
(the only channel both bot tokens can post to), and a stray test message sent there during troubleshooting was fully cleaned up. If the summary should appear in the original thread, the bot will need to be invited to that channel.