Skip to content

fix: 🐛 Fix the cli terminal shell - #7437

Merged
RomneyDa merged 7 commits into
continuedev:mainfrom
chezsmithy:fix-cli-shell
Sep 2, 2025
Merged

RomneyDa merged 7 commits into
continuedev:mainfrom
chezsmithy:fix-cli-shell

Conversation

@chezsmithy

@chezsmithy chezsmithy commented Aug 27, 2025 •

Copy link
Copy Markdown
Contributor

Description

Updated the cli terminal command to align with the core terminal command. Added shell support for mac, linux and windows (powershell vs cmd)

AI Code Review

  • Team members only: AI review runs automatically when PR is opened or marked ready for review
  • Team members can also trigger a review by commenting @continue-general-review or @continue-detailed-review

Checklist

  • I've read the contributing guide
  • The relevant docs, if any, have been updated or created
  • The relevant tests, if any, have been updated or created

Screen recording or screenshot

[ When applicable, please include a short screen recording or screenshot - this makes it much easier for us as contributors to review and understand your changes. See this PR as a good example. ]

Tests

Updated failing tests on windows.


Summary by cubic

Fixes the CLI terminal tool to use the correct shell per OS and match core behavior, ensuring commands run reliably on macOS, Linux, and Windows. Also updates tests to be cross-platform, resolving Windows failures.

  • Bug Fixes
    • Use PowerShell on Windows; use the user's shell with login mode on Unix/macOS.
    • Commands run in a login shell to load PATH and rc files, matching core terminal behavior.
    • Updated tests to use node --version for portability.

@chezsmithy
chezsmithy requested a review from a team as a code owner August 27, 2025 22:16
@chezsmithy
chezsmithy requested review from tomasz-stefaniak and removed request for a team August 27, 2025 22:16
@dosubot dosubot Bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Aug 27, 2025
@sestinj

sestinj commented Aug 27, 2025

Copy link
Copy Markdown
Contributor

@chezsmithy I only started doing it today, but the necessary tsconfig incantations have been carried out so we can now just import directly from core instead of duplicating logic. I imagine it would make sense to do that here.

@chezsmithy

Copy link
Copy Markdown
Contributor Author

@sestinj adding all the new test host types has uncovered a few testing approach gaps. 😀

@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Aug 28, 2025
@chezsmithy

chezsmithy commented Aug 28, 2025 •

Copy link
Copy Markdown
Contributor Author

@chezsmithy I only started doing it today, but the necessary tsconfig incantations have been carried out so we can now just import directly from core instead of duplicating logic. I imagine it would make sense to do that here.

@sestinj Let's maybe merge this to get things stable, and then perhaps you can let me know over on discord how you are thinking of starting to merge code to this new extension. Slow and steady removal and reference to core?

@sestinj

sestinj commented Aug 28, 2025

Copy link
Copy Markdown
Contributor

Works for me. And yes slow and steady is the strategy. I am in no rush and generally willing to put up with duplication if it helps move faster and experiment

@etherandrius

Copy link
Copy Markdown

👍🏼

@RomneyDa RomneyDa left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@chezsmithy this is great. Core is now a dependency of CLI, could we adjust to share the code between them?

@aaceimmrttu

Copy link
Copy Markdown

closed duplicate #7471

@aaceimmrttu

Copy link
Copy Markdown

+1

@chezsmithy

Copy link
Copy Markdown
Contributor Author

@RomneyDa I think we can aim that way but let's get this merged and then over time I'll look at how we adapt the tools to be used in both extensions.

@etherandrius

Copy link
Copy Markdown

👋🏼 @RomneyDa @sestinj Could we merge this please?

@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Sep 2, 2025
@RomneyDa

RomneyDa commented Sep 2, 2025

Copy link
Copy Markdown
Contributor

Makes sense, can see how some things could be subtly different between cli and extension approach. lgtm

@RomneyDa
RomneyDa merged commit e57fc9b into continuedev:main Sep 2, 2025
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 2, 2025
@sestinj

sestinj commented Sep 3, 2025

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 1.13.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@sestinj

sestinj commented Sep 3, 2025

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 1.12.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions
github-actions Bot deleted the fix-cli-shell branch October 28, 2025 06:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

lgtm This PR has been approved by a maintainer released size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants