Skip to content

feat: add session artifacts listing ui - #1519

Open
harshil-2096 wants to merge 29 commits into
mainfrom
feature/hv/artifacts-listing-in-session
Open

harshil-2096 wants to merge 29 commits into
mainfrom
feature/hv/artifacts-listing-in-session

Conversation

@harshil-2096

@harshil-2096 harshil-2096 commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Closes #

Changes

How was this tested?

Checklist

  • I have read the contributing guidelines
  • pnpm build, pnpm test, pnpm typecheck, pnpm lint:ci, and pnpm format:check pass locally
  • Tests added/updated where it makes sense
  • No hand-edits to generated code (packages/trueforge-sdk, python/trueforge_sdk, .github/fern/openapi/openapi.json, docs/openapi.json) — fork PRs omit SDK regen; maintainers regenerate after merge
  • Docs / .env.example updated if configuration or behavior changed

Note

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), adds ArtifactFile and listSessionArtifacts / listArtifactFiles, implements file reads in the harness adapter (dropping deleteArtifact and versioned readArtifactFile), 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.

harshil-2096 and others added 11 commits November 24, 2026 09:30
…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>
@veria-ai

veria-ai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

PR overview

No security issues were found in this pull request.

Reviews

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

harshil-2096 and others added 2 commits November 27, 2026 09:02
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>

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

Base automatically changed from feature/hv/artifacts-listing-ui to main December 1, 2026 09:21
…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

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

harshil-2096 and others added 3 commits December 1, 2026 10:26
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
harshil-2096 marked this pull request as draft December 2, 2026 10:48

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

@harshil-2096
harshil-2096 marked this pull request as ready for review December 2, 2026 11:15

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ 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.

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant