Skip to content

Cwd always gets set even when WorkingDirectory is null #1735

@IeuanWalker

Description

@IeuanWalker

When creating a session i set working directory to null but it always sets to the cwd in workspace.yaml to the app’s own launch directory.

i.e. when debugging sets it too C:\Users\c773975\source\repos\GHMine\App\src\App\bin\Debug\net10.0-windows10.0.19041.0\win-x64 and when installed too C:\Program Files\App

Id expect it too be null as intended, not sure if this has an effect on token usage etc.
Purpose of setting it too null is to have a simple chat that doesn't relate to a specific project/ folder/ file

This causes issues when resuming a session as the session context is now different, changing the behaviour of the app (WorkingDirectory is no longer null, and during debug GitRoot/ Repository and branch are also populated).


Im using the latest .NET nuget package


Im guessing the issue is within the CLI it self, looking at the code i dont see anything in the SDK that mutates the WorkingDirectory

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions