Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Adds cache to cli-chat commands #738

Merged
merged 3 commits into from
Jan 23, 2025
Merged

Adds cache to cli-chat commands #738

merged 3 commits into from
Jan 23, 2025

Conversation

aponcedeleonch
Copy link
Contributor

Closes: #732

Copilot sends at least 2 requests with the same last_user_message. Hence we execute the same command 2 times and reply to the last one. The last behaviour will cause that if we create a Workspace with Copilot the cli will respond that the workspace already exists.

This PR implements a workaround to cache the commands and it's outputs. That way we can reply the same to subsequent requests sent by Copilot

Closes: #732

Copilot sends at least 2 requests with the same `last_user_message`.
Hence we execute the same command 2 times and reply to the last one.
The last behaviour will cause that if we create a Workspace with
Copilot the cli will respond that the workspace already exists.

This PR implements a workaround to cache the commands and it's outputs.
That way we can reply the same to subsequent requests sent by Copilot
@aponcedeleonch aponcedeleonch requested a review from JAORMX January 23, 2025 09:23
@aponcedeleonch aponcedeleonch merged commit e989015 into main Jan 23, 2025
4 checks passed
@aponcedeleonch aponcedeleonch deleted the cache-cmd-out branch January 23, 2025 09:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Copilot replying the workspace already exists for new workspaces
2 participants