Skip to content

feat(chat): browse the session's artifacts from the workspace indicator - #1683

Merged
edenreich merged 6 commits into
mainfrom
feat/session-artifacts-view
Nov 3, 2026
Merged

edenreich merged 6 commits into
mainfrom
feat/session-artifacts-view

Conversation

@edenreich

@edenreich edenreich commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The chat TUI browses the current session's artifacts from the workspace that owns it and saves one on this machine, from a new ⬇ artifacts status bar indicator (after Tools:, in every chat, chat.status_bar.indicators.artifacts switches it off) or /artifacts.

  • Two panel frames, list_artifacts and read_artifact, answered by the owner's worker and relayed like list_conversations. A teleported session's artifacts are read from its pod through the laptop daemon with no kubectl, and a suspended Orchestrator is resumed the way a relay resumes it. An unreachable owner shows its error in the view.
  • Only files directly under the session's artifacts dir are listed or read (name is one file name), over the authenticated socket. The HTTP /artifacts/ route is untouched.
  • read_artifact carries the whole file in one base64 frame, capped at 64 MiB (the binding's frame limit). Larger files answer an error naming their size. Chunking like teleport_chunk is the upgrade path when recordings outgrow it.
  • The view lists newest first with name, size and modification time. enter saves under ~/.infer/projects/<slug>/artifacts/<session id>/ here, o saves and opens with the system viewer, r relists. An in-process chat browses its own artifacts dir.
  • The workspace indicator keeps opening the workspaces picker. The artifacts view has its own indicator.

Closes #1662

Docs

Updated docs/browser-extension-protocol.md (new "Session artifacts" section), docs/shortcuts-guide.md, docs/commands-reference.md, docs/daemon.md, examples/session-teleport/README.md and internal/sessions/README.md.

Docs ticket: inference-gateway/docs#1078

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

  • Feature: /artifacts and the workspace indicator list the session's artifacts on the workspace it runs on, newest first, and save one on the laptop (o opens it). A teleported session's artifacts come from its pod through the daemon.
  • Protocol: list_artifacts / artifacts and read_artifact / artifact frames, project-scoped, 64 MiB single-frame cap.
  • Affected pages: the chat shortcuts reference, the daemon binding protocol page, the session teleport guide.
  • Source: inference-gateway/cli PR (this one), issue [FEATURE] Browse the current session's artifacts from the TUI workspace indicator #1662.

Tests

  • headless/panel_artifacts_test.go: listing newest first and files only, reading, traversal and oversize refusals.

  • sessions/registry_test.go and agent/teleport/remote_worker_test.go: local and relayed frame routing.

  • daemonthread/artifacts_test.go: list, remote fetch written to the session dir here, local fetch without a request, error frames.

  • components/artifacts_view_test.go and app/chat_artifacts_test.go: the view's keys, titles and the app glue.

  • Manual: /artifacts in the mock-gateway TUI listed seeded files and saved one.

  • examples/session-artifacts/: the lighthouse scenario against the mock model, with task chat, task chat:daemon and task headless.

The chat TUI lists the current session's artifacts from the workspace that
owns it and saves one on this machine, from the status bar's workspace
indicator or /artifacts. Two panel frames, list_artifacts and read_artifact,
are answered by the owner's worker and relayed like list_conversations, so a
teleported session's artifacts are read from its pod through the daemon with
no kubectl, resuming a suspended Orchestrator on the way. An in-process chat
browses its own artifacts dir.

Closes #1662
The workspace indicator opens the workspaces picker again, and a new
artifacts indicator after the tools one opens the artifacts view in every
chat, in-process ones included. chat.status_bar.indicators.artifacts
switches it off.
A cwd under a hidden dir such as ~/.work/repo slugged to -home-alice-.work-repo.
The slug now reads -home-alice-work-repo.
@edenreich
edenreich merged commit a60b22e into main Nov 3, 2026
1 check passed
@edenreich
edenreich deleted the feat/session-artifacts-view branch November 3, 2026 00:06
@edenreich edenreich moved this from Todo to Done in 2026 Nov 3, 2026
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.241.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@inference-gateway-releaser inference-gateway-releaser Bot added the released Shipped in a release label Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[FEATURE] Browse the current session's artifacts from the TUI workspace indicator

1 participant