Repository navigation
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 45 minutes. View limit details
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. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8a9a387039
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const target = resolve(directory); | ||
| const fromRoot = relative(root, target); | ||
| if (fromRoot === ".." || fromRoot.startsWith(`..${sep}`) || isAbsolute(fromRoot)) { |
There was a problem hiding this comment.
Resolve symlinks before checking directory containment
For OIDC requests, the newly accepted subdirectories can escape the configured clone through existing tracked symlinks. For example, this repository's nixpkgs symlink points to ../nixpkgs, but /home/user/git/code/nixpkgs passes this lexical containment check and is forwarded unchanged through launchSession to OpenCode's location.directory, selecting a directory outside the target clone. Previously, OIDC callers could not select this path. Canonicalize the root and requested directory using filesystem resolution, or reject escaping symlink components, before permitting side effects.
Useful? React with 👍 / 👎.
|
Closing as a stale duplicate — superseded by merged PR #3507. PR #3507 (merged 2026-11-01, merge commit 2115038) landed the same issue #2664 fix in pm-stack/dispatch: unified Spot-check by queue task 10878 (issue #6428) against current main: every piece of this PR is present on main — validate.ts line 124 ( |
Summary
Blank/whitespace session titles now use the prompt-derived fallback. Updated the dispatch README and added resolver + HTTP regression coverage. Fixes #2664.
Evidence
After:
cd pm-stack/dispatch && bun test— 80 passed, 0 failed across 9 files;git diff --checkclean.bun run typecheckwas attempted but unavailable in this worktree because@types/bunis not installed (tscTS2688).Merge Danger
Door: two-way
Blast Radius: dispatch-boundary
Only session directory/title validation changes; invalid requests fail before issue, task, or session side effects.
Need help on this PR? Tag
@codesmith-botwith what you need.