Repository navigation
feat: add session artifacts listing ui - #1519
Open
harshil-2096 wants to merge 29 commits into
Open
harshil-2096 wants to merge 29 commits into
harshil-2096 wants to merge 29 commits into
Conversation
…splay creator name instead of type and version
…splay creator name instead of type and version
…listing-ui Co-authored-by: Cursor <cursoragent@cursor.com> # Conflicts: # packages/trueforge-ui/src/analytics/events.ts # packages/trueforge-ui/src/atoms/environments/EnvironmentsPage.tsx # packages/trueforge-ui/src/containers/ThreadListContainer.tsx # packages/trueforge-ui/src/layouts/DrawerLayout.tsx # packages/trueforge-ui/src/layouts/SidebarLayout.tsx # packages/trueforge-ui/src/layouts/StackChatPanel.tsx # packages/trueforge-ui/src/server/ShellModeContext.tsx # packages/trueforge-ui/test/routing/ShellRouteSync.test.tsx # packages/trueforge-ui/test/routing/derivePlace.test.ts
Co-authored-by: Cursor <cursoragent@cursor.com>
The "All / Created by me / Shared with me" dropdown was never sent to the backend (the adapter drops `scope`), so it did nothing. Remove the filter and its state, the scope-aware empty-state branch, and the unused `scope` field on ListArtifactsParams. Also restyle the Artifacts sidebar item to match the other nav items (no chevron, shared hover and selected classes). Co-authored-by: Cursor <cursoragent@cursor.com>
harshil-2096
requested review from
govindavashishtha,
qaifi-tf and
sajal-truefoundry
as code owners
November 27, 2026 08:48
Resolve conflicts with the base branch: keep the Share/Delete removal and useRenameArtifact from base, and keep the session card analytics events and artifactPreviewTarget helper from this branch. Co-authored-by: Cursor <cursoragent@cursor.com>
…ve visibility logic
… state handling and toggle behavior
…ng-in-session Co-authored-by: Cursor <cursoragent@cursor.com> # Conflicts: # packages/assistant-ui-runtime/src/server/types.ts # packages/frontend/src/App.tsx # packages/trueforge-ui/src/analytics/events.ts # packages/trueforge-ui/src/atoms/artifacts/ArtifactsPage.tsx # packages/trueforge-ui/src/atoms/artifacts/artifactDisplay.ts # packages/trueforge-ui/src/containers/TrueForgeUIShell.tsx # packages/trueforge-ui/src/containers/useResolvedServer.ts # packages/trueforge-ui/src/icons/IconRegistry.tsx # packages/trueforge-ui/src/plugins/trueforge-agent-server-adapter/artifactServer.ts # packages/trueforge-ui/src/server/ShellModeContext.tsx # packages/trueforge-ui/src/server/TrueForgeServerConfig.ts # packages/trueforge-ui/src/server/queryKeys.ts # packages/trueforge-ui/src/theme/defaultSlots.ts # packages/trueforge-ui/src/utils/artifactRef.ts # packages/trueforge-ui/test/plugins/trueforge-agent-server-adapter/artifactServer.test.ts # packages/trueforge-ui/test/server/mockServer.ts
… improved readability and maintainability
…ender artifacts directly in a list format
Folder artifacts open on their file list beside the preview, and the session card lists folder files as an expandable tree. Single-file artifacts read their file from one top-level listing. Folder listings are cached per artifact version. Co-authored-by: Cursor <cursoragent@cursor.com>
harshil-2096
marked this pull request as draft
December 2, 2026 10:48
harshil-2096
marked this pull request as ready for review
December 2, 2026 11:15
…act key logic and improving folder file preview
…ng-in-session Co-authored-by: Cursor <cursoragent@cursor.com> # Conflicts: # packages/trueforge-ui/src/containers/ThreadContainer.tsx
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 45b7b7f. Configure here.
… and add test for reopening entry files
This branch has not been deployed
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
Closes #
Changes
How was this tested?
Checklist
pnpm build,pnpm test,pnpm typecheck,pnpm lint:ci, andpnpm format:checkpass locallypackages/trueforge-sdk,python/trueforge_sdk,.github/fern/openapi/openapi.json,docs/openapi.json) — fork PRs omit SDK regen; maintainers regenerate after merge.env.exampleupdated if configuration or behavior changedNote
Medium Risk
Broad UI and ArtifactServer contract changes (new required fields, removed methods) affect all artifact consumers; folder listing and S3 fetch paths add access-control and caching edge cases.
Overview
Extends the artifact model and ArtifactServer so every artifact carries
filesMetadata(isDir,sizeBytes,entryPoint), addsArtifactFileandlistSessionArtifacts/listArtifactFiles, implements file reads in the harness adapter (droppingdeleteArtifactand versionedreadArtifactFile), and wires folder previews through a lazy, cached tree.Chat: A toggleable session Artifacts column beside the thread lists session outputs (with polling while a run is active), expandable folder rows, and opens the same preview flow as the Artifacts page. File preview: Folder artifacts open on the entry file with a side file browser (hidden when maximized with a file open); single-file artifacts still preview by entry extension. Artifacts table: shows size and type icons, hides bulk Download for folders, and renames preserve cached folder listings.
Errors: 403/404 on artifact or file access show dedicated messages instead of a generic failure.
Reviewed by Cursor Bugbot for commit 303099b. Bugbot is set up for automated code reviews on this repo. Configure here.