Skip to content

Conversation

@blackgirlbytes
Copy link
Contributor

Container Use (cu) is featured in our content and Dagger's documentation:

However, when users try to install cu-based extensions via the documented deeplinks, they encounter this error:
Failed to install extension: Invalid command: cu. Only docker, jbang, npx, uvx, goosed are allowed.

This PR solves that by adding :

  • Add 'cu' to allowedCommands list in deeplink validation
  • Include 'cu' in shimPatterns for path resolution
  • Add 'cu' to binaryPathMap in both utils.ts and extensions.tsx
  • Fixes error: 'Invalid command: cu. Only docker, jbang, npx, uvx, goosed are allowed'

- Add 'cu' to allowedCommands list in deeplink validation
- Include 'cu' in shimPatterns for path resolution
- Add 'cu' to binaryPathMap in both utils.ts and extensions.tsx
- Fixes error: 'Invalid command: cu. Only docker, jbang, npx, uvx, goosed are allowed'

This enables extensions using the 'cu' command to be installed via deeplinks
in the Desktop application.
@blackgirlbytes blackgirlbytes self-assigned this Jul 6, 2025
@blackgirlbytes blackgirlbytes marked this pull request as draft July 6, 2025 13:55
@blackgirlbytes blackgirlbytes marked this pull request as ready for review July 6, 2025 20:52
@blackgirlbytes
Copy link
Contributor Author

blackgirlbytes commented Jul 6, 2025

also @Kvadratni carine b on discord mentioned that on windows she's getting issues installing a few extensions. She believe it's because we need to add npx.cmd to the allowed commands. I see it already in windows shims but the validation on goose desktop may be stopping it. Checking to see if it's okay for me to add that to this PR. I cannot test Windows since I dont have a PC. Related Discord thread: https://discord.com/channels/1287729918100246654/1391123685280186388/1391523503739764860

@blackgirlbytes blackgirlbytes requested a review from Kvadratni July 6, 2025 21:36
Copy link
Collaborator

@michaelneale michaelneale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep, nailed it @blackgirlbytes - this is really a safety measure so it is fine to add this.

@blackgirlbytes blackgirlbytes merged commit 97d96e6 into main Jul 7, 2025
14 of 16 checks passed
@blackgirlbytes blackgirlbytes deleted the allow-cu-command branch July 7, 2025 04:31
@blackgirlbytes
Copy link
Contributor Author

@michaelneale I actually think I caused a bug 😓 #3286

This was referenced Jul 8, 2025
dianed-square added a commit to dianed-square/goose that referenced this pull request Jul 8, 2025
* update-to-v1.0.35: (57 commits)
  chore(release): release version 1.0.35 (block#3292)
  docs: enhanced code editing topic (block#3287)
  fix cu (block#3291)
  feat: Add environment variables to override model context limits (block#3260)
  chore(release): release version 1.0.34 (block#3285)
  fix(devcontainer): install protoc to fix build (block#3267)
  Enabling npx command to install on Windows Desktop (block#3283)
  Fix: Allow native Cmd+Up/Down cursor movement when user has typed text (block#3246)
  chore(release): release version 1.0.33 (block#3284)
  fix Windows Env Vars (block#3282)
  feat: bedrock image content support (block#3266)
  Add support in goose configure for streaming http mcp tools (block#3256)
  docs: add Alby MCP tutorial (block#3217)
  refactor(tests): make logging test in goose-cli less flaky on macos (block#3273)
  feat: cli can work with gui generated recipes (block#3254)
  Goose projects docs (block#3272)
  feat: add support for 'cu' command in extension installation (block#3261)
  Docs: Add cloudinary mcp tutorial (block#3268)
  fix: Enable agent to see instruction to use final output tool when it wasn't called (block#3253)
  Use command line to run sub agent and sub recipe (in sequence or parallel) (block#3190)
  ...
GaryZhous pushed a commit to GaryZhous/goose that referenced this pull request Jul 9, 2025
atarantino pushed a commit to atarantino/goose that referenced this pull request Jul 14, 2025
s-soroosh pushed a commit to s-soroosh/goose that referenced this pull request Jul 18, 2025
kwsantiago pushed a commit to kwsantiago/goose that referenced this pull request Jul 19, 2025
cbruyndoncx pushed a commit to cbruyndoncx/goose that referenced this pull request Jul 20, 2025
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.

4 participants