Skip to content

support tool approvals in slack#2149

Merged
anubra266 merged 17 commits intomainfrom
slack/support-tool-approvals
Feb 20, 2026
Merged

support tool approvals in slack#2149
anubra266 merged 17 commits intomainfrom
slack/support-tool-approvals

Conversation

@anubra266
Copy link
Copy Markdown
Contributor

No description provided.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Feb 19, 2026

🦋 Changeset detected

Latest commit: 1b5a05a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 9 packages
Name Type
@inkeep/agents-work-apps Patch
@inkeep/agents-core Patch
@inkeep/agents-api Patch
@inkeep/agents-manage-ui Patch
@inkeep/agents-cli Patch
@inkeep/agents-sdk Patch
@inkeep/ai-sdk-provider Patch
@inkeep/create-agents Patch
@inkeep/agents-mcp Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 19, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agents-api Ready Ready Preview, Comment Feb 20, 2026 10:04pm
agents-manage-ui Ready Ready Preview, Comment Feb 20, 2026 10:04pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
agents-docs Skipped Skipped Feb 20, 2026 10:04pm

Request Review

claude[bot]

This comment was marked as resolved.

@github-actions github-actions Bot deleted a comment from claude Bot Feb 19, 2026
…rameters for toolName and input. Update validation schema and implement tests for new functionality, including rendering input fields and handling edge cases.
…pport-tool-approvals

# Conflicts:
#	packages/agents-work-apps/src/slack/routes/events.ts
#	packages/agents-work-apps/src/slack/services/blocks/index.ts
…ng only the initiating user can approve or deny actions. Added error notification for unauthorized attempts.
claude[bot]

This comment was marked as resolved.

@github-actions github-actions Bot deleted a comment from claude Bot Feb 19, 2026
…xpected exceptions and malformed input. Implement tests for new error scenarios and ensure proper logging of failures.
…for input. Update tests to reflect changes in input handling, including truncation logic and section structure. Ensure proper rendering of input fields and maintain character limits.
claude[bot]

This comment was marked as resolved.

@github-actions github-actions Bot deleted a comment from claude Bot Feb 19, 2026
…approval messages when they expire. Introduce new block rendering for expired approvals and update tests to verify the correct behavior of message updates and error handling during streaming. Ensure proper logging for failures in message posting and updating.
…er notifications. Update tests to verify the correct behavior of ephemeral messages in various scenarios, ensuring ownership checks and linking requirements are properly enforced.
…treaming. This change ensures that the timeout is reset, allowing for longer wait times without prematurely closing the stream.
Copy link
Copy Markdown
Collaborator

@amikofalvy amikofalvy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs a changeset entry then you can merge

Copy link
Copy Markdown
Contributor

@claude claude Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Review Summary

(0) Total Issues | Risk: Low

This is a delta re-review following 17 commits since the last automated APPROVE review (35fe797ccaba).

Delta Analysis ✅

The commits since last review include:

  1. Changeset added (069936373) — addresses amikofalvy's merge requirement ✅
  2. postEphemeral refactor (7c9bb4b42) — uses chat.postEphemeral instead of sendResponseUrlMessage for error notifications
  3. Stream timeout clearing (b685fd40e) — clears timeout when waiting for human approval
  4. Main merges — Version Packages, channel-based agent authorization, docs updates (infrastructure only)

Implementation Quality ✅

Change Assessment
postEphemeral for errors ✅ Correct Slack API usage — ephemeral messages work without responseUrl and provide better UX
clearTimeout on approval ✅ Safe design — delegates timeout to backend's APPROVAL_TIMEOUT_MS; comment explains the delegation
replace_original: false ✅ Critical bug fix — prevents Slack's default behavior from hiding approval buttons when sending ephemeral rejections
extractApiErrorMessage ✅ Good UX — surfaces specific backend errors instead of generic messages; safe fallback with try-catch

Test Coverage ✅

Delta includes comprehensive test updates:

  • Ownership checks verified with mockPostEphemeral
  • Link requirement checks verified
  • API error surfacing tested (lines 329-351 in streaming.test.ts)
  • Ephemeral fallback when responseUrl absent tested

Prior Feedback Status

All 8 prior issues from earlier reviews have been addressed and verified fixed (ownership check, Zod validation, getInProcessFetch(), error handling, etc.).


✅ APPROVE

Summary: The delta since last APPROVE contains the requested changeset and quality refinements (postEphemeral, timeout clearing, error message extraction, replace_original fix). All changes are correct, well-tested, and improve the feature's reliability and UX. The Slack tool approval feature is ready to ship! 🎉

Reviewers (0)
Reviewer Returned Main Findings Consider While You're Here Inline Comments Pending Recs Discarded
(delta contained refinements only — direct review)

@github-actions github-actions Bot deleted a comment from claude Bot Feb 20, 2026
@vercel vercel Bot temporarily deployed to Preview – agents-docs February 20, 2026 22:00 Inactive
@anubra266 anubra266 merged commit 012a843 into main Feb 20, 2026
4 of 9 checks passed
@anubra266 anubra266 deleted the slack/support-tool-approvals branch February 20, 2026 22:00
@github-actions github-actions Bot deleted a comment from claude Bot Feb 20, 2026
amikofalvy pushed a commit that referenced this pull request Feb 21, 2026
* docs: add tool approvals in Slack section to tool-approvals.mdx

* docs: add tool approvals section to Slack commands page (PR #2149)

---------

Co-authored-by: inkeep[bot] <257615677+inkeep[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants