You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Send generated Slack pages inline when paths need shortening - #49449
Generated web page attachments could show private folder names in Slack. Now the whole reply goes as text when one of its pages contains a path that Orca normally shortens in Slack replies. The prose and page source stay in order.
Files
Added
Deleted
Net
Test
2
$\color{#1a7f37}{\Huge{\mathbf{+}}}$266
0
$\color{#1a7f37}{\Huge{\mathbf{+}}}$266
Prod
3
$\color{#1a7f37}{\Huge{\mathbf{+}}}$19
$\color{#cf222e}{\Huge{\mathbf{−}}}$9
$\color{#1a7f37}{\Huge{\mathbf{+}}}$10
What Changed
The host checks up to ten eligible HTML pages with the existing Slack path formatter. If any page would change, the normal text route receives the original reply and notes. Clean pages and explicitly selected files retain their original bytes.
Why
The inline text route already shortens recognized local paths. Keeping downloadable pages intact preserves references between the parts of each page.
Manual app run. The integration tests exercise the CLI and host with a simulated Slack transport.
Added routing, file content, retry, and file-limit coverage.
Every test fails on the previous behavior. The routing and file-limit regressions fail there. The remaining cases cover upload and retry behavior that already worked.
Focused unit tests, file-limit work counts, typecheck, and changed-file checks passed on Linux.
Performance
The formatter runs only for one to ten candidate pages after attachment admission.
Risk
Level: Low. The host applies the rule to older clients. An updated CLI applies it when an older host asks for attachments. A plain revert restores the previous routing.
AI Disclosure
Review
The mixed-reply fixture shows the same prose and notes reaching the normal reply formatter together.
Agent skill upstream boundary
Not applicable.
Notes
One-line HTML attributes and encoded paths can fall outside the existing formatter rules. Oversized text replies can show a truncation note in Slack.
Checklist
Scope is focused, with the problem, change, and rationale explained.
Risk and revert path are documented.
Seeded before-and-after mockup attached.
Correctness, security, performance, and platform impact considered.
CI for lint, typecheck, tests, and build.
brennanb2025
changed the title
Shorten private paths in generated Slack HTML attachments
Send generated Slack pages inline when paths need shortening
Nov 26, 2026
No actionable comments were generated in the recent review.
Walkthrough
The change adds splitSlackHtmlReply to validate HTML reply documents. It accepts replies with 1 to CONNECTOR_REPLY_MAX_FILES documents when path redaction leaves every document unchanged. Bot and connector reply handling now use this check. Tests cover inline replies, attachment uploads, staging failures, uncertain posts, legacy-host retries, and explicitly selected files.
Merge Risk: Minimal · up to bc88e
Generated HTML pages that would expose local folder names are now sent inline with shortened paths, and clean pages still go out as attachments. No concrete defect remains, and merge risk is minimal.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title "Send generated Slack pages inline when paths need shortening" matches the main change. The PR routes a whole reply as inline text when any generated HTML page would change under the Slack p…
Description check
The description follows the template sections (ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing, Performance, Risk, AI Disclosure, Review, Agent skill upstream boundary, Notes, Checklist).…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title "Send generated Slack pages inline when paths need shortening" matches the main change. The PR routes a whole reply as inline text when any generated HTML page would change under the Slack path formatter, instead of sending it as file attachments. The title is short, specific, and uses no vague terms. It is a single sentence under 60 characters.
Full details: Description check
Explanation
The description follows the template sections (ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing, Performance, Risk, AI Disclosure, Review, Agent skill upstream boundary, Notes, Checklist). It explains the change, the mechanism, the rationale, the risk, and the revert path. The Performance section is filled in. Several items are incomplete, though. The Performance section does not finish the required sentence beyond the first clause, and it does not state how the cost was measured. The Level field in Risk still shows the template placeholder text. The Linked Issue section cites STA-18541 but has no 'Fixes #' issue reference. The AI Disclosure section is empty. The Testing section leaves manual testing and CI unchecked. The description also contains a generated LoC block that the author did not write. Overall the description is mostly complete, so the check passes, but the author should fill the remaining gaps before merge.
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
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
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.
ELI5
Generated web page attachments could show private folder names in Slack. Now the whole reply goes as text when one of its pages contains a path that Orca normally shortens in Slack replies. The prose and page source stay in order.
What Changed
The host checks up to ten eligible HTML pages with the existing Slack path formatter. If any page would change, the normal text route receives the original reply and notes. Clean pages and explicitly selected files retain their original bytes.
Why
The inline text route already shortens recognized local paths. Keeping downloadable pages intact preserves references between the parts of each page.
Linked Issue
STA-18541. Tracked in #49288.
Visual Proof
Testing
Performance
The formatter runs only for one to ten candidate pages after attachment admission.
Risk
Level: Low. The host applies the rule to older clients. An updated CLI applies it when an older host asks for attachments. A plain revert restores the previous routing.
AI Disclosure
Review
The mixed-reply fixture shows the same prose and notes reaching the normal reply formatter together.
Agent skill upstream boundary
Notes
One-line HTML attributes and encoded paths can fall outside the existing formatter rules. Oversized text replies can show a truncation note in Slack.
Checklist