Skip to content

Conversation

@SmartManoj
Copy link
Contributor

@SmartManoj SmartManoj commented May 26, 2025

Fixes

PS C:\Users\smart\Desktop\GD\Roo-Code> aws sts get-caller-identity

'cat' is not recognized as an internal or external command,
operable program or batch file.

Important

Fixes Windows compatibility by conditionally setting PAGER environment variable in Terminal.ts and updating tests accordingly.

  • Behavior:
    • Update PAGER in Terminal.ts to be empty on Windows (process.platform === "win32") and "cat" otherwise.
    • Fixes issue where cat command was not recognized on Windows.
  • Tests:
    • Update TerminalRegistry.test.ts to use a platform-specific PAGER value in tests.
    • Modify test descriptions to reflect platform-specific behavior for PAGER.

This description was created by Ellipsis for 88f64b5. You can customize this summary. It will automatically update as commits are pushed.

@SmartManoj SmartManoj marked this pull request as ready for review May 26, 2025 07:14
@hannesrudolph hannesrudolph added the Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. label May 27, 2025
@daniel-lxs daniel-lxs added PR - Needs Preliminary Review PR - Needs Review and removed Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. PR - Needs Preliminary Review labels May 28, 2025
@daniel-lxs daniel-lxs moved this from Triage to PR [Needs Review] in Roo Code Roadmap May 28, 2025
@daniel-lxs
Copy link
Member

This makes sense, we might need to consider using a windows-native pager like more. However the fix seems valid.

Copy link
Collaborator

@mrubens mrubens left a comment

Choose a reason for hiding this comment

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

@KJ7LNW does this seem good to you?

@mrubens
Copy link
Collaborator

mrubens commented May 28, 2025

Gonna merge for now, but happy to follow up

@mrubens mrubens merged commit 5c4280c into RooCodeInc:main May 28, 2025
25 of 28 checks passed
@github-project-automation github-project-automation bot moved this from PR [Needs Review] to Done in Roo Code Roadmap May 28, 2025
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap May 28, 2025
@SmartManoj
Copy link
Contributor Author

we might need to consider using a windows-native pager like more

This is to disable pager. Empty string is applicable to Unix too but some applications are not set up properly. aws/aws-cli#4972

@KJ7LNW
Copy link
Contributor

KJ7LNW commented May 29, 2025

@KJ7LNW does this seem good to you?

That looks great as a simple compatibility fix.

The only thing I would question is whether or not PAGER needs to be set in some way to prevent commands from requiring user input in Windows.

@dosu please look at the diff: is there a Windows equivalent to cat that comes with the system?

@KJ7LNW
Copy link
Contributor

KJ7LNW commented May 30, 2025

FYI in case some future Windows application needs PAGER set and does not support PAGER="", then PAGER=findstr "^" could be an option.

I do not have the means to test this, but findstr is available in all Windows installations.

However, as @SmartManoj points out, PAGER="" should be sufficient for all applications following spec.

I suggest we leave it as it is for now and follow up if someone else has a problem referencing this PR, this comment is mostly for future reference in case somebody needs it.

@SmartManoj
Copy link
Contributor Author

SmartManoj commented May 30, 2025

PAGER=findstr "^" could be an option.

Is there any source?


Hangs in PS

image


image

image

Setting an empty string will delete the env, but maybe in the future, they will fix it. Related changes in .NET

@KJ7LNW
Copy link
Contributor

KJ7LNW commented May 30, 2025

okay well clearly my suggestion did not work ... so leaving it blank is probably the best option unless you come up with something

@SmartManoj
Copy link
Contributor Author

Is there a Windows equivalent to cat that comes with the system?

type is there, but it doesn't work.

image


but maybe in the future, they will fix it.

Each application has separate flags to disable the pager. The agent should use that till then.

SmartManoj pushed a commit to SmartManoj/Raa-Code that referenced this pull request Jun 13, 2025
* migrate focusChatInput

* move subscription in with the others

* changed grpc method; fixed a bug where keybinding doesn't show chatview if in another tab

---------

Co-authored-by: Elephant Lumps <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants