[Fix] Visual-proof auto-posts to Slack when experimental auto proof is off#242
Merged
Merged
Conversation
Contributor
Author
|
No code issues found. See task Verified the gate is wired end to end: the worker sets Note (not blocking): the 3 failing tests in Reviewed 8f154d1 |
mrubens
marked this pull request as ready for review
July 12, 2026 12:42
mrubens
requested review from
brunobergher,
daniel-lxs and
mrubens
as code owners
July 12, 2026 12:42
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.
Related issue
N/A — internal fix identified while investigating unexpected Slack visual-proof auto-posts with the experimental flag off.
Why this PR exists
What changed
Visual-proof artifact auto-post to Slack/chat is now actually gated by
SlackProofAutoPost/ROOMOTE_SLACK_PROOF_AUTO_POST.Previously, the experimental flag only set the runtime env used for prompt wording, while the worker still auto-posted the first
visual-proofupload whenever chat reply context existed. The platform path now short-circuits unless the flag env is enabled.Slack agent instructions and
manage_artifactsMCP descriptions also match that gate:send_chat_reply/imageArtifactIdsinstead of claiming automatic postingHow it was tested
pnpm exec dotenvx run -f .env.test -- pnpm --filter @roomote/worker exec vitest run src/mcp/roomote-mcp-server/__tests__/upload.test.ts src/mcp/roomote-mcp-server/__tests__/tool-descriptions.test.ts— 36/36 passedpnpm exec dotenvx run -f .env.test -- pnpm --filter @roomote/cloud-agents exec vitest run src/server/workflows/__tests__/slackAppMention.test.ts -t 'documents'— passedChecklist
[Fix],[Feat],[Improve],[Refactor],[Docs], or[Chore]followed by a user-facing descriptionpnpm lintandpnpm check-typespass locallypnpm changeset