feat(canvas): add Agent Abilities toggles to ConfigTab #1507

Closed
fullstack-engineer wants to merge 1 commits from feat/canvas-agent-abilities-toggle into staging
Member

Summary

Add AgentAbilitiesSection to ConfigTab — two toggles for the workspace's ability flags:

  • BroadcastPATCH /workspaces/:id/abilities { broadcast_enabled: bool }
  • Talk to UserPATCH /workspaces/:id/abilities { talk_to_user_enabled: bool }

Both toggles drive from the Zustand store (broadcastEnabled / talkToUserEnabled on the workspace node) and optimistically update the store on success. Section is always visible regardless of runtime.

Files changed

  • canvas/src/components/tabs/ConfigTab.tsx — added AgentAbilitiesSection after Runtime section
  • canvas/src/components/tabs/__tests__/ConfigTab.abilities.test.tsx — 7 tests

Test plan

  • npm test -- --run — 213 test files, 3335 passed | 1 skipped
  • npm run build — clean build
  • go test ./... — all packages pass

🤖 Generated with Claude Code

## Summary Add `AgentAbilitiesSection` to `ConfigTab` — two toggles for the workspace's ability flags: - **Broadcast** — `PATCH /workspaces/:id/abilities { broadcast_enabled: bool }` - **Talk to User** — `PATCH /workspaces/:id/abilities { talk_to_user_enabled: bool }` Both toggles drive from the Zustand store (`broadcastEnabled` / `talkToUserEnabled` on the workspace node) and optimistically update the store on success. Section is always visible regardless of runtime. ## Files changed - `canvas/src/components/tabs/ConfigTab.tsx` — added `AgentAbilitiesSection` after Runtime section - `canvas/src/components/tabs/__tests__/ConfigTab.abilities.test.tsx` — 7 tests ## Test plan - [x] `npm test -- --run` — 213 test files, 3335 passed | 1 skipped - [x] `npm run build` — clean build - [x] `go test ./...` — all packages pass 🤖 Generated with [Claude Code](https://claude.ai/claude-code)
fullstack-engineer added 1 commit 2026-05-18 12:23:00 +00:00
feat(canvas): add Agent Abilities toggles to ConfigTab
E2E API Smoke Test / E2E API Smoke Test (pull_request) Blocked by required conditions
E2E Chat / E2E Chat (pull_request) Blocked by required conditions
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Blocked by required conditions
Harness Replays / Harness Replays (pull_request) Blocked by required conditions
Runtime PR-Built Compatibility / PR-built wheel + import smoke (pull_request) Blocked by required conditions
qa-review / approved (pull_request) Waiting to run
security-review / approved (pull_request) Waiting to run
sop-checklist / all-items-acked (pull_request) Waiting to run
sop-tier-check / tier-check (pull_request) Waiting to run
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 14s
CI / Detect changes (pull_request) Successful in 9s
audit-force-merge / audit (pull_request) Waiting to run
CI / Shellcheck (E2E scripts) (pull_request) Successful in 11s
E2E API Smoke Test / detect-changes (pull_request) Successful in 6s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 5s
E2E Chat / detect-changes (pull_request) Successful in 8s
Harness Replays / detect-changes (pull_request) Successful in 8s
Runtime PR-Built Compatibility / detect-changes (pull_request) Successful in 15s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 6s
gate-check-v3 / gate-check (pull_request) Successful in 4s
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 1m1s
CI / Platform (Go) (pull_request) Successful in 3m23s
CI / Canvas (Next.js) (pull_request) Successful in 4m48s
CI / Canvas Deploy Reminder (pull_request) Has been skipped
CI / Python Lint & Test (pull_request) Successful in 6m35s
CI / all-required (pull_request) Successful in 6m32s
2ab2992333
Adds a new AgentAbilitiesSection to ConfigTab with two toggles:

- Broadcast — agent may send org-wide messages (PATCH broadcast_enabled)
- Talk to User — agent may send chat messages to canvas (PATCH talk_to_user_enabled)

Both toggles reflect the workspace node's broadcastEnabled/talkToUserEnabled
store values and optimistically update the store on success.  PATCH calls
/proxy/workspaces/:id/abilities on the platform API.

Adds 7 vitest tests covering: section visibility, initial toggle states,
PATCH payload shapes, optimistic store update, success/error banners.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Author
Member

Closing as duplicate of PR #1491 which was already merged. The Agent Abilities toggles feature is covered by that PR.

Closing as duplicate of PR #1491 which was already merged. The Agent Abilities toggles feature is covered by that PR.
Some checks are pending
E2E API Smoke Test / E2E API Smoke Test (pull_request) Blocked by required conditions
E2E Chat / E2E Chat (pull_request) Blocked by required conditions
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Blocked by required conditions
Harness Replays / Harness Replays (pull_request) Blocked by required conditions
Runtime PR-Built Compatibility / PR-built wheel + import smoke (pull_request) Blocked by required conditions
qa-review / approved (pull_request) Waiting to run
security-review / approved (pull_request) Waiting to run
sop-checklist / all-items-acked (pull_request) Waiting to run
Required
Details
sop-tier-check / tier-check (pull_request) Waiting to run
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 14s
CI / Detect changes (pull_request) Successful in 9s
audit-force-merge / audit (pull_request) Waiting to run
CI / Shellcheck (E2E scripts) (pull_request) Successful in 11s
E2E API Smoke Test / detect-changes (pull_request) Successful in 6s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 5s
E2E Chat / detect-changes (pull_request) Successful in 8s
Harness Replays / detect-changes (pull_request) Successful in 8s
Runtime PR-Built Compatibility / detect-changes (pull_request) Successful in 15s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 6s
gate-check-v3 / gate-check (pull_request) Successful in 4s
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 1m1s
CI / Platform (Go) (pull_request) Successful in 3m23s
CI / Canvas (Next.js) (pull_request) Successful in 4m48s
CI / Canvas Deploy Reminder (pull_request) Has been skipped
CI / Python Lint & Test (pull_request) Successful in 6m35s
CI / all-required (pull_request) Successful in 6m32s
Required
Details

Pull request closed

Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: molecule-ai/molecule-core#1507