Fix paste ownership, input bounds, and IPC validation
Supersedes #5745, #5746, and #5747.
This commit is contained in:
@@ -129,11 +129,16 @@ describe('remote runtime request connection integration', () => {
|
||||
},
|
||||
cancelMobileDictationForConnection: () => {},
|
||||
onClientDisconnected: () => {},
|
||||
showRepo: (selector: string) => {
|
||||
if (selector !== repo.id && selector !== `id:${repo.id}`) {
|
||||
throw new Error('repo_not_found')
|
||||
}
|
||||
return repo
|
||||
},
|
||||
onClientEvent: (listener: (event: RuntimeClientEvent) => void) => {
|
||||
clientEventListeners.add(listener)
|
||||
return () => clientEventListeners.delete(listener)
|
||||
},
|
||||
showRepo: () => repo,
|
||||
listDetectedManagedWorktrees: () => ({
|
||||
repoId: repo.id,
|
||||
authoritative: true,
|
||||
@@ -348,7 +353,12 @@ describe('remote runtime request connection integration', () => {
|
||||
},
|
||||
watchFileExplorer: async () => () => {},
|
||||
listRepos: () => [repo],
|
||||
showRepo: () => repo,
|
||||
showRepo: (selector: string) => {
|
||||
if (selector !== repo.id && selector !== `id:${repo.id}`) {
|
||||
throw new Error('repo_not_found')
|
||||
}
|
||||
return repo
|
||||
},
|
||||
listDetectedManagedWorktrees: () => ({
|
||||
repoId: repo.id,
|
||||
authoritative: true,
|
||||
|
||||
Reference in New Issue
Block a user