chore(release): pending release v0.46.1#694
Merged
Merged
Conversation
…and path validation (#693) - Require the invoking user to hold Manage Channels before running /add-project, closing a privilege-amplification path where any member could drive the bot's broader permissions. - Replace the repo-exists reply that instructed users to rm -rf the workspace path — which would delete another user's in-flight clone — with a bindings re-read that redirects to the bound channel or asks the user to wait. - Validate the workspace clone response against the full expected path (/workspace/repos/owner/repo) instead of a suffix match, rejecting adversarial prefixes like /etc/passwd/owner/repo.
* docs(solutions): capture Discord slash command orchestration patterns Permission checks via interaction.appPermissions, bootstrap-wiring test coverage, IAT handling across the workspace HTTP boundary, multi-phase partial-failure recovery, and live-cache re-read in collision loops. * docs(solutions): teach full-path validation and clarify single-process cache interleaving - Show the full-path equality check (now in source) as the canonical form; demote suffix-only to the broken-pattern slot. - Reframe the channel-cache hazard as inter-await interleaving in a single Node process, not OS-level concurrency. - Point readers to the files defining getCommandRegistry and dispatchCommand.
- Resume from CREATING_CHANNEL when a repo is already cloned but has no binding, so re-running /add-project after a post-clone failure heals instead of dead-ending on repo-exists. Clones are atomic, so repo-exists always means a complete clone; the canonical workspace path is reconstructed via a shared workspaceRepoPath helper. - Refuse new /add-project invocations while the gateway is draining for shutdown, with a clear retry message, instead of starting work that gets hard-killed mid-flight. - Fix a missing return on the disk-full clone-error branch that would have fallen through with an unset workspace path.
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.
Pending Release: v0.46.1
This PR tracks changes pending release. Released on the next auto-release cycle (Sunday/Wednesday) or via manual dispatch.
Merge this PR to trigger a release. Releases also run automatically on Sunday/Wednesday at 20:00 UTC, or via manual workflow dispatch.
Commits Since Last Release
Auto-generated by the release pipeline. Updated: 2026-05-29 23:37 UTC