Repository navigation
Labels
Description
Summary
Add a built-in /reset shortcut that wipes all local runtime state so the agent starts as if freshly installed: conversations, plans, tmp scratch, artifacts, history, backups, exports and logs. Configuration (config.yaml, custom shortcuts, skills, projects.json) is preserved.
Today the only way to do this is to know which directories under ~/.infer are state versus config and rm -rf them by hand. /clear and /new only reset the current in-memory conversation.
Scope
Delete, then recreate empty:
~/.infer/projects/<project-slug>/for every project:conversations/,history/,backups/,tmp/,artifacts/,exports/(theruntimeArtifactDirNamesset inconfig/config.go)~/.infer/plans/,~/.infer/tmp/,~/.infer/artifacts/(theuserspaceRuntimeDirNamesset)~/.infer/logs/- Conversation store for the configured backend: the JSONL dir above, or the machine-global SQLite database file when
storage.type: sqlite
Out of scope:
- Remote backends (
postgres,redis,d1) - print a message that/resetonly clears local state and skip them - Any file under
~/.inferor./.infernot listed above - config,config.yaml,shortcuts/,skills/,projects.json
Acceptance Criteria
-
/resetis registered as a built-in shortcut inNewMetadataRegistryand the chat TUI registry, and shows up in/helpandinfer shortcuts list - Running
/resetasks for ay/Nconfirmation and lists the directories that will be removed before deleting anything - After confirming, every directory in scope is removed and recreated empty; the current session is cleared the same way
/newdoes -
config.yaml, custom shortcuts, skills andprojects.jsonare untouched after a reset - With
storage.type: sqlite, the SQLite database file is deleted; withpostgres,redisord1the shortcut prints a skip notice instead of erroring - The list of directories reuses the existing
runtimeArtifactDirNames/userspaceRuntimeDirNamesslices rather than a second hardcoded list - One test covers: state dirs removed, config files preserved
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
edenreich commentedon Sep 18, 2026
@infer Can you work on this? use /ponytail:ponytail
inference-gateway-maintainer commentedon Sep 18, 2026
Model:
ollama_cloud/glm-5.3-flash· View JobTodos
Pull Request
#1237
✅ Infer Result: Success
Done. PR: #1237 (draft,
fix/issue-1234, board set to QA, docs ticket inference-gateway/docs#688)What changed
internal/presentation/shortcuts/reset.go- newResetShortcut:/resetlists every directory it will remove and asks for a y/N-style confirmation; only/reset confirmdeletes. It wipesconversations/+ the per-project runtime dirs (history,backups,tmp,artifacts,exports) for every project under~/.infer/projects/, the userspaceartifacts/plans/tmpdirs, and~/.infer/logs, recreating each empty. The configured store is deleted: the JSONL conversations dir (default layout or customstorage.jsonl.path) or the SQLite file (storage.sqlite.pathor~/.infer/conversations.dbplus WAL sidecars); postgres/redis/d1 print a skip notice instead of erroring. The session is cleared exactly like/new(fresh conversation before the wipe so the old conversation is never re-saved into the fresh store).NewMetadataRegistry(so/helpandinfer shortcuts listshow it) and to the chat TUI registry in the container.config.RuntimeArtifactDirNames/config.UserspaceRuntimeDirNamesslices (used by the sandbox carve-out too) andstorage.DefaultSQLitePath(), and the shortcut consumes those.reset_test.go) - state dirs removed + config preserved (the AC's required test), preview deletes nothing, SQLite db + sidecars gone, remote skip notice; all pass, and the repo's pre-commit gate (fmt, lint, imports, markdownlint) is clean./resetbullet added to README and docs/shortcuts-guide.md.Skipped (add when needed): no interactive y/N dialog view state - a TUI key-capture confirm would need new bubbletea state for the same outcome; the confirm is the re-invocation gate that works in TUI, headless and channels alike. Noted in the PR: an open session holds the deleted sqlite inode until restart; new sessions see a fresh store.
Model:
ollama_cloud/glm-5.3-flash· Exit Code:0· Duration: 11m 43sTokens: 5,941,360 in · 38,707 out · 5,980,067 total (58 requests)
Tool calls: 94 total · 100% success rate
Traces
Stats
Triggered by edenreich · Infer Action · OSS
feat(shortcuts): add built-in /reset shortcut to wipe local runtime s…
inference-gateway-releaser commentedon Sep 18, 2026
🎉 This issue has been resolved in version 0.203.0 🎉
The release is available on:
Your semantic-release bot 📦🚀