PowerShell / ProjectMercury

An interactive shell to work with AI-powered assistance providers
MIT License
43 stars 11 forks source link

Need to auto re-load the setting after editing the agent config file #129

Closed StevenBucher98 closed 3 months ago

StevenBucher98 commented 3 months ago

Prerequisites

Steps to reproduce

Expected behavior

New endpoint would be used or at least have notification to restart session to have changes be applied

Actual behavior

old endpoint is used until I restart my session

Error details

n/a

Environment data

Name                           Value
----                           -----
PSVersion                      7.4.2
PSEdition                      Core
GitCommitId                    7.4.2
OS                             Microsoft Windows 10.0.22635
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Version

n/a

Visuals

No response

daxian-dbw commented 3 months ago

Currently, it's up to the agent to support refreshing setting upon changes. The openai-gpt agent has been updated to support auto-refreshing setting file upon change.

However, in the long run, we want to consider if /agent config can trigger setting update for the agent if any change is made to the agent's setting file.

StevenBucher98 commented 3 months ago

If we do it on the agent side we can support the case where users edit the file outside of the /agent config command.

StevenBucher98 commented 3 months ago

Current thinking is to stick with leaving it up to the agents.