Repository navigation
Description
Summary
~/.infer/ has drifted on two axes, and /reset under-deleting runtime dirs made it visible.
1. Runtime media dirs sit at the userspace root, beside configuration.
| Dir | Contents | Config key |
|---|---|---|
~/.infer/tts/ |
generated speech WAVs (output) | text_to_speech.output_dir |
~/.infer/voice/ |
retained inbound voice/audio (input, last N) | speech_to_text.recordings_dir |
~/.infer/media/ |
retained inbound photos/videos (input, last N) | channels.telegram.media.dir |
All three are disposable process output, yet they live next to config.yaml and the other config files. They belong under
~/.infer/tmp/{tts,voice,media}.
Two consequences worth deciding deliberately, not discovering later:
~/.infer/tmpis inconfig.UserspaceRuntimeDirNames, which is not just a cleanup list -isWithinRuntimeDirs()
feedsConfig.ValidatePathInSandbox()(config/config.go:1734). Moving these dirs undertmpmakes them
agent-readable and agent-writable. That is arguably right for generated TTS output, but it newly exposes retained
inbound Telegram voice and media to the agent's file tools. Confirm this is wanted, or carve the subdirs out./resetthen covers them through the existingUserspaceRuntimeDirNamesloop, so the explicit per-dir appends in
ResetShortcut.targets()can be deleted again.
2. State file formats are inconsistent.
Fourteen user-edited config files under ~/.infer/ are YAML (config.yaml, agents.yaml, mcp.yaml, judge.yaml,
keybindings.yaml, prompts.yaml, reminders.yaml, ...). The JSON files owned by this repo are:
auth.json(config.AuthFileName, mode 0600) - the clear outlier: it is the only*FileNameconstant that is not
.yaml.skills/catalog.json(internal/skills/catalog.go:24)schedules/github-artifacts-state.json(cmd/daemon/daemon.go:297)session_groups.json(internal/platform/storage/jsonl.go:40)
The last three are machine-written state rather than hand-edited config, so converting them is a separate judgment call -
consistency argues yes, "nobody opens these in an editor" argues no. Decide explicitly and record the rule.
Out of scope: projects.json and desktop.json are written by the desktop repo, not here. .claude-plugin/plugin.json
follows an external spec and does not change.
Acceptance Criteria
-
text_to_speech.output_dir,speech_to_text.recordings_dirandchannels.telegram.media.dirdefault to
~/.infer/tmp/tts,~/.infer/tmp/voiceand~/.infer/tmp/media; explicit overrides keep working unchanged. - A decision is recorded on whether the agent's write sandbox should reach these subdirs, and the code matches it.
- The per-dir appends in
ResetShortcut.targets()are removed onceUserspaceRuntimeDirNamescovers the new paths,
withTestResetShortcut_WipesStateKeepsConfigstill asserting all three are emptied. - Existing installs are handled: either migrated on first run or documented as a one-time manual move.
-
auth.jsonbecomesauth.yaml, with a read-fallback so existing credentials are not orphaned. - A rule is recorded for machine-written state files (convert to YAML, or stay JSON), and the remaining files follow it.
-
docs/directory-structure.mddocumentstts/,voice/,media/,telemetry/andrun/- it currently documents
onlyschedules/(lines 64, 170) out of that set.
Context
Found while fixing /reset confirm leaving ~/.infer/{telemetry,schedules,run,tts,voice,media} behind (branch
fix/issue-1234). That fix appends the dirs explicitly; this issue removes the need for those appends.
Metadata
Metadata
Assignees
Type
Projects
- StatusShow more project fieldsDone
Activity
edenreich commentedon Sep 18, 2026
@infer Can you work on this? use /ponytail:ponytail /go /go-concurrency
inference-gateway-maintainer commentedon Sep 18, 2026
Model:
ollama_cloud/glm-5.3-flash· View JobTodos
Pull Request
#1239
✅ Infer Result: Success
Everything verified: clean tree, nothing unpushed, PR #1239 open and ready for review. Closing out the todo list.
All done - every acceptance criterion is implemented, checked, and pushed. Final summary:
PR #1239 (ready for review): #1239 - resolves #1238
What changed
1. Runtime media defaults moved under
~/.infer/tmp/text_to_speech.output_dir,speech_to_text.recordings_dirandchannels.telegram.media.dirnow default to~/.infer/tmp/{tts,voice,media}; explicit overrides keep working unchanged.~/.infer/tmpstays inUserspaceRuntimeDirNames, so the agent can read and writetmp/{tts,voice,media}. That is deliberate - retained recordings and Telegram media exist precisely so the agent can consume them as assets, and generated TTS output is agent deliverable.2.
/resetsimplificationResetShortcut.targets()are gone; the wipe now comes free with thetmpparent in the existingUserspaceRuntimeDirNamesloop.TestResetShortcut_WipesStateKeepsConfigstill asserts all three are emptied, now as~/.infer/tmp/{tts,voice,media}. Dirs explicitly overridden outside~/.inferare deliberately left alone (documented).3.
auth.jsontoauth.yamlLoadAuthKeysprefers~/.infer/auth.yamland falls back to legacyauth.json(JSON is a subset of YAML, one parse covers both), so existing credentials are not orphaned.auth.yamljoined the defaultprotected_pathsalongsideauth.json.4. File-format rule recorded (docs/directory-structure.md, "File Formats"): hand-edited files are YAML, machine-written state stays JSON - so
skills/catalog.json,schedules/github-artifacts-state.jsonandsession_groups.jsonremain untouched, no conversion churn for files nobody opens.5. Existing installs: documented as a one-time manual move (delete or
mvold~/.infer/{tts,voice,media}under~/.infer/tmp/); no auto-migration - the dirs only hold disposable retained media.6. Docs:
directory-structure.mdnow documentstmp/{tts,voice,media},telemetry/,run/andauth.yaml; speech-to-text, text-to-speech, channels, configuration-reference, README and the telegram example point at the new paths.Process notes
reset_test.go) was pushed to the branch mid-run; I integrated it and re-based my docs commit on top.task testsuite green; pre-commit gate (fmt, golangci-lint, markdownlint) passed on every commit.auth.jsonreferences, so no downstream ripple.Model:
ollama_cloud/glm-5.3-flash· Exit Code:0· Duration: 14m 58sTokens: 11,153,626 in · 74,429 out · 11,228,055 total (84 requests)
Tool calls: 140 total · 100% success rate
Traces
Stats
Triggered by edenreich · Infer Action · OSS
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 📦🚀