Skip to content

[DOCS] Browse a session's artifacts from the chat TUI #1078

Closed

Description

@edenreich

Summary

The chat TUI can now browse the current session's artifacts (screen recordings, generated images, downloads) from the workspace that owns the session and save one on the laptop. It opens from the status bar's workspace indicator or the /artifacts command. A teleported session's artifacts are listed and read from its pod through the laptop daemon, with no kubectl, and a suspended Orchestrator is resumed on the way.

What the docs site should cover:

  • The /artifacts command: newest first with name, size and modification time, enter saves the selected file under ~/.infer/projects/<project-slug>/artifacts/<session id>/ on the laptop, o saves and opens it with the system viewer, r lists again. The workspace indicator opens the same view (it used to open the workspaces picker, /workspaces still does).
  • The daemon binding protocol: the list_artifacts / artifacts and read_artifact / artifact frames, project-scoped like list_conversations, only files directly under the session's artifacts dir, one base64 frame capped at 64 MiB.
  • The session teleport guide: the TUI view as the way to grab one file from a remote session, with the RustFS upload hook as the bulk path.

Source: inference-gateway/cli#1683 (implements inference-gateway/cli#1662). The CLI repo's own pages are already updated there: docs/shortcuts-guide.md, docs/browser-extension-protocol.md (new "Session artifacts" section), docs/commands-reference.md, docs/daemon.md and examples/session-teleport/README.md.

Acceptance Criteria

  • The CLI shortcuts reference documents /artifacts and the workspace indicator's new behavior
  • The daemon binding protocol page documents the list_artifacts and read_artifact frames and their replies, including the 64 MiB cap and the error field
  • The session teleport guide mentions browsing a remote session's artifacts from the TUI

Activity

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

    @edenreich
    ContributorAuthor

    @claude can you document this? focus on the code and check if everything is still relevant before starting to document. use /ponytail:ponytail

  5. inference-gateway-maintainer commented on Nov 3, 2026

    @inference-gateway-maintainer
    Contributor

    Claude finished @edenreich's task in 4m 46s —— View job • docs/issue-1078-20261103-0016 • Create PR ➔


    Documented - PR #1081

    • Track issue on the roadmap board (In progress -> QA)
    • Read the CLI source to verify the feature is still accurate
    • CLI page: /artifacts, the ⬇ artifacts indicator, the keys and the save path
    • Protocol page: list_artifacts / read_artifact frames, 64 MiB cap, error field
    • Session-teleport section: grabbing one remote artifact from the TUI
    • Validate (lint:md, format:check, build - all pass)
    • Commit and open PR

    One correction after reading the code

    The issue says the workspace indicator now opens the artifacts view. In the current CLI source it does not: internal/presentation/tui/components/input_status_bar.go:479-517 keeps the workspace indicator on StatusIndicatorActionWorkspaces and adds a separate ⬇ artifacts indicator (StatusIndicatorActionArtifacts) for the new view. The CLI repo's own commands reference says the same now, so that behavior was reverted after the issue was written. I documented the separate indicator, gated by chat.status_bar.indicators.artifacts.

    Everything else checked out against internal/projects/artifacts.go (newest-first, one file name only, MaxArtifactFrameBytes = 64 << 20), internal/presentation/headless/panel_artifacts.go (the frames and the error replies), internal/presentation/tui/daemonthread/artifacts.go (remote read writes into ~/.infer/projects/<project-slug>/artifacts/<session id>/, a local session's file is returned in place) and components/artifacts_view.go (enter, o, r, /, esc).

    What changed

    • cli.md - new "Browsing the session's artifacts" subsection (key table, save path, teleported path through the daemon with the resumed Orchestrator, the 64 MiB one-frame cap and the upload-hook alternative), an Artifacts row in the status-indicator table, an /artifacts row in the built-in commands table, a list_artifacts / read_artifact row in the daemon's app-frames table, and the session-teleport example now naming both ways out of the pod.
    • opentask.md - new "Session artifacts" section with the four frames as JSON, the project-scoped relay, the name rule, the cap and the error field, plus frame-reference rows and a pointer from the existing HTTP /artifacts/ route section so the two are not confused.

    I skipped the .infer/artifacts/<session-id> paths in the older "Artifacts directory" section, which spell the dir differently from the per-project runtime path - pre-existing and out of scope here. I did not render the two pages in a browser, only bun run build.
    | Branch: docs/issue-1078-20261103-0016 | PR: #1081

  6. moved this from Todo to In progress in 2026on Nov 3, 2026
  7. moved this from In progress to QA in 2026on Nov 3, 2026
  8. moved this from QA to Done in 2026on Nov 3, 2026
  9. inference-gateway-releaser commented on Nov 8, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.24 🎉

    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

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions