Repository navigation
feat(automations): decide an automation's approval with a yes in your chat app - #455
Merged
Merged
Conversation
… chat app A yes in the private chat Lens told you in approves an automation's action that changes something inside Lens, under the room rules: approving on, the sender on the channel's list, and it the one thing waiting there (or named by its number). One that reaches outside Lens is decided on its card; no declines either. The message says to reply yes only where a yes would count. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VF3LK1DBx3dXX2b8c5T3cQ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Adeel · project thread
Description
Before: an automation's action waiting for approval could only be decided on its card in Lens. The message in your chat app gave a link and nothing else.
After: workflow studio M8, part 2 of 5. A reply of "yes" in the private chat Lens told you in approves an automation's action, but only when all of these hold:
lens);One that reaches outside Lens or other people still waits for its card, and the reply says where. "No" declines either kind. The message that told you says "Reply “yes” to do it or “no” not to" only when a yes there would count; otherwise it gives the link. "yes all" leaves an automation's actions waiting, to be picked one at a time.
How:
bridge.decide_in_roomnow also sees the automations' approvals its person was told about in that conversation (told.*.conversation) and decides them throughai_tools.approve(..., via="chat")under the sameroom_approvercheck as the assistant's own.channels.telltakes the text per chat, soapprovals.yes_countscan offer the reply only where it would count.Motivation and Context
Adeel's workflow studio, module M8 (approvals inbox), brief in the project's
workflow-studio/briefs/M8.md. Part 1 was #447. Next: approval activities and notifications, agents' approval tools, the/approvalspage.Types of changes
!in the title)Checklist:
make hookschecks it on commit).docs/accordingly.## UnreleasedinCHANGELOG.md. (n/a: studio modules land under one release note)Done questions (AGENTS.md)
P-AUTOMATION-APPROVALinthreat-model.mdupdated.tests/api/test_approvals_chat.py), docs (automations.md,chat-rooms.md); no schema change.docs/automations.md(approve buttons in Telegram and Slack).🤖 Generated with Claude Code
https://claude.ai/code/session_01VF3LK1DBx3dXX2b8c5T3cQ
Generated by Claude Code