Skip to content

Conversation

@jamadeo
Copy link
Collaborator

@jamadeo jamadeo commented Nov 11, 2025

rather than install all the tools in the release workflows

Copilot AI review requested due to automatic review settings November 11, 2025 01:07
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR simplifies the generate-openapi Justfile target by using npx openapi-ts directly instead of calling the npm run generate-api script, eliminating the need to install npm dependencies in release workflows.

  • Replaces npm run generate-api with npx openapi-ts in the generate-openapi target

cargo run -p goose-server --bin generate_schema
@echo "Generating frontend API..."
cd ui/desktop && npm run generate-api
cd ui/desktop && npx openapi-ts
Copy link

Copilot AI Nov 11, 2025

Choose a reason for hiding this comment

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

The openapi-ts command reads configuration from openapi-ts.config.ts which is in the ui/desktop directory. However, the CI workflow at .github/workflows/ci.yml:95 runs npm ci to install dependencies before calling just check-openapi-schema. This change breaks the workflow because npx will need to download @hey-api/openapi-ts on every run instead of using the installed version. Either keep using npm run generate-api (which requires npm ci first), or remove the npm ci step from the CI workflow if you want to rely on npx auto-downloading.

Suggested change
cd ui/desktop && npx openapi-ts
cd ui/desktop && npm run generate-api

Copilot uses AI. Check for mistakes.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Well this is obviously wrong because CI passed.

But also, npx will run from local node_modules first: https://docs.npmjs.com/cli/v7/commands/npx

@jamadeo jamadeo requested a review from DOsinga November 11, 2025 13:11
@jamadeo jamadeo merged commit 90449e7 into main Nov 11, 2025
20 checks passed
Surendhar-N-D pushed a commit to Surendhar-N-D/goose that referenced this pull request Nov 17, 2025
arul-cc pushed a commit to arul-cc/goose that referenced this pull request Nov 17, 2025
BlairAllan pushed a commit to BlairAllan/goose that referenced this pull request Nov 29, 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.

3 participants