Skip to content

Launching LLM CLI does not preserve current working directory #156

@abeltrano

Description

@abeltrano

When launching PromptKit with the Claude CLI, the current working directory of the terminal isn't preserved, the temporary download directory is used instead. When Copilot CLI is used, the terminal current working directory is correctly preserved.

The cli requirements document should be expanded to include an entry that launching the cli should preserve or forward the current working directory of the owning terminal to the CLI. The validation document should similarly be expanded to verify this requirement is met, and tests should be added to ensure it is enforced.

Executing the following command:

PS C:\src> npx @alan-jowett/promptkit --cli claude

Triggered the bug with the following output screenshot:

Image

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions