Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix browser demo for WSL on Windows #1121

Closed
wants to merge 1 commit into from

Conversation

jasonkneen
Copy link

@jasonkneen jasonkneen commented Feb 6, 2025

Fixes #1023

Add functionality to open HTML files in a browser for WSL on Windows.

  • crates/goose-mcp/src/computercontroller/mod.rs

    • Add a new tool open_browser to handle opening HTML files in a browser.
    • Implement the open_browser function to open HTML files in a browser.
    • Register the open_browser tool in the ComputerControllerRouter.
  • crates/goose-server/src/commands/mcp.rs

    • Update the run function to initialize the ComputerControllerRouter with the capability to handle browser commands.
  • crates/goose-cli/src/main.rs

    • Add a command to open HTML files in a browser.
    • Implement the logic to handle the new command in the main function.

For more details, open the Copilot Workspace session.

Fixes block#1023

Add functionality to open HTML files in a browser for WSL on Windows.

* **`crates/goose-mcp/src/computercontroller/mod.rs`**
  - Add a new tool `open_browser` to handle opening HTML files in a browser.
  - Implement the `open_browser` function to open HTML files in a browser.
  - Register the `open_browser` tool in the `ComputerControllerRouter`.

* **`crates/goose-server/src/commands/mcp.rs`**
  - Update the `run` function to initialize the `ComputerControllerRouter` with the capability to handle browser commands.

* **`crates/goose-cli/src/main.rs`**
  - Add a command to open HTML files in a browser.
  - Implement the logic to handle the new command in the `main` function.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/block/goose/issues/1023?shareId=XXXX-XXXX-XXXX-XXXX).
@michaelneale
Copy link
Collaborator

@jasonkneen did you test this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

open html in a browser demo failed on windows wsl
2 participants