feat: dynamic viewport sizing and suppress Chrome warning bar

This commit is contained in:
bryan
2026-03-12 08:40:49 -07:00
parent df71834e4b
commit 2acd526b71
3 changed files with 111 additions and 8 deletions
+8
View File
@@ -113,6 +113,14 @@ def get_gcu_enabled() -> bool:
return get_hive_config().get("gcu_enabled", True)
def get_gcu_viewport_scale() -> float:
"""Return GCU viewport scale factor (0.1-1.0), default 0.8."""
scale = get_hive_config().get("gcu_viewport_scale", 0.8)
if isinstance(scale, (int, float)) and 0.1 <= scale <= 1.0:
return float(scale)
return 0.8
def get_api_base() -> str | None:
"""Return the api_base URL for OpenAI-compatible endpoints, if configured."""
llm = get_hive_config().get("llm", {})