Skip to content

Option to discard temp files created by copilot cli during analysis #3007

Description

@mcodilla

Describe the feature or problem you'd like to solve

During the session, copilot tool calls produced outputs which were save dot temp files. I had a json file in my repo. Copilot created a python script to read the file and that temp file was a result of that. It contains essentially the same information as my json file. Copilot cli should offer a feature to clean up temp files at the end of a task or provide a session cleanup mechanism and options

Proposed solution

An option to enable the following behaviors: after Copilot finishes reading the temp file and completes the task, it should delete the temp file. Alternatively, at the end of a session, Copilot should clean up all temp files it created.

Example prompts or workflows

  1. I want to optimize disk space afterwards
  2. I don't need the space, it can do the job on the principle of coin flips
  3. I wish Copilot didn't generate the same information 2x, 3x, 4x...

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:sessionsSession management, resume, history, session picker, and session state

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions