Skip to content

[ENHANCEMENT] An Env preflight check for Roo on startup (perhaps using caching for performance) would ensure that Roo and all connected APIs always know in which Env they are operating. #10408

@nonnex

Description

@nonnex

Problem (one or two sentences)

The issue is that (before and after ctx compress) we get an annoying loss of Env-Ctx (even after we told abhout it).
For example:

Initially (or after compressing) on VSCODE+Win11+PwrShell7, Roo (or the API) mostly attempts Linux commands like as default:
'''
ls -la chm2md/learning/ | grep -E ".py$" | wc -l && echo "--- Files in chm2md/learning/ ---" && ls -la chm2md/learning/.py | awk '{print $9}' | sort
'''
But it should use, in my case (Win11 + PwrShell7) the equivalent command of:
'''
PowerShell(Get-ChildItem -Path chm2md/learning/ -File | Where-Object {$_.Extension -eq ".py"}).Count; Write-Output "--- Files in chm2md/learning/ ---"; Get-ChildItem chm2md/learning/
.py | Select-Object -ExpandProperty Name | Sort-Object
'''
or similar.

Context (who is affected and when)

We all.

Desired behavior (conceptual, not technical)

PreFlight, gathering Env, tell Roo or connected API what Env we have, then should remember Env and respect it even throu different sessions, till we say otherwise or Env changes.

Constraints / preferences (optional)

No response

Request checklist

  • I've searched existing Issues and Discussions for duplicates
  • This describes a specific problem with clear context and impact

Roo Code Task Links (optional)

No response

Acceptance criteria (optional)

No response

Proposed approach (optional)

No response

Trade-offs / risks (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementNew feature or requestIssue/PR - TriageNew issue. Needs quick review to confirm validity and assign labels.

    Type

    No type

    Projects

    Status

    Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions