fix(browser): require managed runtime ownership for tab cap cleanup
This commit is contained in:
committed by
Peter Steinberger
parent
9b938f2bf6
commit
22ec577d80
@@ -139,7 +139,13 @@ function createProfileContext(
|
||||
};
|
||||
|
||||
const enforceManagedTabLimit = async (keepTargetId: string): Promise<void> => {
|
||||
if (profile.driver !== "openclaw" || !profile.cdpIsLoopback || state().resolved.attachOnly) {
|
||||
const profileState = getProfileState();
|
||||
if (
|
||||
profile.driver !== "openclaw" ||
|
||||
!profile.cdpIsLoopback ||
|
||||
state().resolved.attachOnly ||
|
||||
!profileState.running
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user