fix(computer): return none for unsupported browser capability

set the base booter browser property to return None instead of
raising NotImplementedError so callers can handle missing browser
support through capability checks
This commit is contained in:
RC-CHN
2026-02-17 16:59:05 +08:00
parent d62a6f107b
commit cf9a7235f7
+2 -4
View File
@@ -17,10 +17,8 @@ class ComputerBooter:
def shell(self) -> ShellComponent: ...
@property
def browser(self) -> BrowserComponent:
raise NotImplementedError(
f"{self.__class__.__name__} does not support browser capability."
)
def browser(self) -> BrowserComponent | None:
return None
async def boot(self, session_id: str) -> None: ...