Skip to content

[DOCS] Document the per-project media root for generated and retained media #910

Closed

Description

@edenreich

Summary

inference-gateway/cli#1486 moves every generated and retained media dir under one media root, with a subdirectory per kind. The root follows the open project:

  • While the CLI runs in a project: ~/.infer/projects/<project-slug>/tmp/media/. The desktop app runs a selected project's sessions there.
  • With no project open (cwd is $HOME or the desktop's ~/.infer/workspace): ~/.infer/tmp/media/.
Subdirectory Holds Config override
tts/ generated speech WAVs text_to_speech.output_dir
music/ generated music MP3s text_to_music.output_dir
sfx/ generated sound effects text_to_sfx.output_dir
video/ generated video MP4s text_to_video.output_dir
recordings/ RecordStart screen recordings computer_use.recording.output_dir
screenshots/ browser and computer-use screenshots computer_use.screenshot.temp_dir
voice/ retained inbound voice recordings speech_to_text.recordings_dir
attachments/ retained inbound Telegram photos and videos (was the flat ~/.infer/tmp/media) channels.telegram.media.dir

The CLI repo's own reference is docs/directory-structure.md#media-directories.

Affected pages

  • cli.md
    • Userspace tmp tree section and table (the ~/.infer/tmp/{tts,music,sfx,video,voice,media} rows) and the "Existing installs" note
    • computer_use.recording.output_dir sample and table row (~/.infer/tmp/recordings)
    • TextToSpeech output_path default (~/.infer/tmp/tts/)
    • text_to_music, text_to_sfx, text_to_video samples and output_dir rows
    • The .infer/tmp vs .infer/artifacts table (screenshots now sit in the media root)
  • cli-text-to-speech.md - output_dir sample, config table row and "Where files go"
  • cli-text-to-video.md - output_dir sample and config table row
  • desktop.md - download button and the TTS output-dir caveat that name ~/.infer/tmp/. Align them with the desktop scope change in inference-gateway/desktop once it lands.

Acceptance Criteria

  • Every default media path in the affected pages names the media root and its subdirectory, not ~/.infer/tmp/<kind>
  • cli.md explains the project vs no-project rule for the media root in one place, and the other pages link to it
  • The Telegram media default reads attachments/ under the media root
  • desktop.md matches the desktop's asset scope after its follow-up ships

Activity

  1. added
    documentation
    on Oct 2, 2026
  2. added theissue type on Oct 2, 2026
  3. moved this to Todo in 2026on Oct 2, 2026
  4. edenreich commented on Oct 2, 2026

    @edenreich
    ContributorAuthor

    @claude can you document this?

  5. inference-gateway-maintainer commented on Oct 2, 2026

    @inference-gateway-maintainer
    Contributor

    Claude finished @edenreich's task in 16m 52s —— View job • docs/issue-910-20261002-1903 • [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-910-20261002-1903?quick_pull=1&title=Issue%20%23910%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%23910%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)


    Documenting the per-project media root

    • Gather context (read affected pages, checked the CLI repo's docs/directory-structure.md#media-directories)
    • Replace cli.md's "Userspace tmp tree" with a Media directories section - the single place explaining the project vs no-project rule
    • Update every media path in cli.md (recording, screenshot, TTS, music, sfx, video, /reset, the two directory tables, the AG-UI sample path)
    • cli-text-to-speech.md - sample, config row, output_path description
    • cli-text-to-video.md - sample and config row
    • desktop.md - download button and TTS output-dir caveat
    • Validate: bun run lint:md, bun run format:check, bun run build all pass
    • Commit and open PR

    PR: #911

    What changed

    cli.md now has a Media directories section that states the root once - ~/.infer/projects/<project-slug>/tmp/media/ while the CLI runs in a project (including the desktop's selected project), ~/.infer/tmp/media/ with none - and tables all eight subdirectories (tts/, music/, sfx/, video/, recordings/, screenshots/, voice/, attachments/) against their config overrides. The Telegram default reads attachments/. Every other default path across the four pages names the media root and its subdirectory and links back to that section; the two old #userspace-tmp-tree anchor references now point at #media-directories.

    One thing to check

    The last acceptance criterion - desktop.md matching the desktop's asset scope - depends on the desktop follow-up that has not landed. I phrased the download button and the TTS output-dir caveat in terms of the media root of the project whose sessions the app runs, which is what the CLI change implies. If the desktop lands a different scope, that caveat needs a second pass.
    | Branch: docs/issue-910-20261002-1903

  6. moved this from QA to Done in 2026on Oct 2, 2026
  7. inference-gateway-releaser commented on Oct 4, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.21 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationreleased

    Type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions