Skip to content

fix slack router send fan-out#1633

Open
shizhigu wants to merge 1 commit intodifferent-ai:devfrom
shizhigu:codex/slack-test-direct-send
Open

fix slack router send fan-out#1633
shizhigu wants to merge 1 commit intodifferent-ai:devfrom
shizhigu:codex/slack-test-direct-send

Conversation

@shizhigu
Copy link
Copy Markdown
Contributor

@shizhigu shizhigu commented May 1, 2026

Why

Slack sends through the OpenWork router API can pass a workspace directory without a peerId. The router treats directory-only sends as fan-out to every bound conversation, so a test send can reach more Slack channels than the user selected. This PR keeps that router primitive, but makes the OpenWork Slack send path require a concrete peer target.

Fixes #1139.

What changed

  • Reject Slack /opencode-router/send requests without peerId at the server-v2 product service.
  • Keep Telegram directory sends and opencode-router directory fan-out unchanged.
  • Return a JSON RouteError response from the router send compatibility handler.

Test plan

  • pnpm --filter openwork-server-v2 exec bun test src/managed.test.ts
  • pnpm --filter openwork-server-v2 test
  • pnpm --filter openwork-server-v2 typecheck
  • pnpm --filter openwork-server-v2 build:bin
  • git diff --check

Notes

No app UI changes in this PR. Current dev exposes this behavior through the server-v2 compatibility API, so screenshots would not add useful evidence.

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 1, 2026

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

Project Deployment Actions Updated (UTC)
openwork-landing Ready Ready Preview, Comment, Open in v0 May 1, 2026 5:19pm

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 1, 2026

@shizhigu is attempting to deploy a commit to the Different AI Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 1, 2026

The following comment was made by an LLM, it may be inaccurate:

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.

[Bug]: Slack test message fans out to every bound conversation instead of a selected test channel

1 participant