mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-03 08:53:36 +00:00
Merge pull request #545 from stefandevo/fix/sandbox-warning-persistence
fix: sandbox warning persistence and add env var option
This commit is contained in:
@@ -483,6 +483,7 @@ export const verifySession = async (): Promise<boolean> => {
|
||||
*/
|
||||
export const checkSandboxEnvironment = async (): Promise<{
|
||||
isContainerized: boolean;
|
||||
skipSandboxWarning?: boolean;
|
||||
error?: string;
|
||||
}> => {
|
||||
try {
|
||||
@@ -498,7 +499,10 @@ export const checkSandboxEnvironment = async (): Promise<{
|
||||
}
|
||||
|
||||
const data = await response.json();
|
||||
return { isContainerized: data.isContainerized ?? false };
|
||||
return {
|
||||
isContainerized: data.isContainerized ?? false,
|
||||
skipSandboxWarning: data.skipSandboxWarning ?? false,
|
||||
};
|
||||
} catch (error) {
|
||||
logger.error('Sandbox environment check failed:', error);
|
||||
return { isContainerized: false, error: 'Network error' };
|
||||
|
||||
Reference in New Issue
Block a user