core/cli: /config opens plyngent.toml and reloads

Add slash /config to edit the active config path in $EDITOR, then reload
providers/agent settings while keeping a valid provider/model selection.
This commit is contained in:
2026-07-15 14:52:19 +08:00
parent 95df11713d
commit 54712b541a
5 changed files with 88 additions and 0 deletions
+1
View File
@@ -124,6 +124,7 @@ Type `/help` in the REPL for the live list. Common ones:
| `/stream` `/verbose` `/tools` `/rounds` | Toggles and limits |
| `/retry` | Re-run incomplete last user turn (after error/cancel) |
| `/provider` `/model` | Switch without restarting |
| `/config` | Edit `plyngent.toml` in `$EDITOR` and reload |
| `/quit` | Leave the REPL |
User messages are saved immediately. On API error or Ctrl+C, partial assistant/tool output is discarded but the user message stays so `/retry` works after resume. Interactive auto-retry uses 10s / 20s / 30s delays.