This repository was archived by the owner on Aug 6, 2026. It is now read-only.
fix(tasks): infer repository from pull request prompts - #3748
Merged
trunk-io[bot] merged 1 commit intoJul 23, 2026
Conversation
Generated-By: PostHog Code Task-Id: 9fc61684-6e88-477c-bcf8-df5d08d42675
|
😎 Merged directly without going through the merge queue, as the queue was empty and the PR was up to date with the target branch - details. |
|
React Doctor found no issues in the changed files. 🎉 Reviewed by React Doctor for commit |
tatoalo
marked this pull request as ready for review
July 23, 2026 10:27
Contributor
|
Reviews (1): Last reviewed commit: "fix(tasks): infer repository from pull r..." | Re-trigger Greptile |
jonathanlab
approved these changes
Jul 23, 2026
There was a problem hiding this comment.
Contained, well-tested fix to a deep-link prompt-parsing helper in core; not risky territory (no auth, billing, API contract, or infra surface), diff matches description, and explicit repo params remain authoritative.
- 👍 on the PR from greptile-apps[bot].
Gate mechanics and policy version
| Gate | Result | |
|---|---|---|
| prerequisites | ✓ | all clear |
| deny-list | ✓ | no deny categories matched |
| size | ✓ | 31L, 1F substantive, 79L/2F incl. docs/generated/snapshots — within ceiling |
| tier | ✓ | T1-agent / T1b-small (79L, 2F, single-area, fix) |
| stamphog 2.0.0b3 | .stamphog/policy.yml @ 5bbe70c · reviewed head 16d357a |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Problem
A new-task deep link without an explicit repository can open against the desktop app’s previously selected repository, even when the structured prompt identifies a pull request elsewhere.
Why: Pull request actions should start in the repository identified by the selected pull request without making ambiguous choices for multi-repository prompts.
Changes
Infer the repository when all structured pull request references point to one repository. Explicit repository parameters remain authoritative, and mixed-repository prompts remain unselected.