Merge pull request #545 from stefandevo/fix/sandbox-warning-persistence

fix: sandbox warning persistence and add env var option
This commit is contained in:
Shirone
2026-01-17 18:57:19 +00:00
committed by GitHub
5 changed files with 30 additions and 7 deletions

View File

@@ -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' };