Repository navigation
feat(chat): browse the session's artifacts from the workspace indicator - #1683
Merged
Merged
Conversation
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
3 tasks
… against the mock model
…runcating it in the title
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.
…ssion's artifacts between two daemons
A cwd under a hidden dir such as ~/.work/repo slugged to -home-alice-.work-repo. The slug now reads -home-alice-work-repo.
Contributor
|
🎉 This PR is included in version 0.241.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
⬇ artifactsstatus bar indicator (afterTools:, in every chat,chat.status_bar.indicators.artifactsswitches it off) or/artifacts.list_artifactsandread_artifact, answered by the owner's worker and relayed likelist_conversations. A teleported session's artifacts are read from its pod through the laptop daemon with nokubectl, and a suspended Orchestrator is resumed the way a relay resumes it. An unreachable owner shows its error in the view.nameis one file name), over the authenticated socket. The HTTP/artifacts/route is untouched.read_artifactcarries 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 liketeleport_chunkis the upgrade path when recordings outgrow it.entersaves under~/.infer/projects/<slug>/artifacts/<session id>/here,osaves and opens with the system viewer,rrelists. An in-process chat browses its own artifacts dir.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.mdandinternal/sessions/README.md.Docs ticket: inference-gateway/docs#1078
Tests
headless/panel_artifacts_test.go: listing newest first and files only, reading, traversal and oversize refusals.sessions/registry_test.goandagent/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.goandapp/chat_artifacts_test.go: the view's keys, titles and the app glue.Manual:
/artifactsin the mock-gateway TUI listed seeded files and saved one.examples/session-artifacts/: the lighthouse scenario against the mock model, withtask chat,task chat:daemonandtask headless.