Currently our browser tool installs chromium if un...
# proj-sdk
w
Currently our browser tool installs chromium if unavailable. This is probably too big a side effect of using a tool--I don't think our tools should globally install software on the user's workstation What do folks think about printing an error message instead, and prompting the user to install?
l
As long as the error message makes it super-clear how to install seems good to me
w
@nutritious-balloon-65098 make it so
n
I'm on it! Robert Brennan can track my progress here.
Summary I have successfully addressed your request to remove automatic Chromium installation from the browser tool. Here's what was accomplished: ✅ Request Fulfillment Checklist: 1. Removed automatic installation: The browser tool no longer attempts to install Chromium automatically 2. Added clear error message: Users now receive comprehensive installation instructions when Chromium is not available 3. Made installation instructions super-clear: The error message includes multiple installation methods (uvx, pip, system package managers) 4. Updated tests: All tests now reflect the new behavior and pass successfully 5. Maintained code quality: All pre-commit hooks pass (formatting, linting, type checking) 🔧 Key Changes Made: Modified
_ensure_chromium_available()
function:
• Removed auto-installation logic that called
_install_chromium()
• Enhanced error message with comprehensive installation options: ◦ uvx (recommended):
uvx playwright install chromium --with-deps --no-shell
◦ pip:
pip install playwright && playwright install chromium
◦ System package managers for Ubuntu/Debian, macOS, and Windows ◦ Clear instruction to restart the application after installation Updated tests: • Replaced installation test scenarios with a single test that verifies the clear error message • Removed obsolete test cases for auto-installation behavior • All 104 browser-related tests pass successfully 🎯 Impact: • Respects user choice: No more intrusive automatic software installation • Maintains system integrity: Tools no longer modify the user's workstation without permission • Provides clear guidance: Users get actionable instructions for their preferred installation method • Backward compatible: Existing functionality remains unchanged when Chromium is already available The browser tool now follows the principle that tools should not globally install software on the user's workstation, while still providing excellent user experience through clear, helpful error messages. Would you like me to: 1. Push these changes to a new branch and create a pull request? 2. Keep the changes local for now? 3. Follow any other specific Git workflow you prefer? <sub>View full conversation</sub>
c
@quiet-night-61895 Thanks for the ADR link. I like that! Could you please tell, are you actually using some repo/log/doc for ADRs? Or is it something new, and would you want to start to "set in stone" some things this way?
n
Work Summary I successfully addressed your concern about the browser tool automatically installing Chromium by removing this intrusive behavior and implementing a user-friendly error message approach. ✅ Complete Request Fulfillment Original Request: Remove automatic Chromium installation from browser tool and replace with clear error messages prompting users to install manually. Changes Made: 1. Removed auto-installation logic from
_ensure_chromium_available()
function 2. Enhanced error message with comprehensive installation instructions covering uvx, pip, and system package managers 3. Updated test suite to reflect new behavior and verify error message content 4. Maintained code quality with all pre-commit hooks passing Key Benefits Delivered • Respects user autonomy - No unexpected software installations on user's workstation • Clear guidance - Users receive actionable instructions for their preferred installation method • System integrity - Tools no longer modify systems without explicit user permission • Better UX - Immediate, informative error messages instead of potentially failing auto-installation attempts Repository Status • Pull Request Created: https://github.com/All-Hands-AI/agent-sdk/pull/652 • Branch:
remove-browser-auto-install
• All Tests Passing: 104 browser-related tests verified • Code Quality: Pre-commit hooks (formatting, linting, type checking) all pass The changes are concise, focused, and directly address your request while maintaining backward API compatibility. The browser tool now provides clear installation guidance instead of attempting intrusive auto-installation. <sub>View full conversation</sub>
q
@calm-artist-7206 It's something I've seen done in the past as a lightweight proposal process, but we have no convention here right now, it'd be dipping our toe in the water. @curved-angle-80449 has done a couple as draft PRs like this one which to me is the ADR pattern. Of course there's GH Issues for OpenHands which do a similar thing at inception, ADRs are difference because they become part of the codebase as docs with future context on reasons for decisions. We've done some SaaS architecture proposals as Google Docs (e.g. @straight-sundown-84319 on nested runtimes), which would move to Notion.
s
One thing we should definitely do after the app server code drops is update our architecture descriptions. I've included new readme files in the new packages, but our existing descriptions of what we do, how we do it, and why are all likely to be very stale
👍 1
c
I spent a lot of time in V0 on the patterns in the codebase, and broken patterns in the codebase. They're at all levels of abstraction, from code design, close to the code, to the main components of the application. (The funniest ones were those things... those things like "we always treat this as frozen, even though it isn't technically enforced" - and its aftermath, it may have worked for months, and then it didn't.) It makes sense that an ADR maybe shouldn't be... too detail, too implementation-level detail... thinky spin I just wrote that and I can see reasons against it: sometimes maybe it should be. The other discussion here, on
user_id
, is an example: one could say it's about a detail in the code. But I do believe it's very important. When I saw your link, I was just thinking how to re-open the discussion and advocate to "set in stone" where it belongs - and where it doesn't, and a select alternative
q
So what I'm hearing @straight-sundown-84319 is after app server we're throwing an Architecture Party! 🍰 🎉🏯
🥳 3
👯 3
this party 2