fix: Config update endpoint - #4205
Conversation
|
|
||
| export async function update(config: Info) { | ||
| const filepath = path.join(Instance.directory, "config.json") | ||
| let filepath = path.join(Instance.directory, "opencode.json") |
There was a problem hiding this comment.
So something I was thinking is that the config.ts state should track all the files it loaded configs for and it wouldn't be that useful in most places but it would allow opencode debug config to have some mode where we state where every file came from and what it had to help users debug
maybe if we had that we wouldn't need to do a file system search each time and then we could also use it to power the config debug command later
There was a problem hiding this comment.
Oh I think I know the perfect solution for this. I think I'll have an update later today.
There was a problem hiding this comment.
@rekram1-node I did some fiddling around. Turns out the idea I had in mind might involve a pretty significant refactor. Therefore it's probably best to leave this to you.
f1dc981 to
3e15a39
Compare
f8ee907 to
6a9856d
Compare
00637c0 to
71e0ba2
Compare
f1ae801 to
08fa7f7
Compare
|
Closing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR. |
Fixes #4194.