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
Commit c27d43a
Browse filesBrowse the repository at this point in the historyBrowse files
fix(server): peer work can only change PR links on its own grant's threads
PR tools gained explicit thread targets on main, so a peer-origin caller
could link, unlink, or watch pull requests on trusted threads. A watch
also delivers comments into the target thread. Apply the same-grant rule
there too.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Copy file name to clipboardExpand all lines: apps/server/src/mcp/toolkits/pullRequests/tools.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -101,7 +101,7 @@ export class PullRequestThreadAboveLimitsError extends Schema.TaggedError<PullRe
101
101
{threadId: Schema.String},
102
102
){
103
103
overridegetmessage(): string{
104
-
return`Thread ${this.threadId} cannot be changed from here: it runs with broader permissions than this caller, or the calling thread has no active run.`;
104
+
return`Thread ${this.threadId} cannot be changed from here: it runs with broader permissions than this caller, it is work this caller's peer grant does not cover, or the calling thread has no active run.`;
0 commit comments